/* ============================================================
   leicky.fun — Design-System
   Vorlage: Spotify-Clone-Repo (Thenaveen-hub/Spotify)
   Struktur & Layout übernommen, Branding NICHT:
   kein Spotify-Name, kein Spotify-Logo — außer auf leickify.html.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700;9..40,800;9..40,900&family=DM+Mono:wght@400;500&display=swap');

:root {
  --black: #000;
  --bg: #000;
  --surface-0: #121212;
  --surface-1: #181818;
  --surface-2: #232323;
  --surface-3: #2a2a2a;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);

  --txt: #ffffff;
  --dim: #a7a7a7;
  --dim-2: #7a7a7a;

  --green: #1DB954;
  --green-hi: #1ed760;
  --win: #1ed760;
  --loss: #f15e6c;
  --draw: #a7a7a7;
  --amber: #ffa42b;
  --blue: #539df5;

  --radius: 8px;
  --radius-lg: 12px;
  --pill: 500px;
  --header-h: 72px;
  --font: "DM Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); }

/* ============ Kopfleiste ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.site-header.solid { background: #000; }
.site-header .inner {
  max-width: 1200px; height: 100%; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.wordmark {
  font-family: var(--font);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.wordmark span.dot { color: var(--green); }
.menu {
  margin-left: auto;
  display: flex; align-items: center; gap: 4px;
}
.menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: var(--pill);
  color: var(--dim);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .15s, background .15s, transform .15s;
}
.menu a svg { width: 20px; height: 20px; flex: none; }
.menu a img.mark-rl { width: 30px; height: 14px; object-fit: contain; flex: none; }
.menu a:hover { color: #fff; background: var(--surface-2); }
.menu a.active { color: #fff; background: var(--surface-2); }
.sep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 8px; }
.burger {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: #fff; width: 42px; height: 38px; cursor: pointer; padding: 0;
}
.burger svg { width: 20px; height: 20px; margin: 0 auto; }

/* ============ Seite ============ */
.page { padding-top: var(--header-h); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.muted { color: var(--dim); }
.mono-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(52% 42% at 50% 0%, rgba(30, 215, 96, .18), transparent 70%),
    radial-gradient(40% 30% at 85% 20%, rgba(83, 157, 245, .10), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.hero h1 .dot { color: var(--green); }
.hero p.lead { margin: 0; color: var(--dim); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 62ch; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dim);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin: 22px 0 0;
  padding: 16px 40px;
  border: 0; border-radius: var(--pill);
  background: var(--green); color: #000;
  font-family: var(--font); font-weight: 800; font-size: 15px;
  letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer;
  transition: background .25s, transform .2s;
}
.btn:hover { background: var(--green-hi); transform: scale(1.04); }
.btn.ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  letter-spacing: 1.2px;
}
.btn.ghost:hover { border-color: #fff; transform: scale(1.04); }
.btn.small { padding: 11px 22px; font-size: 13px; margin: 0; }
.btn[disabled] { opacity: .5; cursor: default; }

.chiprow { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.chip {
  background: var(--surface-1); color: var(--dim);
  border: 1px solid var(--line); border-radius: var(--pill);
  padding: 8px 16px; font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: .15s;
}
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.on { background: #fff; color: #000; border-color: #fff; }

/* ============ Karten ============ */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card h2 {
  margin: 0 0 14px;
  font-size: 17px; font-weight: 800; letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.card h2 span.sub { color: var(--dim); font-weight: 400; font-size: 12px; }
.card.pad0 { padding: 0; overflow: hidden; }

a.card { transition: background .2s, transform .2s, border-color .2s; display: block; }
a.card:hover { background: var(--surface-2); border-color: var(--line-strong); transform: translateY(-2px); }

.tile {
  position: relative; display: block;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
  transition: background .2s, transform .2s, border-color .2s;
}
.tile:hover { background: var(--surface-2); transform: translateY(-3px); border-color: var(--line-strong); }
.tile .mark { width: 34px; height: 34px; display: grid; place-items: center; }
.tile .mark svg { width: 32px; height: 32px; }
.tile .mark img { width: 32px; height: 32px; object-fit: contain; }
.tile .idx {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--mono); font-size: 12px; color: var(--dim-2); letter-spacing: .1em;
}
.tile h3 { margin: 20px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--dim); font-size: 14px; min-height: 42px; }
.tile .go { margin-top: 14px; color: var(--green); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* KPI */
.kpi {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 18px;
}
.kpi .v { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.kpi .v.green { color: var(--green); }
.kpi .v.loss { color: var(--loss); }
.kpi .v.amber { color: var(--amber); }
.kpi .l { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.kpi .s { color: var(--dim-2); font-size: 11px; margin-top: 6px; }

/* Tabellen */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data th {
  color: var(--dim); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em;
}
table.data th.num, table.data td.num { text-align: right; font-family: var(--mono); }
table.data th[data-k] { cursor: pointer; user-select: none; }
table.data th[data-k]:hover { color: #fff; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td a { color: var(--green); }
.scroll { overflow: auto; }
.scroll.y { max-height: 480px; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: var(--pill);
  font-size: 12px; font-weight: 700; border: 1px solid var(--line-strong);
}
.badge.win { color: var(--win); border-color: rgba(30, 215, 96, .45); }
.badge.loss { color: var(--loss); border-color: rgba(241, 94, 108, .45); }
.badge.draw { color: var(--draw); }
.badge.green { color: var(--green); border-color: rgba(29, 185, 84, .45); }

.bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; position: relative; min-width: 70px; }
.bar > i { position: absolute; inset: 0 auto 0 0; display: block; background: var(--green); }

.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--dim); font-size: 12px; margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 2px 0; }
.legend button.off { opacity: .35; text-decoration: line-through; }

/* Medien / Clips */
.stage {
  background: #0b0b0b; border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; place-items: center; overflow: hidden; min-height: 240px;
}
.stage video { width: 100%; max-height: 68vh; background: #000; display: none; }
.stage .hint { padding: 36px 22px; text-align: center; color: var(--dim); max-width: 60ch; font-size: 14px; }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.clip {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.clip:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--line-strong); }
.clip.active { border-color: var(--green); }
.clip .d { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.clip .y { color: var(--dim); font-size: 12px; margin-top: 2px; }
.clip .vot { color: var(--dim-2); font-size: 12px; margin-top: 8px; display: flex; gap: 12px; }
.clip .vot .up { color: var(--win); }
.clip .vot .down { color: var(--loss); }
.year-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 24px; }
.year-bar a {
  font-family: var(--mono); font-size: 13px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: var(--pill); color: var(--dim);
}
.year-bar a:hover { color: #fff; border-color: var(--line-strong); }
.month-h {
  margin: 26px 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); display: flex; align-items: center; gap: 12px;
}
.month-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Ränge */
.rank-list { display: grid; gap: 12px; }
.rank {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px 18px;
}
.rank img { width: 48px; height: 48px; object-fit: contain; }
.rank .pn { font-weight: 800; font-size: 16px; }
.rank .rd { color: var(--dim); font-size: 13px; }
.rank .mmr { font-family: var(--mono); font-size: 24px; text-align: right; }
.rank .mmr small { display: block; font-size: 11px; color: var(--dim); }

/* Charts */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tick { fill: var(--dim); font-family: var(--mono); font-size: 10px; }
.lbl { fill: var(--txt); font-size: 11px; }
.chart-wrap { position: relative; }
.tooltip {
  position: absolute; pointer-events: none; opacity: 0;
  background: #000; border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 8px 10px; font-size: 12px; line-height: 1.45; z-index: 5;
  box-shadow: var(--shadow); max-width: 260px; transition: opacity .1s;
}
.tooltip.on { opacity: 1; }
.brush { cursor: ew-resize; }
.zoomrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 0; }

.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* Fußleiste */
.site-footer {
  border-top: 1px solid var(--line);
  background: #000; padding: 56px 0 32px; margin-top: 40px;
}
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--dim); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--dim-2); font-size: 12px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); display: inline-block; box-shadow: 0 0 10px var(--win); }

@media (max-width: 860px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .burger { display: grid; place-items: center; }
  .menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #0a0a0a; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { border-radius: var(--radius); padding: 14px 16px; }
  .sep { display: none; }
  .hero { padding: 64px 0 40px; }
  .section { padding: 36px 0; }
  .rank { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 12px; }
  .rank .mmr { font-size: 20px; }
}