/* XCore – gemeinsamer Stil für alle Seiten */
:root {
  --bg: #0b0d12;
  --panel: #12151d;
  --panel-2: #161a24;
  --line: #222838;
  --line-2: #343c55;
  --text: #e8eaf2;
  --muted: #8b92a8;
  --dim: #5d6378;
  --accent: #7c8cff;
  --accent-2: #36d6c3;
  --ok: #3ddc84;
  --warn: #ffb547;
  --off: #ff6b6b;
  --radius: 16px;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 15px; }
body.center { align-items: center; justify-content: center; padding: 24px; }
a { color: inherit; }
[hidden] { display: none !important; }

.glow { position: fixed; inset: -30vh -20vw auto -20vw; height: 70vh; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 40% 60% at 30% 40%, rgba(124,140,255,.18), transparent 70%), radial-gradient(ellipse 35% 50% at 70% 30%, rgba(54,214,195,.12), transparent 70%); }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1080px; margin: 0 auto; padding: 22px clamp(18px, 5vw, 56px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 700; letter-spacing: .22em; font-size: 15px; }
.brand-sub { color: var(--muted); font-weight: 500; letter-spacing: .02em; font-size: 15px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.brand-big { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 26px; font-weight: 700; letter-spacing: .22em; }
.brand-big .brand-mark { width: 42px; height: 42px; }

.user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 5px 6px 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18,21,29,.6); backdrop-filter: blur(8px); }
.user img, .user .ava { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--line-2); display: grid; place-items: center; font-size: 12px; color: var(--text); }
.user .name { color: var(--text); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user a { color: var(--muted); text-decoration: none; font-size: 12px; padding: 4px 8px; border-radius: 999px; }
.user a:hover { color: var(--text); background: var(--panel-2); }
.tag { font-size: 11px; color: var(--accent); border: 1px solid rgba(124,140,255,.35); border-radius: 999px; padding: 1px 7px; }

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 56px) 40px; }
.foot { display: flex; justify-content: center; gap: 10px; padding: 40px 20px 28px; font-size: 13px; color: var(--dim); }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--muted); }

h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.grad { background: linear-gradient(120deg, #fff 30%, #b9c1ff 70%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); line-height: 1.55; }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.hero { padding: clamp(28px, 6vh, 64px) 0 clamp(22px, 4vh, 40px); }
.hero p { margin-top: 12px; color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); max-width: 600px; line-height: 1.55; }

/* Flächen */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel.narrow { max-width: 420px; width: 100%; text-align: center; }
.panel.narrow h1 { font-size: 26px; margin-bottom: 10px; }
.panel.narrow .btn { margin-top: 22px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.stack .btn { margin-top: 0; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn:hover { border-color: #46507a; background: #1b2030; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: linear-gradient(135deg, #6f7ff5, #5566e8); border-color: transparent; color: #fff; }
.btn.primary:hover { background: linear-gradient(135deg, #7d8cff, #6273f0); }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn.danger { color: #ffb3b3; }
.btn.danger:hover { border-color: rgba(255,107,107,.5); background: rgba(255,107,107,.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Eingaben */
input[type=text], input[type=url], input[type=search], select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--dim); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
label { font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }

/* Abzeichen, Statuspunkte */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.badge svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; display: inline-block; }
.dot.online { background: var(--ok); box-shadow: 0 0 0 3px rgba(61,220,132,.15); }
.dot.offline { background: var(--off); box-shadow: 0 0 0 3px rgba(255,107,107,.15); }

/* Fortschritt */
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .4s; }

/* Hinweisboxen */
.note { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); font-size: 14px; color: var(--muted); line-height: 1.5; }
.note.err { border-color: rgba(255,107,107,.4); color: #ffb3b3; background: rgba(255,107,107,.06); }
.note.warn { border-color: rgba(255,181,71,.35); color: #ffd699; background: rgba(255,181,71,.05); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1c2130; border: 1px solid var(--line-2); color: var(--text); padding: 11px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(255,107,107,.5); }

/* Dialog */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; max-width: min(520px, calc(100vw - 32px)); width: 100%; }
dialog::backdrop { background: rgba(5,6,10,.7); backdrop-filter: blur(3px); }
dialog h2 { margin-bottom: 12px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .user .name { max-width: 90px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.mt6 { margin-top: 6px; }
@media (max-width: 440px) {
  .top { padding-left: 16px; padding-right: 16px; }
  .brand-name { display: none; }
  .user { gap: 8px; }
}
