/* JorgeTown Launcher v0.4.0 — im Ingame-Hausstil „Schnittkante" (2026-10-02).
   Loest den Nexus-Look von v0.2.0 ab (Betreiber: Nexus kam nicht gut an).
   Vorbild: jorge_multichar/ui/anmeldung_v2.css + jorge_lib/ui/style_v5.css —
   Coral → Magenta → Lila, deckende dunkle Flaechen, Parallelogramme statt Radien,
   Verlaufs-Oberkante am Fenster, Marken-Naht als linke Kante an Bloecken.
   Markup und Skript sind unveraendert (alle Klassen aus v8 werden bedient). Prefix: jl-* / a-* / sp-* */
:root {
  --bg: #0c0c10;
  --surface: #121217;
  --elev: #18181e;
  --elev2: #202028;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #a8a8b0;
  --faint: #6e6e78;
  --accent: #da6652;
  --accent2: #e2199a;
  --accent3: #8b2fd6;
  --grad: linear-gradient(100deg, #da6652, #e2199a 68%, #8b2fd6);
  --grad-v: linear-gradient(178deg, #da6652, #e2199a 58%, #8b2fd6);
  --glow: rgba(226, 25, 154, 0.5);
  --soft: rgba(226, 25, 154, 0.14);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #ef4444;
  --info: #60a5fa;
  --ts: #60a5fa;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --sk: 12px;
  --pg: polygon(var(--sk) 0, 100% 0, calc(100% - var(--sk)) 100%, 0 100%);
  --pg-s: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  --pg-xs: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  /* linke Marken-Naht als Schraegstreifen (wie .an-block::before) */
  --naht: polygon(var(--sk) 0, calc(var(--sk) + 3px) 0, 3px 100%, 0 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #050507;
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  min-height: 100vh;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { width: 16px; height: 16px; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* ── Fenster ─────────────────────────────────────────── */
.jl-win {
  position: relative;
  width: var(--w, 1180px);
  height: var(--h, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* Verlaufs-Oberkante — das Erkennungszeichen jedes Ingame-Fensters */
.jl-win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); z-index: 70; pointer-events: none; }
.jl-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 20rem at 0% -10%, rgba(218, 102, 82, 0.10), transparent 60%),
    radial-gradient(36rem 22rem at 100% 110%, rgba(139, 47, 214, 0.10), transparent 60%);
}
/* Titelleiste (im Electron-Fenster: -webkit-app-region: drag) */
.jl-top {
  display: flex; align-items: center; gap: 14px;
  height: 56px; padding: 3px 10px 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 16, 0.9);
  position: relative; z-index: 20;
  -webkit-app-region: drag;
}
.jl-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.jl-brand img { width: 34px; height: 34px; }
.jl-brand small { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-left: 2px; }
.jl-nav { display: flex; gap: 1px; margin-left: 4px; min-width: 0; -webkit-app-region: no-drag; }
/* Hover wie die wandernde Naht im Target-/Menue-Look: Flaeche schraeg, Strich unten in Seitenfarbe */
.jl-nav a {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 6px;
  color: var(--muted); font-weight: 600; font-size: 12.5px; text-decoration: none; white-space: nowrap;
  transition: color 0.16s var(--ease);
}
.jl-nav a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--pg-s);
  background: linear-gradient(0deg, color-mix(in oklab, var(--farbe, var(--accent2)) 22%, transparent), transparent 90%);
  opacity: 0; transition: opacity 0.16s var(--ease);
}
.jl-nav a svg { width: 14px; height: 14px; transition: color 0.16s var(--ease); }
.jl-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 0; height: 2px;
  background: var(--farbe, var(--accent2)); transform: translateX(-50%) skewX(-30deg); transition: width 0.18s var(--ease);
}
.jl-nav a:hover { color: var(--text); z-index: 5; }
.jl-nav a:hover::before { opacity: 1; }
.jl-nav a:hover::after { width: calc(100% - 20px); }
.jl-nav a:hover svg { color: var(--farbe, var(--accent2)); }
.jl-nav a:focus-visible { outline: 2px solid var(--accent2); outline-offset: -2px; }
.jl-top-rechts { margin-left: auto; display: flex; align-items: center; gap: 6px; -webkit-app-region: no-drag; }
.jl-fenster { display: flex; gap: 2px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.jl-fenster button {
  width: 36px; height: 30px; border: 0; background: transparent;
  color: var(--faint); display: grid; place-items: center; clip-path: var(--pg-xs);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.jl-fenster button:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.jl-fenster button.zu:hover { background: var(--danger); color: #fff; }
.jl-fenster svg { width: 14px; height: 14px; }

/* ── Knoepfe ─────────────────────────────────────────── */
.jl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border: 0; clip-path: var(--pg-s);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), filter 0.16s var(--ease);
}
.jl-btn svg { width: 16px; height: 16px; }
.jl-btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(2px); }
.jl-btn-icon { padding: 0; width: 38px; height: 34px; color: var(--muted); }
.jl-btn-icon:hover { color: var(--text); transform: none; }
.jl-btn-discord { background: #5865f2; color: #fff; }
.jl-btn-discord:hover { background: #5865f2; filter: brightness(1.1); }

/* Der eine laute Knopf: Spielen */
.jl-play {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  border: 0; clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  padding: 0 38px 0 34px; height: 78px;
  color: #fff; text-align: left;
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  transition: background-position 0.5s var(--ease), transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.jl-play::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 45%);
}
.jl-play:hover { background-position: 100% 0; transform: translateX(3px); filter: brightness(1.06); }
.jl-play:active { transform: none; }
.jl-play-ic { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.22); clip-path: var(--pg-s); }
.jl-play-ic svg { width: 22px; height: 22px; }
.jl-play b { display: block; font-size: 23px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.jl-play small { display: block; white-space: nowrap; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.jl-play .pfeil { margin-left: auto; width: 20px; height: 20px; transition: transform 0.2s var(--ease); }
.jl-play:hover .pfeil { transform: translateX(4px); }
.jl-play[aria-busy="true"] { pointer-events: none; }
.jl-play[aria-busy="true"] .jl-play-ic svg { display: none; }
.jl-play[aria-busy="true"] .jl-play-ic::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: jl-dreh 0.8s linear infinite; }
.jl-play:disabled { background: var(--elev2); color: var(--faint); cursor: not-allowed; transform: none; filter: none; }
.jl-play:disabled::after { display: none; }
.jl-play:disabled small { color: var(--faint); }
.jl-play:disabled .jl-play-ic { background: rgba(255, 255, 255, 0.05); }

/* TeamSpeak — ruhig, zweiter Rang, Naht in Info-Blau wie der TS-Block der Anmeldung */
.jl-ts {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  height: 78px; padding: 0 26px 0 30px;
  border: 0; clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}
.jl-ts::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; clip-path: polygon(18px 0, 22px 0, 4px 100%, 0 100%); background: var(--ts); }
.jl-ts:hover { transform: translateX(2px); background: rgba(96, 165, 250, 0.1); }
/* Logo in TeamSpeak-Blau, weiss auf Markenfarbe */
.jl-ts-ic { width: 42px; height: 40px; display: grid; place-items: center; background: #2580c3; color: #fff; clip-path: var(--pg-s); }
.jl-ts-ic svg { width: 22px; height: 22px; }
.jl-ts b { display: block; font-size: 15px; font-weight: 800; }
.jl-ts small { display: block; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 2px; }

/* Kicker (wie .an-vor) */
.jl-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.jl-kicker i { width: 6px; height: 6px; background: currentColor; box-shadow: 0 0 10px currentColor; animation: jl-puls 2.4s ease-in-out infinite; }

/* Serverkarte — Spielbild, links schraeg angeschnitten, mit Marken-Naht an der Schnittkante */
.jl-karte {
  --tint: #da6652; --tint2: #e2199a;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 20px 16px 40px; overflow: hidden; isolation: isolate;
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(12, 12, 16, 0.05) 0%, rgba(12, 12, 16, 0.45) 45%, rgba(12, 12, 16, 0.97) 100%),
    radial-gradient(90% 60% at 0% 100%, rgba(226, 25, 154, 0.28), transparent 70%),
    url("assets/img/spiel-jorgetown.webp") 82% 30% / cover no-repeat;
}
.jl-karte::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  clip-path: polygon(28px 0, 31px 0, 3px 100%, 0 100%); background: var(--grad-v);
}
.jl-karte::after { content: none; }
.jl-tag {
  position: absolute; top: 14px; left: 44px;
  padding: 6px 16px; clip-path: var(--pg-s);
  background: rgba(12, 12, 16, 0.82);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.jl-tag b { color: var(--tint); }
.jl-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 14px; clip-path: var(--pg-s);
  background: color-mix(in oklab, var(--c) 16%, rgba(12, 12, 16, 0.85));
  color: color-mix(in oklab, var(--c) 70%, #fff);
  font-size: 12px; font-weight: 700;
}
.jl-karte .jl-status { position: absolute; top: 14px; right: 14px; }
.jl-punkt { width: 7px; height: 7px; flex-shrink: 0; background: var(--c, var(--faint)); box-shadow: 0 0 8px var(--c, transparent); animation: jl-ping 2s var(--ease) infinite; }
[data-server="online"] { --c: var(--ok); }
[data-server="voll"] { --c: var(--warn); }
[data-server="offline"] { --c: var(--danger); }
.jl-karte strong { display: block; font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.jl-karte strong em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.jl-spieler { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.jl-spieler span { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.jl-spieler span small { font-size: 0.55em; color: rgba(245, 245, 247, 0.55); }
.jl-spieler > small { font-size: 12.5px; font-weight: 600; color: rgba(245, 245, 247, 0.72); }
.jl-balken { margin-top: 10px; height: 6px; background: rgba(255, 255, 255, 0.12); overflow: hidden; clip-path: var(--pg-xs); }
.jl-balken i { display: block; width: 0; height: 100%; background: var(--grad); transition: width 0.8s var(--ease); }

/* Live-Leiste: drei Parallelogramme nebeneinander (wie .an-fakten) */
.jl-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.jl-live-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 24px; min-width: 0; clip-path: var(--pg); background: rgba(255, 255, 255, 0.04); }
.jl-live-item b { display: block; font-size: 13px; font-weight: 700; }
.jl-live-item small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-live-item .jl-punkt { width: 8px; height: 8px; }
/* rechte Kante der linken Spalte bleibt gerade, buendig mit dem Panel darunter (Betreiber 02.10.: ragte raus) */
.jl-live-item:last-child { clip-path: polygon(var(--sk) 0, 100% 0, 100% 100%, 0 100%); }

/* Panel: deckend, eckig, linke Marken-Naht */
.jl-panel { position: relative; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.jl-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-v); }
.jl-panel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 10px 20px; }
.jl-panel-kopf h3 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.jl-panel-kopf a { font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.jl-panel-kopf a:hover { color: var(--text); text-decoration-color: var(--accent); }

/* Changelog-Eintraege: Zeile mit wandernder Naht beim Hover */
.jl-log { list-style: none; margin: 0; padding: 0 10px 10px 12px; }
.jl-log li { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 10px 10px 10px 12px; transition: background 0.16s var(--ease); }
.jl-log li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--grad-v); opacity: 0; transition: opacity 0.16s var(--ease); }
.jl-log li:hover { background: rgba(255, 255, 255, 0.035); }
.jl-log li:hover::before { opacity: 1; }
.jl-log b { display: block; font-size: 13px; font-weight: 700; }
.jl-log p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.jl-log time { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 2px; }
.jl-art { justify-self: start; display: inline-flex; align-items: center; padding: 3px 11px; clip-path: var(--pg-xs); font-size: 11px; font-weight: 700; color: color-mix(in oklab, var(--st) 72%, #fff); background: color-mix(in oklab, var(--st) 20%, transparent); white-space: nowrap; }
.jl-art.neu { --st: var(--accent2); }
.jl-art.fix { --st: var(--ok); }
.jl-art.info { --st: var(--info); }
.jl-art.anp { --st: var(--warn); }

/* Seiten-Kacheln (Bestand, derzeit ohne Nutzer im Markup) */
.jl-seiten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 0 12px 12px; }
.jl-seite {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 20px; clip-path: var(--pg); background: rgba(255, 255, 255, 0.04);
  text-decoration: none; overflow: hidden;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}
.jl-seite:hover { transform: translateX(2px); background: color-mix(in oklab, var(--farbe) 12%, rgba(255, 255, 255, 0.04)); }
.jl-seite-ic { width: 30px; height: 30px; display: grid; place-items: center; color: var(--farbe); background: color-mix(in oklab, var(--farbe) 18%, transparent); clip-path: var(--pg-xs); }
.jl-seite-ic svg { width: 16px; height: 16px; }
.jl-seite b { display: block; font-size: 13px; font-weight: 700; }
.jl-seite small { display: block; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-seite > span:last-child { min-width: 0; }

/* Fusszeile */
.jl-fuss { position: relative; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 0 18px; height: 38px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.22); font-size: 11.5px; color: var(--faint); }
.jl-fuss .mono { font-family: var(--mono); }
.jl-fuss .rechts { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; }
.jl-fuss .rechts .jl-punkt { width: 6px; height: 6px; animation: none; }

/* Dialog: Abdunkler ohne Blur, Karte mit Verlaufs-Oberkante */
.jl-veil { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); animation: jl-ein 0.28s var(--ease); }
.jl-veil[hidden] { display: none; }
.jl-modal { position: relative; width: min(460px, calc(100% - 40px)); background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06); overflow: hidden; animation: jl-hoch 0.36s var(--ease); }
.jl-modal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.jl-modal-kopf { display: flex; align-items: center; gap: 14px; padding: 22px 22px 6px; }
.jl-modal-kopf .ic { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--grad); clip-path: var(--pg-s); }
.jl-modal-kopf .ic svg { width: 19px; height: 19px; }
.jl-modal-kopf h3 { margin: 0; font-size: 17px; font-weight: 800; }
.jl-modal-kopf small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.jl-modal-body { padding: 10px 22px 4px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.jl-modal-body ul { margin: 8px 0 0; padding-left: 18px; }
.jl-modal-body li { margin: 4px 0; }
.jl-fortschritt { margin: 14px 0 4px; }
.jl-fortschritt .zeile { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-bottom: 7px; }
.jl-fortschritt .bahn { height: 7px; background: var(--elev2); overflow: hidden; clip-path: var(--pg-xs); }
.jl-fortschritt .bahn i { display: block; height: 100%; width: 62%; background: var(--grad); }
.jl-modal-fuss { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 22px 20px; }
.jl-btn-primary { color: #fff; background: var(--grad); font-weight: 800; }
.jl-btn-primary:hover { background: var(--grad); filter: brightness(1.08); }

/* Hinweisbalken (Verbinden / Fehler) */
.jl-toast {
  position: absolute; left: 50%; bottom: 54px; z-index: 40; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 11px 24px 11px 26px; clip-path: var(--pg);
  background: var(--elev2);
  font-size: 13px; font-weight: 600; animation: jl-hoch 0.32s var(--ease);
}
.jl-toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--sk) + 3px); clip-path: var(--naht); background: var(--grad-v); }
.jl-toast[hidden] { display: none; }
.jl-toast .jl-punkt { --c: var(--accent2); }

/* Splash (Bestand) */
.jl-splash { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--bg); }
.jl-splash[hidden] { display: none; }
.jl-splash-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.jl-splash img { width: 180px; animation: jl-atem 2.6s ease-in-out infinite; }
.jl-splash .bahn { width: 180px; height: 4px; background: var(--elev2); overflow: hidden; }
.jl-splash .bahn i { display: block; height: 100%; width: 40%; background: var(--grad); animation: jl-lauf 1.3s var(--ease) infinite; }
.jl-splash small { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

@keyframes jl-puls { 50% { opacity: 0.45; } }
@keyframes jl-ping { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes jl-dreh { to { transform: rotate(360deg); } }
@keyframes jl-ein { from { opacity: 0; } }
@keyframes jl-hoch { from { opacity: 0; transform: translate(var(--tx, 0), 10px); } }
@keyframes jl-atem { 50% { transform: translateY(-4px); } }
@keyframes jl-lauf { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.jl-toast { --tx: -50%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ── Startseite ── */
/* rechte Spalte waechst mit dem Fenster mit (430 px bei 1180, bis 640 px), sonst wird das Kartenbild beim Vergroessern hochkant zugeschnitten */
.a-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(430px, 36%, 640px); gap: 18px; padding: 24px 24px 20px; }
.a-links { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.a-rechts { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.a-hero h1 { margin: 12px 0 0; font-size: 46px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.a-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.a-hero p { margin: 12px 0 0; max-width: 46ch; min-height: 3.2em; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.a-knoepfe { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 6px; }
.a-news { flex: 1; min-height: 0; overflow: hidden; }
.jl-karte { flex: 1; min-height: 0; }
.a-seiten .jl-seiten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a-seiten .jl-seite small { white-space: normal; }
.a-seiten .jl-seite { flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px 18px 11px 20px; }
.a-ts-text small { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--muted); }
.a-ts-text small span { font-family: var(--mono); color: var(--text); }
.a-ts-bahn { position: absolute; left: 30px; right: 30px; bottom: 11px; height: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.a-ts-bahn i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #93c5fd); transition: width 0.8s var(--ease); }
/* Community: Discord live + offene Stellen */
.a-comm { display: flex; flex-direction: column; flex-shrink: 0; }
.a-dc { display: inline-flex; align-items: center; gap: 6px; color: #a5adff !important; text-decoration: none !important; }
.a-dc svg { width: 14px; height: 14px; }
.a-dc:hover { color: #fff !important; }
.a-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 0 14px 0 18px; }
.a-zahlen > div { padding: 9px 16px 9px 20px; clip-path: var(--pg); background: rgba(0, 0, 0, 0.3); }
.a-zahlen b { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.a-zahlen b .jl-punkt { width: 7px; height: 7px; }
.a-zahlen small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.a-neu { display: flex; align-items: center; gap: 10px; margin: 10px 14px 0 18px; padding: 8px 16px 8px 20px; clip-path: var(--pg); background: rgba(255, 255, 255, 0.04); font-size: 12.5px; color: var(--muted); }
.a-neu img { width: 24px; height: 24px; object-fit: cover; clip-path: var(--pg-xs); }
.a-neu b { color: var(--text); font-weight: 700; }
.a-neu time { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.a-suche { margin: 12px 14px 14px 20px; }
.a-suche-kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; }
.a-suche-kopf a { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; }
.a-suche-kopf a:hover { color: var(--text); }
.a-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.a-chips a { padding: 5px 14px; clip-path: var(--pg-s); background: rgba(255, 255, 255, 0.06); font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color 0.16s var(--ease), background 0.16s var(--ease); }
.a-chips a:hover { color: #fff; background: var(--soft); }
.jl-seite .live { position: absolute; top: 11px; right: 16px; width: 6px; height: 6px; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
/* Alle Aenderungen: Schublade von rechts, im Fenster */
.a-schub { position: absolute; inset: 57px 0 39px auto; z-index: 30; width: 460px; display: flex; flex-direction: column; background: var(--surface); box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.75); animation: a-rein 0.36s var(--ease); }
.a-schub::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-v); }
.a-schub[hidden] { display: none; }
.a-schub-kopf { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 10px 24px; }
.a-schub-kopf h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.a-schub-kopf small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.a-schub .jl-log { overflow: auto; padding-bottom: 16px; }
.a-monat { padding: 14px 18px 4px 24px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.a-schub-schatten { position: absolute; inset: 57px 0 39px 0; z-index: 29; background: rgba(0, 0, 0, 0.5); }
.a-schub-schatten[hidden] { display: none; }
@keyframes a-rein { from { transform: translateX(30px); opacity: 0; } }

/* ── Startbildschirm ── */

/* Eigenes kleines Fenster (420 x 580), danach wechselt main.js auf 1180 x 720 */
.sp { --w: 420px; --h: 580px; }
/* Bild unten schraeg angeschnitten, Marken-Naht liegt auf der Schnittkante */
.sp-bild {
  position: relative; height: 300px; flex-shrink: 0; overflow: hidden; isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}
.sp-bild::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 12, 16, 0) 35%, rgba(12, 12, 16, 0.7) 85%),
    radial-gradient(80% 60% at 0% 100%, rgba(218, 102, 82, 0.28), transparent 70%),
    radial-gradient(70% 50% at 100% 90%, rgba(139, 47, 214, 0.24), transparent 70%),
    url("assets/img/spiel-jorgetown.webp") 78% 20% / auto 118% no-repeat;
  animation: sp-zoom 9s var(--ease) both;
}
.sp-bild::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--grad);
  clip-path: polygon(0 calc(80% - 3px), 100% calc(100% - 3px), 100% 100%, 0 80%);
}
.sp-zu { position: absolute; top: 10px; right: 8px; z-index: 2; }
.sp-zu button { width: 34px; height: 28px; border: 0; clip-path: var(--pg-xs); background: rgba(12, 12, 16, 0.75); color: var(--muted); display: grid; place-items: center; }
.sp-zu button:hover { background: var(--danger); color: #fff; }
.sp-zu svg { width: 13px; height: 13px; }

.sp-text { padding: 0 28px; margin-top: 6px; position: relative; }
.sp-text h1 { margin: 0; font-size: 42px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.sp-text h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.sp-text p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

/* Die drei echten Startschritte (wie .an-weg) */
.sp-schritte { list-style: none; margin: 18px 0 0; padding: 0 28px; display: flex; flex-direction: column; gap: 3px; }
.sp-schritte li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 18px 8px 20px; clip-path: var(--pg); background: rgba(255, 255, 255, 0.03);
  font-size: 13px; font-weight: 600; color: var(--faint);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.sp-schritte .mk { width: 20px; height: 20px; display: grid; place-items: center; clip-path: var(--pg-xs); background: rgba(255, 255, 255, 0.08); color: #fff; transition: background 0.25s var(--ease); }
.sp-schritte .mk svg { width: 11px; height: 11px; opacity: 0; transition: opacity 0.2s var(--ease); }
.sp-schritte .wert { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--faint); }
.sp-schritte li.laeuft { color: var(--text); background: var(--soft); }
.sp-schritte li.laeuft .mk { background: var(--grad); background-size: 200% 100%; animation: sp-lauf 1.1s linear infinite; }
.sp-schritte li.fertig { color: var(--muted); background: rgba(52, 211, 153, 0.06); }
.sp-schritte li.fertig .mk { background: var(--ok); color: #06281c; }
.sp-schritte li.fertig .mk svg { opacity: 1; }
.sp-schritte li.warn { background: rgba(251, 191, 36, 0.07); }
.sp-schritte li.warn .mk { background: var(--warn); color: #2b1d00; }
.sp-schritte li.warn .mk svg { opacity: 1; }
.sp-schritte li.warn .wert { color: var(--warn); }

.sp-fuss { margin-top: auto; padding: 0 28px 22px; }
.sp-bahn { height: 5px; background: var(--elev2); overflow: hidden; clip-path: var(--pg-xs); }
.sp-bahn i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.6s var(--ease); }
.sp-zeile { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--mono); font-size: 11px; color: var(--faint); }

@keyframes sp-zoom { from { transform: scale(1.08); } }
@keyframes sp-lauf { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* ── App-Rahmen: das Electron-Fenster IST das Fenster ─────────────── */
body { display: block; background: var(--bg); overflow: hidden; user-select: none; }
.jl-win { width: 100vw; height: 100vh; box-shadow: none; }
.stage[hidden] { display: none !important; }
.auftritt-wartet [data-auftritt] { opacity: 0; }
.sp { -webkit-app-region: drag; }
.sp-zu, .sp-zu button { -webkit-app-region: no-drag; }
input, a, button { -webkit-app-region: no-drag; }
[data-server="pending"] { --c: var(--faint); }
[data-server="wartung"] { --c: var(--info); }
.a-news .jl-log p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-schub .jl-log p { white-space: pre-line; }
.jl-log li { cursor: default; }

/* Fusszeile: Website / Impressum / Datenschutz — derselbe Hover wie oben, Hinweis nach oben */
.jl-fusslinks { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.jl-fusslinks a { padding: 5px 9px; font-size: 11.5px; color: var(--faint); }
.jl-fusslinks a svg { width: 12px; height: 12px; }
/* Adresse als Kurzhinweis nur noch unten in der Fusszeile, oben in der Leiste keine Hover-Texte (Betreiber 02.10.) */
.jl-fusslinks a[data-tip]:hover > span:last-child::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 5px 10px; clip-path: var(--pg-xs); background: var(--elev2);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--muted); white-space: nowrap; z-index: 80;
  pointer-events: none;
}

/* ── Hinweisleiste (Wartung, Neustart, Voice, Durchsage) ─────────── */
.a-hinweise { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 0; }
.a-hinweise[hidden] { display: none; }
.hw {
  --c: var(--info);
  position: relative;
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 7px 22px 7px 28px;
  clip-path: var(--pg);
  background: linear-gradient(90deg, color-mix(in oklab, var(--c) 18%, var(--surface)), var(--surface) 70%);
  font-size: 13px; color: var(--text); animation: jl-hoch 0.32s var(--ease);
}
.hw::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--sk) + 3px); clip-path: var(--naht); background: var(--c); }
.hw svg { width: 16px; height: 16px; color: var(--c); }
.hw b { font-weight: 800; white-space: nowrap; }
.hw span.t { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw .uhr { font-family: var(--mono); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.hw .jl-btn { margin-left: auto; padding: 6px 14px; font-size: 12px; }
.hw[data-art="wartung"] { --c: var(--warn); }
.hw[data-art="neustart"] { --c: var(--warn); }
.hw[data-art="voice"] { --c: var(--danger); }
.hw[data-art="info"] { --c: var(--info); }
.hw[data-art="wichtig"] { --c: var(--danger); }
.a-hinweise:not([hidden]) + .a-main { padding-top: 14px; }

/* roter Punkt am Werkzeug-Knopf, wenn der Voice-Check etwas gefunden hat */
#werkzeuge-auf { position: relative; overflow: visible; }
.a-punkt-rot { position: absolute; top: 6px; right: 9px; width: 7px; height: 7px; background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* ── Verlauf in der Serverkarte ─────────────────────────────────────────── */
.a-verlauf { position: relative; margin-top: 12px; }
.a-verlauf[hidden] { display: none; }
.a-verlauf-kopf { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: rgba(245, 245, 247, 0.72); margin-bottom: 6px; }
.a-verlauf-kopf #verlauf-spitze { font-family: var(--mono); color: rgba(245, 245, 247, 0.9); }
.a-verlauf-balken { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; align-items: end; height: 30px; }
.a-verlauf-balken i { display: block; min-height: 2px; background: rgba(255, 255, 255, 0.26); transition: background 0.16s var(--ease); cursor: default; }
.a-verlauf-balken i.leer { background: rgba(255, 255, 255, 0.08); }
.a-verlauf-balken i.jetzt { background: var(--grad-v); }
.a-verlauf-balken i:hover { background: #fff; }
.a-verlauf-leer { font-size: 11.5px; color: rgba(245, 245, 247, 0.6); }
.a-verlauf-tip { position: absolute; bottom: 40px; transform: translateX(-50%); padding: 5px 12px; clip-path: var(--pg-xs); background: var(--elev2); font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 3; }
.a-verlauf-tip small { font-family: var(--mono); color: var(--muted); font-weight: 500; margin-right: 6px; }

/* ── Werkzeug-Schublade ─────────────────────────────────────────────────── */
.a-werkzeuge { width: 440px; }
.a-wz { overflow: auto; padding: 4px 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.a-wz-block { position: relative; padding: 14px 16px 16px 20px; background: rgba(0, 0, 0, 0.28); }
.a-wz-block::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-v); }
.a-wz-titel { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.a-wz-titel h4 { margin: 0; font-size: 14px; font-weight: 800; }
.a-wz-link { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.a-wz-link:hover { color: var(--text); text-decoration-color: var(--accent); }
.a-wz-wert { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.a-wz-text { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.a-wz-akt { display: flex; gap: 6px; flex-wrap: wrap; }
.a-wz-ergebnis { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; }
.a-wz-ergebnis.ok { color: var(--ok); }
.a-wz-ergebnis.fehler { color: #fca5a5; }
.jl-btn-gefahr { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.jl-btn-gefahr:hover { background: rgba(239, 68, 68, 0.24); color: #fff; }
.a-pruef { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.a-pruef li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; }
.a-pruef li small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.a-pruef .mk { width: 18px; height: 18px; margin-top: 1px; display: grid; place-items: center; clip-path: var(--pg-xs); background: rgba(255, 255, 255, 0.08); color: var(--faint); }
.a-pruef .mk svg { width: 11px; height: 11px; }
.a-pruef li.ok .mk { background: var(--ok); color: #06281c; }
.a-pruef li.warn .mk { background: var(--warn); color: #2b1d00; }
.a-pruef li.fehler .mk { background: var(--danger); color: #fff; }
.a-pruef li.laeuft .mk { background: var(--grad); background-size: 200% 100%; animation: sp-lauf 1.1s linear infinite; }

/* ── Anmeldung mit Discord (vorbereitet; sichtbar erst, wenn das UCP sie anbietet) ── */
.a-konto { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; padding: 0; border: 0; clip-path: var(--pg-s); background: rgba(255, 255, 255, 0.07); color: var(--text); font-size: 12.5px; font-weight: 700; }
.a-konto img { width: 26px; height: 26px; object-fit: cover; }
.a-konto:hover { background: rgba(255, 255, 255, 0.12); }
.a-einreise { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 28px; clip-path: var(--pg); background: color-mix(in oklab, var(--c) 12%, var(--surface)); font-size: 13px; }
.a-einreise::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--sk) + 3px); clip-path: var(--naht); background: var(--c); }
.a-einreise[hidden] { display: none; }
.a-einreise svg { width: 16px; height: 16px; color: var(--c); }
.a-einreise b { font-weight: 800; }
.a-einreise span { color: var(--muted); }
.a-einreise .jl-btn { margin-left: auto; padding: 6px 14px; font-size: 12px; }
.a-einreise[data-st="ok"] { --c: var(--ok); }
.a-einreise[data-st="pruefung"] { --c: var(--warn); }
.a-einreise[data-st="neu"], .a-einreise[data-st="abgelehnt"] { --c: var(--danger); }

/* versteckt heisst versteckt — auch bei Knoepfen mit eigener display-Regel */
[hidden] { display: none !important; }

/* FiveM-Ordner im Cache-Block */
.a-wz-pfad { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 8px 16px 8px 18px; clip-path: var(--pg-s); background: rgba(255, 255, 255, 0.05); font-size: 12px; min-width: 0; flex-wrap: wrap; }
.a-wz-pfad .k { font-weight: 800; color: var(--text); flex-shrink: 0; }
.a-wz-pfad .k.fehlt { color: var(--warn); }
.a-wz-pfad .p { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-wz-pfad .k.fehlt + .p { font-family: inherit; font-size: 12px; white-space: normal; }

/* Scrollbars wie im Spiel: schmal, Daumen in der Marken-Naht */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; background: var(--grad-v) padding-box; }
::-webkit-scrollbar-thumb:hover { border-width: 1px; }
::-webkit-scrollbar-corner { background: transparent; }

/* Flugzeug aus dem Ladebildschirm neben der Begruessung: fliegt beim Oeffnen von rechts ein, schwebt dann leicht */
.a-hero { position: relative; }
.a-flieger {
  position: absolute; top: 14px; right: 4px; width: 280px; height: auto; pointer-events: none;
  transform: rotate(5deg); transform-origin: 60% 50%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45));
  animation: a-schweben 6s ease-in-out infinite;
}
@keyframes a-schweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .a-flieger { animation: none; } }
