/* HyperVoteMC – Design passend zu Hyperknox Reborn (dunkles Neon) */
:root {
  --bg: #070b1a;
  --bg-alt: #0b1228;
  --card: #0f1934;
  --card-2: #13204a;
  --line: rgba(80, 190, 255, .22);
  --text: #e8f1ff;
  --muted: #a9b8d6;
  --accent: #35c8ff;
  --accent-2: #8b5cff;
  --gold: #ffd23f;
  --silver: #cfd8e6;
  --bronze: #e39b5a;
  --ok: #3ee08f;
  --err: #ff6b7d;
  --warn: #ffb547;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #7fdcff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.15; margin: 8px 0 12px; }
h2 { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.25; margin: 34px 0 12px; }
h3, .h3 { font-size: 19px; margin: 0 0 10px; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; }
pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.block { padding: 32px 0 56px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #001; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 26, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding: 8px 0; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a, .linkbtn { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .linkbtn:hover { color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.inline { display: inline; margin: 0; }
.langs { display: flex; gap: 4px; }
.lang { font-size: 13px; font-weight: 700; padding: 4px 8px; border-radius: 9px; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.lang:hover { color: var(--text); border-color: var(--line); }
.lang.is-active { color: var(--accent); border-color: var(--accent); background: rgba(53, 200, 255, .08); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 12px;
  font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: var(--card-2); color: var(--text);
  transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--text); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #2f8cff); color: #031226; border-color: transparent; }
.btn-primary:hover { color: #031226; box-shadow: 0 0 24px rgba(53, 200, 255, .45); }
.btn-danger { background: rgba(255, 107, 125, .12); border-color: rgba(255, 107, 125, .5); color: #ffd0d6; }
.btn-danger:hover { border-color: var(--err); color: #fff; }
.btn-small { min-height: 34px; padding: 5px 12px; font-size: 14px; border-radius: 10px; }
.btn-big { min-height: 54px; font-size: 18px; padding: 12px 26px; width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Hero */
.hero { position: relative; padding: 48px 0 30px; text-align: center; isolation: isolate; overflow: hidden;
  background: radial-gradient(900px 380px at 50% -40px, rgba(139, 92, 255, .35), transparent 70%), radial-gradient(700px 300px at 85% 20%, rgba(53, 200, 255, .18), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("hero.webp") center / cover no-repeat; opacity: .28; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, var(--bg)); }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.lead { max-width: 720px; color: #d6e3fb; font-size: clamp(16px, 2vw, 19px); margin: 0 0 22px; }
.lead-sm { color: #d6e3fb; margin: 0 0 8px; }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: min(760px, 100%); }
.filters input, .filters select { flex: 1 1 220px; }

/* Formularelemente */
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(53, 200, 255, .25); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--accent); }
textarea { resize: vertical; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin: 16px 0; }
legend { font-weight: 700; padding: 0 6px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.field-err { color: var(--err); font-size: 14px; margin: 6px 0 0; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; margin: 8px 0; }
.check input { margin-top: 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; }
.row { display: grid; grid-template-columns: 1fr 140px; gap: 12px; }
.form .btn, .form button { margin-top: 16px; }
.form .check + .btn { margin-top: 10px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.inline-form label { width: 100%; margin-bottom: 0; }
.inline-form input { flex: 1 1 200px; width: auto; }

/* Karten & Meldungen */
.card { background: linear-gradient(180deg, var(--card), #0c1530); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; }
.flash { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid; }
.flash.ok { background: rgba(62, 224, 143, .1); border-color: rgba(62, 224, 143, .45); }
.flash.err { background: rgba(255, 107, 125, .1); border-color: rgba(255, 107, 125, .5); }
.flash.warn { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .5); }
.flash.info { background: rgba(53, 200, 255, .08); border-color: var(--line); }
.danger-zone { border-color: rgba(255, 107, 125, .4); }
.crumbs { margin: 0 0 6px; font-size: 15px; }
.crumbs a { text-decoration: none; }

/* Serverliste */
.list { padding: 10px 0 40px; }
.srv { display: grid; grid-template-columns: 64px 1fr 230px; gap: 18px; align-items: center; background: linear-gradient(180deg, var(--card), #0c1530);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; transition: border-color .15s, box-shadow .15s; }
.srv:hover { border-color: rgba(53, 200, 255, .5); box-shadow: 0 0 30px rgba(53, 200, 255, .08); }
.srv-rank { font-size: 28px; font-weight: 800; color: var(--muted); text-align: center; }
.srv.top1 { border-color: rgba(255, 210, 63, .55); } .srv.top1 .srv-rank { color: var(--gold); }
.srv.top2 .srv-rank { color: var(--silver); } .srv.top3 .srv-rank { color: var(--bronze); }
.srv-banner { display: block; max-width: 468px; border-radius: 8px; overflow: hidden; color: var(--text); text-decoration: none; }
.srv-name { font-size: 21px; margin: 10px 0 2px; }
.srv-name a { color: var(--text); text-decoration: none; }
.srv-name a:hover { color: var(--accent); }
.srv-desc { margin: 0 0 8px; color: #cfdcf5; }
.srv-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.srv-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.srv-votes { margin: 0; color: var(--muted); font-size: 14px; }
.srv-votes strong { display: block; font-size: 26px; color: var(--text); line-height: 1.1; }
.srv-rating { margin: 0; font-size: 14px; }
.banner-ph { aspect-ratio: 468 / 60; width: 100%; max-width: 468px; display: grid; place-items: center; border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 255, .35), rgba(53, 200, 255, .25)); border: 1px solid var(--line); font-weight: 800; letter-spacing: .04em; }
.banner-ph span { padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: rgba(53, 200, 255, .1); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.ver { background: rgba(255, 210, 63, .1); border-color: rgba(255, 210, 63, .35); }
.status { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.on::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status.off::before { background: var(--err); }
.ipcopy { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  background: var(--bg-alt); border: 1px dashed var(--line); color: var(--text); font: inherit; }
.ipcopy code { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ipcopy span { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.ipcopy:hover, .ipcopy.is-copied { border-color: var(--accent); }
.ipcopy.small { width: auto; display: inline-flex; padding: 4px 8px; }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: rgba(255, 255, 255, .2); }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 24px 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.cta-owner { text-align: center; color: var(--muted); margin-top: 26px; }
.seo { padding-bottom: 60px; color: #cfdcf5; }

/* Serverseite */
.server-head { display: flex; gap: 16px; align-items: center; }
.favicon { width: 64px; height: 64px; border-radius: 10px; image-rendering: pixelated; flex: none; }
.server-banner { margin: 16px 0; max-width: 468px; }
.server-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.server-side { position: sticky; top: 84px; }
.vote-box { text-align: center; }
.big-num { font-size: 40px; font-weight: 800; line-height: 1; margin: 4px 0; display: block; }
.facts { margin: 0 0 16px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(80, 190, 255, .1); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; text-align: right; word-break: break-word; min-width: 0; }
.facts .ipcopy.small { max-width: 100%; }
.voters { margin: 0; padding-left: 22px; }
.voters li { display: list-item; }
.voters li span { display: inline-block; min-width: 70%; }
.motd { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-right: 6px; }
.prose p { margin: 0 0 14px; }
.review { border-bottom: 1px solid rgba(80, 190, 255, .12); padding: 14px 0; }
.card.review { padding: 14px 18px; }
.review header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.review p { margin: 0 0 8px; }
.reply { margin: 8px 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--accent-2); background: rgba(139, 92, 255, .08); border-radius: 0 10px 10px 0; }
.reply p { margin: 4px 0 0; }
.report { display: block; margin-top: 4px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 4px 0 4px; }
.rating-input legend { width: 100%; margin-bottom: 4px; padding: 0; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 32px; line-height: 1; margin: 0; cursor: pointer; color: rgba(255, 255, 255, .25); font-weight: 400; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.rating-input input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 6px; }

/* Vote */
.vote-form .btn-big { margin-top: 18px; }
.success-icon { width: 84px; height: 84px; margin: 10px auto; border-radius: 50%; display: grid; place-items: center; font-size: 42px; color: #031226;
  background: linear-gradient(135deg, var(--ok), var(--accent)); box-shadow: 0 0 40px rgba(62, 224, 143, .4); }
.center .btnrow { justify-content: center; }

/* Dashboard */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(80, 190, 255, .1); vertical-align: middle; }
.table th { color: var(--muted); font-size: 14px; background: var(--bg-alt); }
.table tr:last-child td { border-bottom: 0; }
.table select { width: auto; min-height: 34px; padding: 4px 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); vertical-align: middle; }
.badge.approved { color: var(--ok); border-color: rgba(62, 224, 143, .5); }
.badge.pending { color: var(--warn); border-color: rgba(255, 181, 71, .5); }
.badge.rejected { color: var(--err); border-color: rgba(255, 107, 125, .5); }
.badge.hidden { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat { text-align: center; margin: 0; }
.stat .big-num { font-size: 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart { margin: 0 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.chart svg { width: 100%; height: 140px; display: block; }
.chart rect { fill: var(--accent); }
.chart rect:hover { fill: var(--gold); }
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 220px; margin: 10px 0; }
.qr svg { width: 100%; height: auto; display: block; }
.secret { font-size: 18px; letter-spacing: .08em; word-break: break-all; }
.steps li { margin-bottom: 18px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; }
.codes code { display: block; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 18px; text-align: center; }

/* Sichtbarkeit / Checkliste */
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.checklist li span[aria-hidden] { display: inline-block; width: 1.4em; font-weight: 800; }
.checklist li.done span[aria-hidden] { color: var(--ok); }
.checklist li.todo span[aria-hidden] { color: var(--err); }
.checklist li.todo { color: var(--text); }
.checklist li.done { color: var(--muted); }
.visibility.is-complete { border-color: rgba(62, 224, 143, .45); }
.visibility.is-incomplete { border-color: rgba(255, 181, 71, .5); }
.motd-row { margin: 8px 0 0; }
.form .motd-row .btn { margin-top: 0; }

/* Fußzeile */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 22px 0; font-size: 15px; }
.footer p { margin: 4px 0; }

@media (max-width: 900px) {
  .server-grid { grid-template-columns: 1fr; }
  .server-side { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .srv { grid-template-columns: 44px 1fr; }
  .srv-rank { font-size: 22px; }
  .srv-side { grid-column: 1 / -1; }
  .nav { gap: 12px; width: 100%; margin-left: 0; order: 3; }
  .brand img { width: 160px; }
  .langs { margin-left: auto; }
  .row { grid-template-columns: 1fr; }
  .codes { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
