:root {
  --bg: #0a0c11; --panel: #141821; --panel2: #1b2130; --line: #2a3246;
  --text: #e7e2d4; --muted: #8f97a8; --gold: #e8b84a; --gold2: #b98a22;
  --ok: #3ecf6e; --bad: #e5534b; --unk: #7b8394;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 50% -200px, #1d2a44 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text); font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  padding: 14px 24px; background: rgba(10, 12, 17, .85); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 44px; width: auto; }
.sr { position: absolute; left: -9999px; }
.brand:hover { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1; }
nav a { color: var(--text); padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a.act { border-bottom-color: var(--gold); text-decoration: none; }
.user { font-size: 14px; color: var(--muted); }
.who { margin-right: 10px; }
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 20px 40px; }
footer { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
h1 { font: 700 30px Georgia, "Palatino Linotype", serif; margin: 0 0 14px; color: var(--gold); }
h2 { font-size: 19px; margin: 22px 0 10px; }
.hero { text-align: center; padding: 6px 0 30px; }
.hero .banner {
  display: block; width: 100%; max-width: 760px; height: auto; aspect-ratio: 16 / 9; margin: 0 auto 14px;
  border-radius: 14px; border: 1px solid var(--gold2); box-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}
.hero p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tile {
  display: block; padding: 20px; color: var(--text); background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 12px; transition: transform .12s, border-color .12s, box-shadow .12s;
}
.tile:hover { transform: translateY(-3px); border-color: var(--gold2); box-shadow: 0 8px 24px rgba(232, 184, 74, .12); text-decoration: none; }
.tile h2 { margin: 0 0 6px; color: var(--gold); font-family: Georgia, serif; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }
.tile.server { grid-column: span 2; border-color: var(--gold2); }
.tile .tag { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.tile .state { color: var(--text); font-size: 16px; margin: 4px 0 10px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini li { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.mini b { font-size: 20px; color: var(--text); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; background: var(--unk); }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.off { background: var(--bad); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0; max-width: 520px; }
section.card { max-width: none; }
label { display: block; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
input, select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; color: var(--text);
  background: #0d1119; border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--gold2); border-color: transparent; }
.inl { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.inl input, .inl select { width: auto; margin: 0; }
.btn {
  display: inline-block; padding: 10px 20px; border: 0; border-radius: 8px; cursor: pointer; font: 600 15px inherit;
  color: #1a1304; background: linear-gradient(#f3cc6b, var(--gold2));
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.danger { color: #fff; background: linear-gradient(#e5534b, #a1302a); }
.lnk { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; padding: 0; }
.lnk:hover { text-decoration: underline; }
table { border-collapse: collapse; width: 100%; }
.kv td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.kv td:first-child { color: var(--muted); width: 38%; }
.list th, .list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.list th { color: var(--muted); font-weight: 600; font-size: 13px; }
code { background: #0d1119; padding: 2px 6px; border-radius: 4px; color: var(--gold); }
.muted { color: var(--muted); font-size: 14px; }
.bad { color: var(--bad); }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; border: 1px solid; }
.flash.ok { background: rgba(62, 207, 110, .1); border-color: var(--ok); }
.flash.err { background: rgba(229, 83, 75, .1); border-color: var(--bad); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.pager { display: flex; gap: 18px; }
.creds code { font-size: 15px; }
@media (max-width: 640px) {
  .tile.server { grid-column: span 1; }
  header { padding: 12px 16px; }
  nav { order: 3; flex-basis: 100%; }
  .user { margin-left: auto; }
}

.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--gold2); color: #1a1304; vertical-align: middle; }
.mini2 { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.mini2 input { width: 80px; }
.lnk.bad { color: var(--bad); }

/* Item-Shop */
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin: 14px 0; }
.icard { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ihead { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ihead > div { min-width: 0; }
.iname { font-weight: 600; overflow-wrap: anywhere; }
.imeta { font-size: 12px; color: var(--muted); }
.ico { width: 56px; height: 56px; border-radius: 6px; border: 2px solid #555; background: #222836; flex: none; }
.ico.sm { width: 36px; height: 36px; border-width: 1px; }
.ico.q0 { border-color: #9d9d9d; } .ico.q1 { border-color: #ddd; } .ico.q2 { border-color: #1eff00; } .ico.q3 { border-color: #0070dd; }
.ico.q4 { border-color: #a335ee; } .ico.q5 { border-color: #ff8000; } .ico.q6 { border-color: #e6cc80; } .ico.q7 { border-color: #00ccff; }
.q0 { color: #9d9d9d; } .q1 { color: #f1f1f1; } .q2 { color: #1eff00; } .q3 { color: #4aa3ff; }
.q4 { color: #c07af2; } .q5 { color: #ff8000; } .q6 { color: #e6cc80; } .q7 { color: #00ccff; }
.cart { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.cart li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cnt { width: 64px; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.shopform { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: end; margin: 10px 0; }
.shopform label { margin: 0; }
input.cnt { width: 64px; flex: none; }
.icard form { display: flex; gap: 8px; align-items: center; }
.icard { position: relative; }
.tip { display: none; position: absolute; left: 14px; top: 78px; z-index: 30; width: 300px; max-width: 90vw; padding: 10px 12px; background: #0b0e15; border: 1px solid var(--gold2);
  border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .7); font-size: 13px; line-height: 1.45; pointer-events: none; }
.icard:hover .tip, .icard:focus-within .tip { display: block; }
.tip b { font-size: 15px; } .tip .tg { color: #1eff00; } .tip .ty { color: #ffd100; } .tip .mu { color: var(--muted); font-size: 12px; } .tip i { color: #ffd100; }

/* Startseite: Server-Kachel über die ganze Breite, darunter vier Optionen */
.grid.home { grid-template-columns: repeat(4, 1fr); }
.grid.home .tile.server { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 6px 28px; align-items: center; }
.grid.home .tile.server .tag, .grid.home .tile.server h2, .grid.home .tile.server .state { grid-column: 1; margin-top: 0; }
.grid.home .tile.server .mini { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 900px) { .grid.home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid.home { grid-template-columns: 1fr; }
  .grid.home .tile.server { display: block; }
  .grid.home .tile.server .mini { margin-top: 8px; }
}

/* Support-Tickets */
textarea {
  width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px; background: var(--panel2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical;
}
textarea:focus { outline: 2px solid var(--gold2); border-color: transparent; }
.support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; padding: 18px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.support h2 { margin: 0 0 4px; color: var(--gold); font-family: Georgia, serif; }
.support p { margin: 0; color: var(--muted); font-size: 14px; max-width: 560px; }
.support .okmsg { color: var(--ok); margin-top: 6px; }
.btn.sec { background: transparent; color: var(--gold); border: 1px solid var(--gold2); }
.thread { margin: 16px 0; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.msg { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.msg.staff { border-color: var(--gold2); background: var(--panel2); }
.msg .mh { font-size: 13px; margin-bottom: 4px; }
.msg .mb { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Server-Kachel auf der Startseite ist nur eine Anzeige, kein Link */
div.tile.server { cursor: default; }
div.tile.server:hover { transform: none; box-shadow: none; border-color: var(--gold2); }
