﻿/* ============================================================
   Aurora Glass – Polarlicht-Hintergrund, Glas-Karten, Leuchtakzente
   ============================================================ */
:root {
  --bg: #05070f;
  --text: #f3f5fb;
  --soft: #c9cfe0;
  --muted: #8f97ad;
  --faint: #5d6680;

  --glass: rgba(255, 255, 255, .055);
  --glass-hi: rgba(255, 255, 255, .085);
  --glass-strong: rgba(14, 17, 30, .55);
  --edge: rgba(255, 255, 255, .11);
  --edge-hi: rgba(255, 255, 255, .22);
  --input: rgba(6, 8, 18, .45);

  --a1: #5eead4; /* türkis */
  --a2: #7dd3fc; /* eisblau */
  --a3: #a78bfa; /* violett */
  --a4: #f0abfc; /* rosa */
  --grad: linear-gradient(115deg, var(--a1) 0%, var(--a2) 30%, var(--a3) 65%, var(--a4) 100%);
  --green: #4ade80;
  --red: #fb7185;
  --gold: #fcd34d;

  --radius: 20px;
  --blur: blur(24px) saturate(150%);
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", "SF Pro Display", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
::selection { background: rgba(167, 139, 250, .45); }
a { color: var(--a2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 6px; line-height: 1.1; }
h2 { font-size: 13px; font-weight: 600; margin: 0 0 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
small { color: var(--muted); }
.muted { color: var(--muted); margin: 0; }
.ico { width: 18px; height: 18px; flex: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Polarlicht ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::before {               /* leichtes Korn, damit Verläufe nicht „digital“ wirken */
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.aurora::after {                /* Vignette nach unten */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(130% 95% at 50% 10%, transparent 55%, rgba(5, 7, 15, .85) 100%);
}
.aurora i {
  position: absolute; display: block; border-radius: 50%; filter: blur(90px); opacity: .75;
  mix-blend-mode: screen; will-change: transform;
}
.aurora i:nth-of-type(1) { width: 60vw; height: 38vw; left: -10vw; top: -14vw; background: radial-gradient(closest-side, #14b8a6, transparent); animation: drift1 26s var(--ease) infinite alternate; }
.aurora i:nth-of-type(2) { width: 55vw; height: 34vw; right: -12vw; top: -8vw; background: radial-gradient(closest-side, #7c3aed, transparent); animation: drift2 32s var(--ease) infinite alternate; }
.aurora i:nth-of-type(3) { width: 48vw; height: 30vw; left: 26vw; top: 6vw; background: radial-gradient(closest-side, #0ea5e9, transparent); opacity: .5; animation: drift3 38s var(--ease) infinite alternate; }
.aurora i:nth-of-type(4) { width: 46vw; height: 32vw; right: 0; bottom: -8vw; background: radial-gradient(closest-side, #db2777, transparent); opacity: .42; animation: drift4 30s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 8vw) scale(1.25) rotate(12deg); } }
@keyframes drift2 { to { transform: translate(-16vw, 12vw) scale(.85) rotate(-18deg); } }
@keyframes drift3 { to { transform: translate(-12vw, -6vw) scale(1.3); } }
@keyframes drift4 { to { transform: translate(-22vw, -14vw) scale(1.15) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* ---------- Glas-Grundbaustein ---------- */
.glass, .panel, .settings, .module-card, .guild-card, .hero-list, .lb li, .side, .topbar {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px -30px rgba(0, 0, 0, .7);
}

/* ---------- Kopfzeile ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 14px 14px 0; padding: 10px 14px 10px 18px; border-radius: 18px;
  position: sticky; top: 14px; z-index: 10; background: var(--glass-strong);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; letter-spacing: -.01em; font-size: 16px; }
.brand:hover { color: #fff; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15), 0 0 24px rgba(125, 211, 252, .35); }
.brand-dot { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); box-shadow: 0 0 24px rgba(167, 139, 250, .55); }
.topnav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.topnav a, .topnav button.link { color: var(--soft); }
.topnav a:hover, .topnav button.link:hover { color: #fff; }
.topnav a.btn, .topnav a.btn:hover { color: #0b0d1c; }
.topnav form { margin: 0; }
.me { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.me img { border-radius: 50%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  color: #0b0d1c; font: 650 14px var(--font); letter-spacing: .01em;
  padding: 12px 22px; border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(167, 139, 250, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .6s var(--ease);
}
.btn:hover { color: #0b0d1c; transform: translateY(-2px); background-position: 100% 0;
  box-shadow: 0 16px 40px -12px rgba(240, 171, 252, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn:active { transform: translateY(0); }
.btn.small { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn.ghost { background: var(--glass-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.btn.ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .6), 0 0 30px -8px rgba(125, 211, 252, .5); }
.btn.red { background: linear-gradient(115deg, #fb7185, #f472b6); box-shadow: 0 10px 30px -10px rgba(251, 113, 133, .7); }
button.link { background: none; border: 0; color: var(--a2); cursor: pointer; font: inherit; padding: 0; }
button.link:hover { color: #fff; }
.red { color: var(--red) !important; }

/* ---------- Formularfelder ---------- */
input[type=text], input[type=number], input[type=search], input:not([type]), textarea, select {
  width: 100%; background: var(--input); color: var(--text); font: 14px var(--font);
  border: 1px solid var(--edge); border-radius: 12px; padding: 11px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(125, 211, 252, .7); background: rgba(6, 8, 18, .65);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, .12), 0 0 30px -6px rgba(125, 211, 252, .45);
}
select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: #121528; color: var(--text); }

/* Schalter */
.toggle, .switch {
  appearance: none; width: 46px; height: 26px; border-radius: 99px; position: relative; cursor: pointer; flex: none; margin: 0; padding: 0;
  background: rgba(255, 255, 255, .1); border: 1px solid var(--edge);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.toggle::after, .switch span {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #e6e9f2; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .3s var(--ease), background .3s;
}
.toggle:checked, .switch.on { background: var(--grad); border-color: transparent; box-shadow: 0 0 22px -4px rgba(125, 211, 252, .8); }
.toggle:checked::after, .switch.on span { transform: translateX(20px); background: #fff; }
.toggle:focus-visible, .switch:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; }

/* ---------- Startseite ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 110px 24px 90px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .22em; font-size: 11px; font-weight: 700; margin: 0 0 18px;
  padding: 6px 12px; border-radius: 99px; background: var(--glass-hi); border: 1px solid var(--edge); color: var(--a1); }
.hero h1 { font-size: 72px; line-height: .98; letter-spacing: -.045em; margin-bottom: 22px; font-weight: 800; }
.hero h1 .grad-text { display: inline-block; padding-bottom: .06em; }
.lead { font-size: 19px; color: var(--soft); max-width: 470px; margin: 0 0 34px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }
.hero-list { list-style: none; margin: 0; padding: 10px; border-radius: 26px; }
.hero-list li { display: flex; gap: 14px; padding: 14px; border-radius: 16px; transition: background .25s; }
.hero-list li:hover { background: rgba(255, 255, 255, .05); }
.hero-list .ico { color: var(--a2); margin-top: 3px; filter: drop-shadow(0 0 8px rgba(125, 211, 252, .6)); }
.hero-list strong { display: block; font-size: 15px; }
.hero-list span { color: var(--muted); font-size: 13px; }

/* ---------- Seiten ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 56px 24px 90px; }
.page.narrow { max-width: 780px; }
.center { text-align: center; padding-top: 140px; }
.center h1 { font-size: 44px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--edge-hi); border-radius: var(--radius); margin: 24px 0; background: rgba(255, 255, 255, .02); }

.guild-grid { display: grid; gap: 12px; margin: 30px 0; }
.guild-card { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: var(--radius); color: var(--text);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.guild-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(125, 211, 252, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 50px -20px rgba(125, 211, 252, .35); }
.guild-card strong { display: block; font-size: 16px; }
.guild-card .arrow { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.guild-card:hover .arrow { transform: translateX(4px); color: var(--a2); }
.gicon { border-radius: 30%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--edge-hi); }
.gicon-text { display: grid; place-items: center; background: linear-gradient(135deg, rgba(94, 234, 212, .25), rgba(167, 139, 250, .3));
  color: #fff; font-weight: 750; text-transform: uppercase; width: 40px; height: 40px; letter-spacing: .02em; }
.gicon-text.s44 { width: 44px; height: 44px; } .gicon-text.s56 { width: 56px; height: 56px; font-size: 19px; } .gicon-text.s64 { width: 64px; height: 64px; font-size: 21px; }

/* ---------- Server-Ansicht ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 14px; padding: 14px; min-height: calc(100vh - 80px); }
.shell > * { min-width: 0; }
.side { border-radius: 22px; padding: 20px 12px; align-self: start; position: sticky; top: 92px; background: var(--glass-strong); }
.side-guild { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; margin-bottom: 8px; border-bottom: 1px solid var(--edge); }
.side-guild strong { display: block; font-size: 15px; line-height: 1.25; }
.side-guild small { font-size: 12px; }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--soft); font-size: 14px; transition: background .2s, color .2s; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.on { background: linear-gradient(115deg, rgba(94, 234, 212, .16), rgba(167, 139, 250, .2)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.side nav a.on .ico { color: var(--a2); filter: drop-shadow(0 0 6px rgba(125, 211, 252, .8)); }
.side-label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); padding: 18px 12px 6px; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .15); margin-left: auto; }
.dot-on { background: var(--a1); box-shadow: 0 0 10px var(--a1); }
.content { padding: 26px 30px 90px; max-width: 1000px; width: 100%; }
.content > h1 { margin-bottom: 4px; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin: 26px 0 30px; }
.module-card { position: relative; border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.module-card.is-on {            /* farbiger Schein, wenn an */
  background-image: radial-gradient(60% 90% at 100% 0%, rgba(94, 234, 212, .2), transparent 70%);
}
.module-card:hover { transform: translateY(-4px); border-color: var(--edge-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -28px rgba(125, 211, 252, .45); }
.module-link { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 76px 22px 20px; color: var(--text); }
.module-link:hover { color: var(--text); }
.module-link strong { font-size: 16px; }
.module-link .muted { font-size: 13px; }
.module-card form { position: absolute; top: 20px; right: 18px; margin: 0; }
.module-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(94, 234, 212, .18), rgba(167, 139, 250, .22)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.is-on .module-ico { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 24px -4px rgba(125, 211, 252, .7); }
.module-ico.big { width: 56px; height: 56px; border-radius: 17px; margin: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 40px -8px rgba(167, 139, 250, .8); }
.module-ico.big .ico { width: 26px; height: 26px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; }
.panel.flush { padding: 0; overflow-x: auto; }
.panel.danger { border-color: rgba(251, 113, 133, .3); margin-top: 28px; background: rgba(251, 113, 133, .05); }
.more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; }

.mini-lb, .case-list { list-style: none; padding: 0; margin: 0; }
.mini-lb li, .case-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--edge); }
.mini-lb li:last-child, .case-list li:last-child { border-bottom: 0; }
.mini-lb img { border-radius: 50%; }
.mini-lb .pos { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .06); }
.mini-lb li:nth-child(1) .pos { background: var(--gold); color: #1d1500; box-shadow: 0 0 14px rgba(252, 211, 77, .6); }
.mini-lb li:nth-child(2) .pos { background: #dbe2ee; color: #141820; }
.mini-lb li:nth-child(3) .pos { background: #e8a87c; color: #26140a; }
.mini-lb .lvl { margin-left: auto; font-weight: 700; font-size: 13px; }
.case-list .muted { margin-left: auto; font-size: 12px; white-space: nowrap; }
.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; letter-spacing: .03em;
  background: rgba(255, 255, 255, .08); color: var(--soft); border: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.b-ban { background: rgba(251, 113, 133, .14); color: #fda4af; border-color: rgba(251, 113, 133, .3); }
.b-kick { background: rgba(251, 146, 60, .14); color: #fdba74; border-color: rgba(251, 146, 60, .3); }
.b-timeout { background: rgba(252, 211, 77, .12); color: var(--gold); border-color: rgba(252, 211, 77, .3); }
.b-warn { background: rgba(252, 211, 77, .08); color: #fde68a; border-color: rgba(252, 211, 77, .2); }
.b-unban, .b-untimeout { background: rgba(74, 222, 128, .12); color: #86efac; border-color: rgba(74, 222, 128, .3); }
.b-automod { background: rgba(167, 139, 250, .14); color: #c4b5fd; border-color: rgba(167, 139, 250, .35); }

/* ---------- Einstellungen ---------- */
.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.page-head h1 { margin: 0; }
.page-head > div { flex: 1; min-width: 0; }
.head-toggle { margin: 0 0 0 auto; }
.settings { border-radius: var(--radius); padding: 6px 26px 24px; }
.settings.compact { background: none; border: 0; padding: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.settings .row { padding: 18px 0; border-bottom: 1px solid var(--edge); }
.settings .row:last-of-type { border-bottom: 0; }
.settings.compact .row { border: 0; padding: 8px 0; }
.settings label strong, .settings .row > strong { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.settings label small, .settings .row > small { display: block; margin-bottom: 10px; font-size: 13px; }
.settings label:not(.toggle-row):not(.chip) { display: block; margin-bottom: 6px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; }
.toggle-row small { margin: 2px 0 0 !important; }
.actions { padding-top: 22px; display: flex; justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.picker { border: 1px solid var(--edge); border-radius: 14px; background: var(--input); padding: 8px; }
.picker:focus-within { border-color: rgba(125, 211, 252, .5); }
.picker .picker-search { border: 0; background: transparent; padding: 6px 8px 10px; box-shadow: none; }
.picker-list { display: flex; flex-wrap: wrap; gap: 7px; max-height: 200px; overflow-y: auto; padding: 2px; }
.picker small { display: block; padding: 8px 6px 2px; }
.chip { display: inline-flex; align-items: center; cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .06);
  color: var(--soft); font-size: 13px; border: 1px solid rgba(255, 255, 255, .08); transition: all .2s var(--ease); }
.chip:hover span { background: rgba(255, 255, 255, .1); color: #fff; }
.chip input:checked + span { background: linear-gradient(115deg, rgba(94, 234, 212, .22), rgba(167, 139, 250, .3)); border-color: rgba(167, 139, 250, .55);
  color: #fff; box-shadow: 0 0 16px -4px rgba(167, 139, 250, .7); }
.chip input:focus-visible + span { outline: 2px solid var(--a2); outline-offset: 2px; }
.chip.static { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: 12px; margin: 2px 4px 2px 0; cursor: default; }
.swatch { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #99aab5; box-shadow: 0 0 8px currentColor; }

.rewards { display: flex; flex-direction: column; gap: 8px; }
.reward-row { display: grid; grid-template-columns: 52px 110px 1fr; gap: 10px; align-items: center; }
.reward-row span { color: var(--muted); font-size: 13px; }
.reward-row.new input, .reward-row.new select { border-style: dashed; background: rgba(6, 8, 18, .25); }
.rm-rows { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.rm-row { display: grid; grid-template-columns: 1.2fr 1fr 96px; gap: 8px; }
form.inline { display: flex; gap: 10px; margin-top: 16px; }
form.inline input { max-width: 300px; }

.alert { background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .35); color: #fecdd3; border-radius: 14px; padding: 12px 18px; margin-bottom: 18px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.alert p { margin: 4px 0; }
.toast { position: fixed; top: 86px; right: 26px; z-index: 30; padding: 11px 18px 11px 40px; border-radius: 14px; font-weight: 600;
  background: rgba(20, 40, 36, .7); color: #ccfbf1; border: 1px solid rgba(94, 234, 212, .45);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: 0 0 40px -8px rgba(94, 234, 212, .6);
  transition: opacity .5s, transform .5s var(--ease); }
.toast::before { content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 12px var(--a1); }
.toast.gone { opacity: 0; transform: translateY(-10px); pointer-events: none; }

/* ---------- Tabellen ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--edge); text-transform: uppercase; letter-spacing: .14em; }
.table td { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .035); }
.table tr:last-child td { border-bottom: 0; }
.table .id { display: block; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.table tr.inactive td { opacity: .4; }
.table form { margin: 0; }
.nowrap { white-space: nowrap; }

/* ---------- Rangliste ---------- */
.lb-head { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; }
.lb-head .eyebrow { margin-bottom: 8px; }
.lb-head h1 { font-size: 42px; }
.lb { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: none; }
.lb li { position: relative; display: grid; grid-template-columns: 38px 48px 1fr auto; gap: 16px; align-items: center; border-radius: var(--radius); padding: 14px 22px;
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.lb li:hover { transform: translateX(4px); border-color: var(--edge-hi); }
.lb li img, .ava-ph { border-radius: 50%; width: 48px; height: 48px; background: linear-gradient(135deg, rgba(94, 234, 212, .2), rgba(167, 139, 250, .25)); display: block; box-shadow: 0 0 0 2px rgba(255, 255, 255, .1); }
.lb .pos { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; font-size: 15px; }
.lb .podium .pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #12131c; font-size: 15px; }
.lb .p1 .pos { background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 0 22px rgba(252, 211, 77, .7); }
.lb .p2 .pos { background: linear-gradient(135deg, #f8fafc, #94a3b8); box-shadow: 0 0 16px rgba(226, 232, 240, .4); }
.lb .p3 .pos { background: linear-gradient(135deg, #fdba74, #c2410c); box-shadow: 0 0 16px rgba(251, 146, 60, .45); }
.lb .p1 { border-color: rgba(252, 211, 77, .4); background: linear-gradient(100deg, rgba(252, 211, 77, .1), var(--glass) 55%); }
.lb .p1 img { box-shadow: 0 0 0 2px rgba(252, 211, 77, .8), 0 0 24px rgba(252, 211, 77, .4); }
.lb .p2 { border-color: rgba(226, 232, 240, .25); }
.lb .p3 { border-color: rgba(251, 146, 60, .25); }
.who { min-width: 0; }
.who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; }
.who small { font-size: 12px; }
.bar { height: 7px; background: rgba(255, 255, 255, .07); border-radius: 99px; overflow: hidden; margin: 7px 0 5px; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; box-shadow: 0 0 12px rgba(125, 211, 252, .7);
  transition: width 1.2s var(--ease); }
.lb .lvl { text-align: center; min-width: 54px; }
.lb .lvl small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.lb .lvl strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   Noch krasser: Vorhänge, Sterne, Maus-Licht, Leuchtrand, Zahlen, Podest
   ============================================================ */

/* Sternenhimmel */
.aurora .stars {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent 60%),
    radial-gradient(1px 1px at 140px 80px, rgba(255, 255, 255, .8), transparent 60%),
    radial-gradient(1.5px 1.5px at 90px 190px, #fff, transparent 60%),
    radial-gradient(1px 1px at 210px 140px, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 260px 240px, #fff, transparent 60%);
  background-size: 300px 300px; opacity: .35;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.aurora .stars + .stars { background-size: 470px 470px; background-position: 120px 60px; opacity: .25; animation-duration: 11s; animation-delay: -4s; }
@keyframes twinkle { 50% { opacity: .1; } }

/* Polarlicht-Vorhänge: senkrechte Lichtschleier, die sich wiegen */
.aurora b {
  position: absolute; top: -10vh; height: 75vh; width: 70vw; z-index: 1; display: block;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(94, 234, 212, .5) 16px 19px, transparent 22px 34px, rgba(125, 211, 252, .35) 36px 38px, transparent 40px 56px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 45%, transparent 100%);
  filter: blur(7px); mix-blend-mode: screen; opacity: .5; transform-origin: 50% 0;
  animation: sway 18s ease-in-out infinite alternate;
}
.aurora b:nth-of-type(1) { left: -8vw; transform: skewX(-18deg); }
.aurora b:nth-of-type(2) { right: -12vw; left: auto; top: -16vh; height: 68vh;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(167, 139, 250, .55) 20px 23px, transparent 26px 40px, rgba(240, 171, 252, .35) 42px 44px, transparent 46px 64px);
  animation-duration: 23s; animation-delay: -7s; transform: skewX(14deg); opacity: .42; }
@keyframes sway {
  0% { transform: skewX(-18deg) translateX(0) scaleY(1); opacity: .35; }
  50% { opacity: .6; }
  100% { transform: skewX(8deg) translateX(8vw) scaleY(1.12); opacity: .4; }
}
@media (prefers-reduced-motion: reduce) { .aurora b, .aurora .stars { animation: none; } }

/* Licht, das der Maus folgt (Fläche + Kante) */
.spot { position: relative; isolation: isolate; }
.spot::after, .spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; }
.spot::after { z-index: 1; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .075), transparent 50%); }
.spot::before {
  z-index: 2; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 243, 255, .95), rgba(167, 139, 250, .55) 35%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::after, .spot:hover::before { opacity: 1; }
.panel.spot, .settings.spot { position: relative; }

/* Umlaufender Aurora-Rand */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ring {
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(rgba(11, 13, 27, .78), rgba(11, 13, 27, .78)) padding-box,
    conic-gradient(from var(--ang), #5eead4, #7dd3fc, #a78bfa, #f0abfc, #fcd34d, #5eead4) border-box !important;
  animation: spin 6s linear infinite;
  box-shadow: 0 0 50px -12px rgba(167, 139, 250, .65), 0 0 90px -30px rgba(94, 234, 212, .6) !important;
}
@keyframes spin { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }

/* Zahlen-Kopf in der Übersicht */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 8px; }
.stat { border-radius: var(--radius); padding: 18px 20px 16px; overflow: hidden; }
.stat strong { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(125, 211, 252, .35)); }
.stat span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat small { font-size: 12px; }
.stats .stat { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px -30px rgba(0, 0, 0, .7); }

/* Siegertreppchen */
.podium-row { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 14px; align-items: end; margin: 6px 0 26px; }
.pod { position: relative; text-align: center; border-radius: 26px; padding: 26px 16px 22px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px -30px rgba(0, 0, 0, .8); }
.pod-1 { order: 2; padding-top: 38px; padding-bottom: 30px; }
.pod-2 { order: 1; } .pod-3 { order: 3; }
.pod .ava { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: block; object-fit: cover;
  background: linear-gradient(135deg, rgba(94, 234, 212, .25), rgba(167, 139, 250, .3)); }
.pod-1 .ava { width: 104px; height: 104px; box-shadow: 0 0 0 3px rgba(252, 211, 77, .9), 0 0 50px rgba(252, 211, 77, .45); }
.pod-2 .ava { box-shadow: 0 0 0 3px rgba(226, 232, 240, .8), 0 0 30px rgba(226, 232, 240, .25); }
.pod-3 .ava { box-shadow: 0 0 0 3px rgba(251, 146, 60, .85), 0 0 30px rgba(251, 146, 60, .3); }
.pod .medal { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #12131c; font-size: 15px; }
.pod-1 .medal { width: 40px; height: 40px; top: -20px; font-size: 17px; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 0 26px rgba(252, 211, 77, .8); }
.pod-2 .medal { background: linear-gradient(135deg, #f8fafc, #94a3b8); box-shadow: 0 0 18px rgba(226, 232, 240, .5); }
.pod-3 .medal { background: linear-gradient(135deg, #fdba74, #c2410c); box-shadow: 0 0 18px rgba(251, 146, 60, .5); }
.pod .pname { display: block; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-1 .pname { font-size: 19px; }
.pod .plvl { display: block; font-size: 40px; font-weight: 850; line-height: 1.1; margin-top: 8px; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pod-1 .plvl { font-size: 54px; }
.pod .plab { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pod .pxp { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.lb-rest-title { margin-top: 8px; }

/* ============================================================
   Ausbau 2: Gruppen, Listen, Timer, Baukasten
   ============================================================ */
.group-title { margin: 30px 0 -12px; }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 14px; }
form.inline-btn { display: inline; margin: 0 0 0 12px; }
form.inline-btn:first-child { margin-left: 0; }
form.inline select { max-width: 320px; }
code { font: 12.5px ui-monospace, "Cascadia Code", Consolas, monospace; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08);
  padding: 2px 6px; border-radius: 6px; color: #e2e8ff; }
.fine code { font-size: 12px; }
.panel .fine { margin: 14px 0 0; }

/* Segment-Schalter (Timer: Wochentage / Intervall) */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--input); border: 1px solid var(--edge); margin: 8px 0 12px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 9px; font-size: 13px; color: var(--soft); transition: all .2s; }
.seg input:checked + span { background: linear-gradient(115deg, rgba(94, 234, 212, .25), rgba(167, 139, 250, .32)); color: #fff; }
.when { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.when-interval { display: none; }
.row:has(input[value="interval"]:checked) .when-weekly { display: none; }
.row:has(input[value="interval"]:checked) .when-interval { display: flex; }
.days { max-height: none; }
input.time, input[type=time] { width: auto; min-width: 120px; color-scheme: dark; }

/* Baukasten */
.builder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.builder-form { margin: 0; }
.color-row { display: flex; align-items: center; gap: 12px; }
input[type=color] { width: 54px; height: 42px; padding: 4px; border-radius: 12px; border: 1px solid var(--edge); background: var(--input); cursor: pointer; }
.preview-wrap { position: sticky; top: 92px; }
.preview-wrap .eyebrow { margin-bottom: 10px; }
.dc-msg { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: #313338; border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); font-family: "gg sans", "Segoe UI", system-ui, sans-serif; }
.dc-ava { width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--grad); display: block; }
.dc-body { min-width: 0; flex: 1; }
.dc-name { font-weight: 600; color: #f2f3f5; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.dc-tag { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; }
.dc-time { font-size: 12px; color: #949ba4; font-weight: 400; }
.dc-content { color: #dbdee1; font-size: 15px; margin: 2px 0 4px; word-wrap: break-word; }
.dc-embed { display: flex; gap: 14px; max-width: 520px; margin-top: 4px; padding: 12px 16px 14px 14px; border-radius: 6px;
  background: #2b2d31; border-left: 4px solid #8b7bff; }
.dc-embed[hidden] { display: none; }
.dc-embed-main { min-width: 0; flex: 1; }
.dc-title { font-weight: 700; color: #f2f3f5; font-size: 15.5px; margin-bottom: 6px; word-wrap: break-word; }
.dc-title:empty { display: none; }
.dc-desc { color: #dbdee1; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.dc-desc a, .dc-content a { color: #00a8fc; }
.dc-desc code { font-size: 12.5px; background: #1e1f22; border: 0; }
.dc-quote { display: block; border-left: 4px solid #4e5058; padding-left: 10px; }
.dc-image { display: block; max-width: 100%; border-radius: 6px; margin-top: 12px; }
.dc-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; flex: none; }
.dc-image[hidden], .dc-thumb[hidden] { display: none; }
.dc-footer { color: #b5bac1; font-size: 12px; margin-top: 8px; }
.dc-footer:empty { display: none; }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 16px 60px; gap: 36px; }
  .hero h1 { font-size: 46px; }
  .topbar { margin: 10px 10px 0; top: 10px; padding: 8px 10px 8px 14px; }
  .shell { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; }
  .side { position: static; padding: 12px 8px; }
  .side-guild { padding: 0 6px 12px; }
  .side nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { white-space: nowrap; }
  .side-label, .side nav .dot { display: none; }
  .content { padding: 16px 6px 60px; }
  .two-col, .grid2 { grid-template-columns: 1fr; }
  .rm-row { grid-template-columns: 1fr 1fr; }
  .rm-row .emoji { grid-column: span 2; }
  .page { padding: 32px 16px 60px; }
  .page-head { gap: 14px; align-items: flex-start; }
  .page-head h1 { font-size: 26px; }
  .module-ico.big { width: 48px; height: 48px; }
  .settings { padding: 4px 16px 20px; }
  .reward-row { grid-template-columns: 44px 80px minmax(0, 1fr); }
  .me, .topnav .me { display: none; }
  .lb-head h1 { font-size: 30px; }
  .lb li { grid-template-columns: 28px 40px 1fr auto; padding: 12px 14px; gap: 11px; }
  .lb li img, .ava-ph { width: 40px; height: 40px; }
  .lb .lvl strong { font-size: 22px; }
  .toast { right: 12px; left: 12px; top: 74px; }
  .builder, .grid3 { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
  form.inline { flex-wrap: wrap; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat strong { font-size: 28px; }
  .podium-row { gap: 8px; }
  .pod { padding: 22px 8px 16px; border-radius: 20px; }
  .pod-1 { padding-top: 28px; }
  .pod .ava { width: 52px; height: 52px; }
  .pod-1 .ava { width: 68px; height: 68px; }
  .pod .pname { font-size: 13px; } .pod-1 .pname { font-size: 15px; }
  .pod .plvl { font-size: 28px; } .pod-1 .plvl { font-size: 36px; }
  .pod .pxp { display: none; }
  .aurora b { width: 120vw; }
}
