:root {
  --bg: #06101d;
  --bg-soft: rgba(10, 18, 32, 0.78);
  --card: rgba(12, 22, 39, 0.86);
  --card-2: rgba(16, 28, 48, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(77, 163, 255, 0.28);
  --text: #eef4ff;
  --muted: #9eb0cf;
  --primary: #4da3ff;
  --primary-2: #7583ff;
  --success: #30d48b;
  --warning: #ffbf5e;
  --danger: #ff6d85;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 163, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(117, 131, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #040b14 0%, #091523 48%, #050b13 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  filter: blur(110px);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.26;
  pointer-events: none;
}
.orb-a { top: -120px; left: -80px; background: #257dff; }
.orb-b { right: -140px; bottom: -90px; background: #7b61ff; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 0 12px;
}

.brand-block { display: flex; flex-direction: column; gap: 6px; }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary);
}
.brand-block h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}
.brand-block p {
  margin: 0;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.18s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 22px 0 12px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  gap: 22px;
}
.hero-copy,
.hero-side,
.section-card {
  padding: 30px;
}
.hero-copy p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.hero-copy h2,
.page-header h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  margin-bottom: 12px;
}

.status-badge,
.mini-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  background: rgba(77, 163, 255, 0.12);
  color: #dcebff;
  border: 1px solid rgba(77, 163, 255, 0.24);
}
.pill.success { background: rgba(48, 212, 139, 0.13); color: #a7f0cb; border-color: rgba(48, 212, 139, 0.25); }
.pill.warning { background: rgba(255, 191, 94, 0.13); color: #ffdba0; border-color: rgba(255, 191, 94, 0.25); }

.hero-actions,
.form-actions,
.title-row,
.card-head,
.panel-head,
.inline-actions,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 13px 18px;
  border: none;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.btn-secondary { color: var(--text); background: rgba(255,255,255,0.07); border: 1px solid var(--line); }
.btn-danger { color: white; background: linear-gradient(135deg, #ff6d85, #ff8f5e); }

.stats-grid,
.team-grid,
.link-grid,
.feature-grid,
.info-grid,
.action-grid,
.dashboard-grid,
.form-layout,
.list-grid {
  display: grid;
  gap: 16px;
}
.stats-grid,
.info-grid,
.link-grid,
.feature-grid,
.action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: 0.92fr 1.08fr; }
.form-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat-card,
.team-card,
.link-card,
.feature-card,
.info-card,
.action-card,
.list-card,
.fraktion-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  margin: 8px 0 4px;
}
.stat-card small,
.stat-card span,
.team-card p,
.link-card p,
.feature-card p,
.info-card p,
.action-card p,
.fraktion-item p,
.list-card p { color: var(--muted); }

.section {
  padding: 18px 0 22px;
}

.section-card + .section-card { margin-top: 20px; }

.server-note,
.notice-box {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.team-card .role,
.fraktion-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}
.team-card .role { background: rgba(48,212,139,0.12); color: #9af3c2; margin-top: 10px; }
.fraktion-tag { background: rgba(77,163,255,0.14); color: #cae2ff; }

.fraktion-list { display: grid; gap: 14px; }
.fraktion-item h4 { margin-bottom: 10px; font-size: 1.04rem; }
.fraktion-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.field,
.request-form,
.stack-form { display: grid; gap: 8px; }
.stack-form,
.request-form { gap: 14px; }
label { font-weight: 700; color: #d7e4fb; }
input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 14px 15px;
  border-radius: 14px;
  font: inherit;
  outline: none;
}
input::placeholder,
textarea::placeholder { color: #92a7ca; }
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(77, 163, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.12);
}
textarea { resize: vertical; min-height: 120px; }
.field-wide { grid-column: 1 / -1; }

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.table th { color: #d7e4fb; font-size: 0.92rem; }
.table td { color: var(--muted); }
.table td strong { color: var(--text); }

.empty-state {
  padding: 20px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 16, 0.74);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}
.modal.is-open { display: flex; }
.modal-card {
  width: min(100%, 640px);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-close,
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
}
.modal-close { position: absolute; right: 14px; top: 14px; }

.footer {
  padding: 24px 0 34px;
  color: var(--muted);
}
.footer-card {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 23, 41, 0.96);
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(48,212,139,0.35); }
.toast.error { border-color: rgba(255,109,133,0.35); }

@media (max-width: 1100px) {
  .hero-grid,
  .dashboard-grid,
  .team-grid,
  .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid,
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar,
  .page-header,
  .hero-actions,
  .title-row,
  .card-head,
  .panel-head,
  .footer-card { flex-direction: column; align-items: stretch; }

  .stats-grid,
  .info-grid,
  .link-grid,
  .feature-grid,
  .action-grid,
  .team-grid,
  .form-layout,
  .list-grid { grid-template-columns: 1fr; }

  .nav { width: 100%; justify-content: flex-start; }
  .hero-copy,
  .hero-side,
  .section-card,
  .modal-card { padding: 22px; }
}

/* ===== SERVER STATUS (NEU) ===== */

.status {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 16px;
}

.status p {
  margin: 6px 0;
  font-size: 16px;
}

.online {
  color: #22c55e;
  font-weight: bold;
}

.offline {
  color: #ef4444;
  font-weight: bold;
}

.small {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

code {
  display: block;
  margin-top: 8px;
  background: #020617;
  padding: 8px;
  border-radius: 6px;
  color: #93c5fd;
  word-break: break-all;
}