/* Mystical2 - eigenes Design (dunkles Fantasy-Layout). Keine externen Schriften, keine Skripte. */

:root {
  --bg: #0b0910;
  --bg2: #120d1a;
  --panel: rgba(21, 16, 30, .86);
  --panel-solid: #15101e;
  --line: rgba(217, 180, 111, .26);
  --line-strong: rgba(217, 180, 111, .5);
  --gold: #d9b46f;
  --gold2: #f2dba4;
  --crimson: #b3303a;
  --text: #ece6d8;
  --muted: #a79f8e;
  --ok: #5fcf8b;
  --bad: #e5655f;
  --warn: #e3b34f;
  --radius: 14px;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold2); text-decoration-color: rgba(242, 219, 164, .4); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--gold2); letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.dim { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1208; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 16, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold2); }
.logo-mark {
  width: 22px; height: 22px; transform: rotate(45deg);
  border: 2px solid var(--gold); background: linear-gradient(135deg, rgba(217,180,111,.35), rgba(179,48,58,.35));
  box-shadow: 0 0 14px rgba(217, 180, 111, .35);
}
.logo-text { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff3cf, #d9b46f 60%, #a9782f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text b { color: var(--crimson); -webkit-text-fill-color: #e0505b; font-weight: 700; margin-left: .06em; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.menu a { color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; border: 1px solid transparent; }
.menu a:hover { background: rgba(217, 180, 111, .12); border-color: var(--line); }
.menu a.on { color: #1a1208; background: linear-gradient(180deg, var(--gold2), var(--gold)); font-weight: 600; }
.bar-status { margin-left: auto; }

/* ---------- Status ---------- */
.pill { display: inline-flex; align-items: center; gap: .5em; padding: 4px 12px; border-radius: 999px; font-size: .875rem; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); text-decoration: none; white-space: nowrap; }
.pill::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--muted); }
.pill.ok { border-color: rgba(95, 207, 139, .5); } .pill.ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pill.bad { border-color: rgba(229, 101, 95, .5); } .pill.bad::before { background: var(--bad); }
.pill.unknown::before { background: var(--warn); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(78vh, 720px); display: flex; align-items: center;
  background:
    linear-gradient(180deg, rgba(11, 9, 16, .35) 0%, rgba(11, 9, 16, .15) 40%, rgba(11, 9, 16, .95) 100%),
    linear-gradient(90deg, rgba(11, 9, 16, .75) 0%, rgba(11, 9, 16, .15) 60%),
    url("/assets/img/hero.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-in { padding-block: 72px 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; color: var(--gold); margin-bottom: .8em; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.4rem); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .15em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .7); }
.h1-a { background: linear-gradient(180deg, #fff3cf, #d9b46f 65%, #a9782f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-b { color: #e0505b; margin-left: .06em; }
.lead { font-size: clamp(1.05rem, 1vw + .9rem, 1.35rem); max-width: 40em; color: #f0e9da; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-status { margin-top: 8px; }

.btn { display: inline-block; text-decoration: none; padding: 12px 24px; border-radius: 10px; font-weight: 600; color: var(--gold2);
  border: 1px solid var(--line-strong); background: rgba(217, 180, 111, .08); transition: transform .15s, background .15s; }
.btn:hover { background: rgba(217, 180, 111, .2); color: #fff; transform: translateY(-1px); }
.btn.primary { color: #1a1208; border-color: transparent; background: linear-gradient(180deg, #f6e2ae, #d9b46f); box-shadow: 0 6px 22px rgba(217, 180, 111, .25); }
.btn.primary:hover { background: linear-gradient(180deg, #fff0c9, #e3c07d); }

/* ---------- Seiten-Bloecke ---------- */
.block { padding-block: 44px; }
.page-head { padding-bottom: 8px; }
.page-head h1 { font-size: clamp(2rem, 3vw + 1rem, 2.8rem); }
body.plain main { background: radial-gradient(1200px 500px at 50% -10%, rgba(179, 48, 58, .12), transparent 60%); }
.more { margin: 18px 0 0; text-align: right; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2, .panel h3 { margin-top: 0; }
.panel.note { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(217, 180, 111, .08), var(--panel)); }
.split { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; align-items: start; }

.tiles { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.tile { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 36px rgba(0, 0, 0, .45); }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.tile-body { padding: 18px 20px 20px; }
.tile-body h3 { margin-bottom: .35em; }
.tile-body p { margin: 0; color: #d4cdbd; }
.extras { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.extras .panel p { margin: 0; color: #d4cdbd; }

.steps { margin: 0 0 18px; padding-left: 1.4em; }
.steps li { margin-bottom: .6em; padding-left: .2em; }
.steps li::marker { color: var(--gold); font-weight: 700; }

.downloads { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dl .size { color: var(--gold); font-weight: 700; font-size: 1.1rem; margin-bottom: .4em; }

.statbox { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 36px; }
.stat-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.stat-value { font-size: 1.2rem; font-weight: 600; }
.stat-value.big { font-family: var(--serif); font-size: 2.6rem; color: var(--gold2); line-height: 1.1; }

/* ---------- Tabellen ---------- */
.subnav { display: flex; gap: 8px; margin-top: 8px; }
.subnav a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.subnav a.on { background: var(--gold); color: #1a1208; border-color: var(--gold); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.rank { width: 100%; border-collapse: collapse; min-width: 560px; }
table.rank th, table.rank td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(217, 180, 111, .12); white-space: nowrap; }
table.rank thead th { position: sticky; top: 0; background: #1b1426; color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
table.rank tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
table.rank tbody tr:hover { background: rgba(217, 180, 111, .08); }
table.rank tbody tr:last-child td { border-bottom: 0; }
table.rank .r { text-align: right; font-variant-numeric: tabular-nums; }
table.rank .rk { width: 4.5em; color: var(--muted); font-variant-numeric: tabular-nums; }
table.rank .nm { font-weight: 600; color: var(--gold2); }
table.rank tbody tr:nth-child(-n+3) .rk { color: var(--gold); font-weight: 800; }
table.mini th, table.mini td { padding: 9px 12px; }
.emp-red { color: #ff7d77; } .emp-yellow { color: #f1d065; } .emp-blue { color: #7fb6ff; } .emp-none { color: var(--muted); }

.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 22px; }
.pager a, .pager .cur { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; min-width: 2.4em; text-align: center; }
.pager a:hover { background: rgba(217, 180, 111, .15); }
.pager .cur { background: var(--gold); color: #1a1208; border-color: var(--gold); font-weight: 700; }
.pager .gap { color: var(--muted); }

/* ---------- Fusszeile ---------- */
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(8, 6, 12, .9); color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 22px; }
.foot-links { display: flex; gap: 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold2); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .bar-status { margin-left: 0; }
}
@media (max-width: 640px) {
  .bar { gap: 8px; }
  .menu a { padding: 7px 11px; font-size: .94rem; }
  .hero-in { padding-block: 48px 64px; }
  .block { padding-block: 30px; }
  .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
