:root {
  --bg: #070810;
  --bg-soft: #0c0e18;
  --side: #080a12;
  --card: #10121e;
  --card-hover: #15192a;
  --line: #23263a;
  --line-soft: #191c2b;
  --text: #f0f2fb;
  --muted: #8d92aa;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-soft: rgba(139, 92, 246, .16);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 72% -10%, rgba(124, 58, 237, .16), transparent 62%),
    linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1 { font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.8px; font-weight: 700; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .16em;
     color: var(--muted); margin: 0; font-weight: 650; }
h2.plain { text-transform: none; letter-spacing: -.2px; font-size: 20px;
           color: var(--text); font-weight: 650; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); }

/* ---------------------------------------------------------------- Rahmen */
.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 18px 16px; background: rgba(7, 9, 17, .96);
  border-right: 1px solid var(--line-soft); overflow-y: auto;
}
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: #252a40; border-radius: 999px; }
.server-switch { padding: 4px 4px 8px; border-radius: 12px; }
.server-switch summary { display: flex; align-items: center; gap: 10px; cursor: pointer;
  list-style: none; }
.server-switch summary::-webkit-details-marker { display: none; }
.server-switch[open] .chev { transform: rotate(180deg); }
.server-switch:not([open]) .server-menu { display: none; }
.server-menu { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 2px;
  padding: 6px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-soft); }
.server-option { display: flex; align-items: center; gap: 8px; padding: 6px 7px;
  border-radius: 8px; font-size: 13px; color: #b4b9cd; }
.server-option:hover { background: rgba(255,255,255,.05); color: #fff; }
.server-option.active { background: var(--accent-soft); color: #fff; }
.server-option .server-avatar { width: 24px; height: 24px; border-radius: 7px;
  font-size: 11px; }
.server-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-check { margin-left: auto; color: var(--ok); font-size: 12px; }
.server-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid;
  place-items: center; font-weight: 700; color: #d9d4ff;
  background: linear-gradient(135deg, #312e81, #6d28d9); border: 1px solid #4c1d95; }
.server-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.server-caption { font-size: 11px; color: var(--muted); }
.server-copy strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.chev { color: var(--muted); font-size: 15px; transition: transform .15s; }
.bot-status { display: flex; align-items: center; gap: 7px; padding: 2px 6px 8px;
  color: #b7f7df; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 10px rgba(52, 211, 153, .8); display: inline-block; }
.side-label { font-size: 10px; text-transform: uppercase; letter-spacing: .18em;
  color: #616784; padding: 12px 8px 4px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 10px; font-size: 14px; color: #b4b9cd; border: 1px solid transparent; }
.nav:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav.active { background: rgba(91, 76, 190, .24); border-color: rgba(139,92,246,.28);
  color: #fff; }
.nav-ic { width: 18px; text-align: center; color: #8f95b0; font-size: 15px; }
.nav.active .nav-ic { color: #c4b5fd; }
.nav-label { flex: 1; }
.crown { color: #67e8f9; font-size: 10px; }
.ki-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ki-card { min-height: 68px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; font-size: 11.5px; color: #e8e9f8; }
.ki-card:hover { filter: brightness(1.16); }
.ki-ic { font-size: 19px; }
.ki-create { background: linear-gradient(150deg, #0c4a6e, #164e63); }
.ki-change { background: linear-gradient(150deg, #064e3b, #0f766e); }
.ki-studio { background: linear-gradient(150deg, #3b0764, #6d28d9); }
.side-search { position: relative; margin-top: 10px; }
.search-ic { position: absolute; left: 11px; top: 8px; color: #737a96; font-size: 14px; }
.side-search input { width: 100%; padding: 9px 11px 9px 30px; border-radius: 9px;
  border: 1px solid var(--line); background: #0b0d17; color: var(--text);
  font: inherit; font-size: 13px; }
.side-search input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.side-filters { display: flex; gap: 5px; }
.side-filter { flex: 1; border: 1px solid var(--line); background: #0b0d17;
  color: var(--muted); border-radius: 7px; padding: 5px 4px; font: inherit;
  font-size: 11px; cursor: pointer; }
.side-filter.active { background: var(--accent-soft); color: #ddd6fe;
  border-color: rgba(139,92,246,.5); }
.group-nav { display: flex; flex-direction: column; gap: 1px; }
.group-link { display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  border-radius: 8px; font-size: 13px; color: #a9aec4; }
.group-link:hover { background: rgba(255,255,255,.04); color: #fff; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #4b5268; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.8); }
.gcount { margin-left: auto; font-size: 10.5px; color: #666d88; }
.small-nav .nav { padding: 6px 10px; font-size: 13px; }
.side-foot { margin-top: auto; padding: 16px 8px 2px; font-size: 11.5px;
  color: #565d79; border-top: 1px solid var(--line-soft); }
.main { padding: 30px 38px 60px; max-width: 1560px; width: 100%; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; margin-bottom: 26px; }
.topbar-text .sub { color: var(--muted); margin-top: 6px; font-size: 14px; max-width: 760px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.crumbs a:hover { color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.user-orb { width: 38px; height: 38px; border-radius: 50%; display: grid;
  place-items: center; color: #d8b4fe; font-size: 17px;
  background: radial-gradient(circle at 30% 25%, #3b1d6e, #12091f);
  border: 1px solid rgba(139,92,246,.5); box-shadow: 0 0 18px rgba(139,92,246,.25); }
.badge { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ok); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: #4e5570; }

/* ------------------------------------------------------------ Startseite */
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin-bottom: 34px; }
.home-action { position: relative; min-height: 236px; border-radius: 15px;
  padding: 20px 18px; display: flex; flex-direction: column; align-items: flex-start;
  gap: 9px; border: 1px solid rgba(255,255,255,.12); overflow: hidden;
  transition: transform .15s, filter .15s; }
.home-action:hover { transform: translateY(-3px); filter: brightness(1.08); }
.home-action::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 160px at 15% 0%, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none; }
.home-action strong { font-size: 19px; line-height: 1.2; letter-spacing: -.4px;
  max-width: 92%; }
.home-action p { color: rgba(255,255,255,.72); font-size: 13px; margin-top: auto;
  max-width: 95%; }
.ha-icon { width: 44px; height: 44px; border-radius: 12px; display: grid;
  place-items: center; font-size: 22px; color: #fff; margin-bottom: 6px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  border-radius: 999px; padding: 2px 8px; color: #ddd6fe;
  background: rgba(139,92,246,.3); border: 1px solid rgba(196,181,253,.28); }
.pill.ok { color: #baf7dd; background: rgba(16,185,129,.22);
  border-color: rgba(52,211,153,.35); }
.pill.warn { color: #fde68a; background: rgba(245,158,11,.2);
  border-color: rgba(251,191,36,.35); }
.action-create { background: linear-gradient(150deg, #0e7490 0%, #083344 55%, #07131d 100%);
  border-color: rgba(34,211,238,.45); }
.action-change { background: linear-gradient(150deg, #047857 0%, #064e3b 55%, #071310 100%);
  border-color: rgba(52,211,153,.42); }
.module-toolbar { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.toolbar-title { text-transform: uppercase; letter-spacing: .16em; font-size: 13px;
  color: #d8dbea; }
.module-toolbar .muted { font-size: 12px; }
.filter-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 0 0;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.filter-tab { border: 0; background: transparent; color: var(--muted); font: inherit;
  font-size: 13.5px; padding: 11px 13px; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; }
.filter-tab:hover { color: #fff; }
.filter-tab.active { color: #fff; border-bottom-color: var(--accent); }
.group-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 26px 0 12px; }
.group-title { font-size: 16px; text-transform: none; letter-spacing: -.2px;
  color: #f3f4fb; font-weight: 650; }
section { margin-bottom: 26px; scroll-margin-top: 20px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 12px; }
.module { display: flex; flex-direction: column; min-height: 252px;
  background: linear-gradient(165deg, rgba(19,22,36,.97), rgba(12,14,24,.97));
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px;
  transition: background .15s, border-color .15s, transform .15s; }
.module:hover { background: var(--card-hover); border-color: #343a57; transform: translateY(-2px); }
.module.on { border-color: rgba(139,92,246,.32); }
.module-top { display: flex; align-items: flex-start; gap: 8px; }
.module-icon { width: 46px; height: 46px; border-radius: 12px; display: grid;
  place-items: center; font-size: 21px; color: #fff; flex: none;
  border: 1px solid rgba(255,255,255,.16); }
.icon-community { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.icon-engagement { background: linear-gradient(135deg, #7c3aed, #db2777); }
.icon-moderation { background: linear-gradient(135deg, #dc2626, #f59e0b); }
.icon-tools { background: linear-gradient(135deg, #0d9488, #0284c7); }
.icon-admin { background: linear-gradient(135deg, #b45309, #ca8a04); }
.star { border: 0; background: transparent; color: #686f8b; font-size: 18px;
  cursor: pointer; padding: 2px 4px; margin-left: auto; line-height: 1; }
.star:hover, .star.on { color: #fbbf24; }
.toggle { margin: 0; }
.switch { width: 42px; height: 23px; border-radius: 999px; border: 1px solid #30354d;
  background: #242838; padding: 2px; cursor: pointer; display: flex;
  align-items: center; transition: background .15s, border-color .15s; }
.switch .knob { width: 17px; height: 17px; border-radius: 50%; background: #8b90a6;
  transition: transform .15s, background .15s; }
.switch.on { background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-color: #a855f7; }
.switch.on .knob { transform: translateX(19px); background: #fff; }
.module-name { display: block; font-weight: 650; font-size: 16.5px; letter-spacing: -.2px;
  margin-top: 13px; }
.module-name:hover { color: #c4b5fd; }
.desc { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.module-foot { display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 16px; }
.module-btn { display: block; width: 100%; text-align: center; border-radius: 9px;
  border: 1px solid #2c3047; background: rgba(255,255,255,.02); padding: 9px 12px;
  font-size: 13.5px; color: #e8eaf5; }
.module-btn:hover { border-color: #7c5cff; background: rgba(124,92,255,.14); }
.state { font-size: 11px; color: #646b88; }
.state.on { color: var(--ok); }

/* --------------------------------------------------------------- Karten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; background: linear-gradient(135deg, rgba(124,92,255,.16), var(--card) 65%); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.module-intro { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.module-intro .module-text { flex: 1; min-width: 220px; display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------- Modul-Seiten */
.module-hero { position: relative; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; overflow: hidden; margin-bottom: 16px; padding: 20px 22px;
  border: 1px solid rgba(129,140,248,.22); border-radius: 16px;
  background: radial-gradient(620px 220px at 0% -20%, rgba(99,102,241,.22), transparent 70%),
    linear-gradient(135deg, #14172b, #10121e 70%); }
.module-hero::after { content: ""; position: absolute; width: 220px; height: 220px;
  right: 12%; top: -170px; border-radius: 50%; background: rgba(34,211,238,.09);
  filter: blur(24px); pointer-events: none; }
.module-hero-icon { position: relative; z-index: 1; width: 52px; height: 52px;
  flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(165,180,252,.2);
  border-radius: 14px; background: rgba(99,102,241,.14); font-size: 26px; }
.module-hero-copy { position: relative; z-index: 1; flex: 1; min-width: 220px; }
.module-eyebrow { display: block; color: #7f8bb4; font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; }
.module-hero-copy p { margin: 5px 0 0; color: #b3bbd5; font-size: 13px; line-height: 1.55; }
.module-hero-actions { position: relative; z-index: 1; display: flex; align-items: center;
  gap: 9px; flex-wrap: wrap; margin-left: auto; }
.module-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid rgba(251,191,36,.28); border-radius: 999px; color: #fde68a;
  background: rgba(251,191,36,.08); font-size: 10.5px; font-weight: 600; }
.module-state i { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; }
.module-state.on { color: #a7f3d0; border-color: rgba(52,211,153,.28);
  background: rgba(52,211,153,.08); }
.module-state.on i { background: #34d399; box-shadow: 0 0 8px #34d399; }
.module-settings { padding: 0; overflow: hidden; }
.module-settings-head { display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line-soft); }
.module-settings-head h2 { margin: 3px 0 0; }
.module-settings-hint { color: #717b9d; font-size: 11px; }
.module-settings-body { padding: 18px 22px 2px; }
.module-settings-body > .section-title:first-child { margin-top: 0; }
.module-settings-body .field:last-child { margin-bottom: 16px; }
.module-savebar { display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line-soft);
  background: #0b0d17; }
.module-savebar .actions { margin-top: 0; }
@media (max-width: 760px) {
  .module-hero { align-items: flex-start; padding: 18px; }
  .module-hero-actions { width: 100%; margin-left: 0; }
  .module-hero-actions form { flex: 1; }
  .module-hero-actions button { width: 100%; }
  .module-settings-head, .module-savebar { align-items: flex-start; flex-direction: column; }
  .module-savebar .actions { width: 100%; }
  .module-savebar .actions .primary, .module-savebar .actions .button { flex: 1; text-align: center; }
}
.icon.big { font-size: 26px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 20px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px; margin: 0 0 18px; }
.stat { background: #0b0d17; border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 12px 14px; }
.stat-value { font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
.stat-label { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stat .hint { font-size: 11px; color: #64748b; margin-top: 4px; }
.search-row { margin: 8px 0 6px; }
.search { width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font-size: 14px; }
.search:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* ---------------------------------------------------------------- Buttons */
.button, .primary { display: inline-block; padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  font-size: 13.5px; cursor: pointer; font-family: inherit; }
.button:hover { border-color: #3a4060; background: #141827; }
.button.small { padding: 5px 11px; font-size: 12px; }
.primary { background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-color: #8b5cf6; color: #fff; font-weight: 600; }
.primary:hover { filter: brightness(1.1); }
.actions { display: flex; gap: 9px; align-items: center; margin-top: 18px; flex-wrap: wrap; }

/* --------------------------------------------------------------- Formular */
.field { margin-bottom: 16px; }
.field-label { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field-bool { display: flex; flex-direction: column; gap: 4px; }
.field input[type=text], .field input[type=number], .field input[type=url],
.field input[type=file], .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font: inherit; font-size: 14px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.help { font-size: 12px; color: #64748b; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type=color] { width: 46px; height: 34px; padding: 2px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); }
.color-row code { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------- Tabellen / Diagramm */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: #68708c; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); }
tr:last-child td { border-bottom: 0; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 130px; }
.bar { flex: 1; background: linear-gradient(180deg, var(--accent), #3b2f8f);
  border-radius: 4px 4px 0 0; min-width: 3px; }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
  gap: 8px; font-size: 13.5px; }
.tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 1px 8px; }
.saved { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3);
  color: var(--ok); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
  font-size: 13.5px; }
.overview-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 16px; align-items: start; margin-top: 30px; }
.panel-stats .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ Login */
body.center { display: grid; place-items: center; padding: 24px; }
.login { width: 100%; max-width: 360px; display: flex; flex-direction: column;
  gap: 12px; margin: 0; }
.login h1 { font-size: 21px; margin: 0 0 2px; }
.login input { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font: inherit; }
.card-preview { display: block; width: 100%; max-width: 1024px; border-radius: 12px;
  border: 1px solid rgba(148,163,184,.22); margin: 14px 0; background: #0b0b12; }
.section-title { margin: 26px 0 2px; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: #94a3b8; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1320px) {
  .module-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 1080px) {
  .shell { grid-template-columns: 260px minmax(0, 1fr); }
  .main { padding: 26px 24px 50px; }
  .home-action { min-height: 210px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0;
    border-bottom: 1px solid var(--line-soft); }
  .side-foot { margin-top: 10px; }
  .main { padding: 20px 16px 48px; }
  .home-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: 1fr; }
  h1 { font-size: 25px; }
  .overview-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-actions { grid-template-columns: 1fr; }
  .home-action { min-height: 190px; }
  .panel-stats .stats { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Bot-Identität */
.identity-hero { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; background: linear-gradient(135deg, rgba(34,211,238,.1), var(--card) 60%); }
.identity-hero h2 { margin-top: 8px; }
.preview-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #6b7390; margin-bottom: 12px; }
.identity-preview { border-radius: 14px; overflow: hidden; background: #0b0d18;
  border: 1px solid #262b42; max-width: 680px; }
.identity-banner-img, .identity-banner-fallback { display: block; width: 100%; height: 130px;
  object-fit: cover; }
.identity-banner-fallback { background: linear-gradient(120deg, #312e81, #7c3aed 48%, #0e7490); }
.identity-profile { padding: 0 20px 20px; margin-top: -28px; }
.identity-avatar-img, .identity-avatar-fallback { width: 64px; height: 64px; border-radius: 50%;
  border: 4px solid #0b0d18; object-fit: cover; display: grid; place-items: center;
  font-size: 24px; font-weight: 700; background: linear-gradient(135deg, #4c1d95, #0e7490);
  color: #fff; }
.identity-name-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.identity-name-row strong { font-size: 20px; }
.app-tag { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #fff;
  background: #5865f2; border-radius: 4px; padding: 2px 5px; }
.identity-about-label { margin-top: 14px; font-size: 10px; text-transform: uppercase;
  letter-spacing: .14em; color: #6b7390; }
.identity-about { margin-top: 4px; color: #c7cbe0; font-size: 13.5px; white-space: pre-wrap; }
.identity-event { max-width: 520px; border-radius: 12px; border-left: 4px solid #8b5cf6;
  background: #0b0d18; padding: 16px 18px; }
.identity-event strong { display: block; font-size: 16px; margin-bottom: 4px; }
.identity-event p { color: var(--muted); font-size: 13px; }


/* ------------------------------------------------------------ KI-Agent */
.ai-card { background: linear-gradient(135deg, rgba(139,92,246,.09), var(--card) 55%); }
.ai-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; margin-bottom: 16px; }
.ai-head h2 { margin: 5px 0 6px; }
.ai-head p { max-width: 620px; }
.ai-kicker { font-size: 10px; letter-spacing: .18em; color: #a78bfa; font-weight: 700; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px; align-items: start; }
.ai-side { display: grid; gap: 16px; }
.ai-block { border: 1px solid #262b42; border-radius: 14px; padding: 18px;
  background: rgba(10,12,23,.72); }
.ai-block h3 { margin: 0 0 12px; font-size: 15px; }
.ai-block label { display: block; font-size: 12px; color: #9aa1ba; margin-top: 10px; }
.ai-block input, .ai-block textarea, .ai-block select { margin-top: 6px; width: 100%; }
.ai-block textarea { resize: vertical; min-height: 86px; }
.ai-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-check { display: flex !important; align-items: center; gap: 8px; margin-top: 14px !important; }
.ai-check input { width: auto; margin: 0; }
.ai-feedback { border-radius: 10px; padding: 11px 14px; margin-bottom: 14px;
  font-size: 13px; border: 1px solid #3b2f6b; background: #17132a; color: #d8d4f5; }
.ai-feedback.ok { border-color: #1f6f55; background: #0d211c; color: #9fe8cb; }
.ai-feedback.bad { border-color: #7a2e3a; background: #2a1118; color: #f4b3bd; }
.ai-result { display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  border: 1px solid #2b3150; background: #0b0d18; border-radius: 12px;
  padding: 12px; margin-bottom: 14px; }
.ai-result img { width: 132px; height: 132px; object-fit: cover; border-radius: 10px;
  border: 1px solid #343b5c; }
.ai-result-meta { flex: 1; min-width: 180px; }
.ai-result-meta p { color: var(--muted); font-size: 12.5px; margin: 4px 0 10px; }
@media (max-width: 760px) {
  .ai-grid, .ai-two { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- Server-Editor */
.editor-hero { display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(34,211,238,.09), var(--card) 60%); }
.editor-hero h2 { margin: 6px 0 5px; }
.editor-hero p { max-width: 620px; }
.editor-kicker { font-size: 10px; letter-spacing: .18em; color: #67e8f9; font-weight: 700; }
.editor-stats { grid-template-columns: repeat(4, minmax(92px, 1fr)); margin: 0;
  min-width: min(100%, 510px); }
.editor-panel-card { border-color: rgba(34,211,238,.2); }
.editor-panel-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.editor-panel-head h2 { margin-bottom: 4px; }
.editor-permissions { display: flex; gap: 6px; flex-wrap: wrap; }
.editor-general-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0 14px; }
.editor-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 8px 0 2px; }
.editor-media { border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  background: var(--bg-soft); display: flex; flex-direction: column; gap: 9px; }
.editor-media-label { font-size: 12px; color: var(--muted); }
.editor-media input[type=file] { width: 100%; font-size: 12px; }
.editor-icon-preview { width: 72px; height: 72px; border-radius: 18px; object-fit: cover;
  border: 1px solid #343b5c; background: #0b0d18; }
.editor-icon-fallback { display: grid; place-items: center; font-size: 26px; font-weight: 700;
  color: #d9d4ff; background: linear-gradient(135deg, #312e81, #6d28d9); }
.editor-banner-preview { width: 100%; max-width: 330px; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; border: 1px solid #343b5c; background: #0b0d18; }
.editor-banner-fallback { display: grid; place-items: center; color: #68708c; font-size: 12px;
  background: linear-gradient(120deg, #172033, #0b0d18); }
.editor-create-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
  gap: 16px; align-items: start; }
.editor-create-block { border: 1px solid var(--line); border-radius: 13px; padding: 16px;
  background: var(--bg-soft); }
.editor-create-block h3 { margin-bottom: 13px; }
.editor-two { display: grid; grid-template-columns: 1fr 1fr 78px; gap: 10px; }
.editor-tree { display: flex; flex-direction: column; gap: 12px; }
.editor-category { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.editor-category-empty { border-style: dashed; }
.editor-cat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 13px; background: rgba(139,92,246,.07); border-bottom: 1px solid var(--line); }
.editor-cat-form { display: flex; align-items: center; gap: 9px; flex: 1; flex-wrap: wrap; }
.editor-cat-form .field { margin: 0; min-width: 190px; }
.editor-cat-form .field input { padding: 7px 10px; }
.editor-cat-glyph { color: #a78bfa; font-size: 13px; }
.editor-channel-list { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.editor-channel { position: relative; border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 12px 13px 56px; background: #0b0d17; }
.editor-channel-head { display: grid; grid-template-columns: 22px minmax(140px, 1fr) auto 88px;
  gap: 10px; align-items: start; }
.editor-kind { display: grid; place-items: center; width: 22px; height: 34px; color: #a78bfa;
  font-size: 15px; }
.editor-channel-head .field, .editor-channel-grid .field { margin: 0; }
.editor-channel-head .field input, .editor-channel-head .field select { padding: 7px 9px; }
.editor-channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
.editor-channel-grid .field input, .editor-channel-grid .field select,
.editor-channel-grid .field textarea { padding: 7px 9px; font-size: 13px; }
.editor-topic { grid-column: span 2; }
.editor-small { max-width: 150px; }
.editor-pos { max-width: 88px; }
.editor-checks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; }
.editor-checks .check { font-size: 12.5px; }
.editor-channel .actions { margin-top: 10px; }
.editor-perm-fold { margin-top: 10px; border: 1px solid var(--line-soft);
  border-radius: 9px; background: rgba(139,92,246,.035); overflow: hidden; }
.editor-perm-fold > summary { position: relative; display: flex; align-items: center;
  gap: 8px; padding: 8px 10px 8px 26px; cursor: pointer; list-style: none;
  color: #c4b5fd; font-size: 12.5px; }
.editor-perm-fold > summary::-webkit-details-marker { display: none; }
.editor-perm-fold > summary::before { content: "▸"; position: absolute; left: 10px;
  color: #67e8f9; transition: transform .15s; }
.editor-perm-fold[open] > summary::before { transform: rotate(90deg); }
.editor-perm-fold[open] > summary { border-bottom: 1px solid var(--line-soft); }
.editor-perm-fold > summary .tag { margin-left: auto; }
.editor-perm-list { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.editor-perm-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px;
  border: 1px solid var(--line-soft); border-radius: 8px; background: #0b0d17; }
.editor-perm-target { display: flex; flex-direction: column; gap: 3px; min-width: 150px; }
.editor-perm-target .tag { align-self: flex-start; }
.editor-perm-target strong { font-size: 12.5px; }
.editor-perm-values { display: flex; flex-wrap: wrap; gap: 4px; }
.perm-chip { font-size: 11px; line-height: 1.6; padding: 1px 7px;
  border-radius: 999px; border: 1px solid; }
.perm-chip.allow { color: #baf7dd; background: rgba(16,185,129,.16);
  border-color: rgba(52,211,153,.35); }
.perm-chip.deny { color: #fecaca; background: rgba(239,68,68,.14);
  border-color: rgba(248,113,113,.35); }
.editor-perm-empty { padding: 4px 6px 5px; }
@media (max-width: 680px) {
  .editor-perm-row { flex-direction: column; gap: 6px; }
  .editor-perm-target { min-width: 0; }
}
.editor-delete { position: absolute; right: 13px; bottom: 12px; }
.editor-role-list { display: flex; flex-direction: column; gap: 8px; }
.editor-role { position: relative; display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line-soft); border-radius: 11px; padding: 11px 13px 56px;
  background: #0b0d17; }
.editor-role > form:first-child { flex: 1; }
.editor-role-main { display: grid; grid-template-columns: 22px minmax(140px, 1fr) 82px 88px;
  gap: 10px; align-items: start; }
.editor-role-main .field { margin: 0; }
.editor-role-main .field input { padding: 7px 9px; }
.editor-role-checks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; }
.editor-role-checks .check { font-size: 12.5px; }
.editor-role .actions { margin-top: 9px; }
.editor-role .editor-delete { right: 13px; bottom: 12px; }
.editor-swatch { width: 22px; height: 34px; border-radius: 7px; border: 1px solid rgba(255,255,255,.18); }
.editor-role-base { align-items: center; padding-bottom: 11px; flex-wrap: wrap; }
.editor-role-base .muted { flex: 1; min-width: 150px; }
.editor-role-create { margin-bottom: 14px; }
.editor-role-create > summary { display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 1px solid rgba(139,92,246,.4); border-radius: 10px;
  background: var(--accent-soft); cursor: pointer; list-style: none; }
.editor-role-create > summary::-webkit-details-marker { display: none; }
.editor-role-create[open] > summary { border-radius: 10px 10px 0 0; }
.editor-role-create[open] .chev { transform: rotate(180deg); }
.role-create-plus { width: 26px; height: 26px; border-radius: 8px; display: grid;
  place-items: center; background: rgba(139,92,246,.3); color: #ddd6fe;
  font-size: 18px; }
.role-create-copy { display: flex; flex-direction: column; flex: 1; }
.role-create-copy strong { font-size: 14px; }
.role-create-copy small { color: var(--muted); font-size: 11.5px; }
.editor-role-new { border: 1px solid var(--line); border-top: 0; margin: 0;
  padding: 14px; border-radius: 0 0 10px 10px; background: var(--bg-soft); }
.editor-role-new .actions { margin-top: 12px; }
.role-perm-groups { display: grid; gap: 10px; padding: 8px; }
.role-perm-group { border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 9px 10px; background: #0b0d17; }
.role-perm-head { font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 7px; }
.role-perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px; }
.role-perm-check { font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
@media (max-width: 680px) {
  .role-perm-grid { grid-template-columns: 1fr; }
}
.editor-role-new .editor-role-main { grid-template-columns: minmax(140px, 1fr) 82px auto auto auto;
  align-items: center; }
.editor-role-new .check { font-size: 12.5px; }
.editor-empty { padding: 14px 4px; }
.button.danger { color: #fecaca; border-color: rgba(248,113,113,.35);
  background: rgba(127,29,29,.18); }
.button.danger:hover { background: rgba(153,27,27,.28); border-color: rgba(248,113,113,.6); }
.saved.bad { color: #fecaca; background: rgba(127,29,29,.16);
  border-color: rgba(248,113,113,.35); }

/* ------------------------------------------------- Befehlsuebersicht */
.command-publish { background: linear-gradient(135deg, rgba(34,211,238,.06), var(--card) 58%); }
.command-publish-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; }
.command-publish-head .muted { max-width: 760px; margin-top: 6px; }
.command-publish-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 24px; align-items: start; margin-top: 18px; }
.command-banner-box { border-left: 1px solid var(--line-soft); padding-left: 22px; }
.command-banner-box .muted { margin: 5px 0 0; font-size: 12.5px; }
.command-banner-preview { display: block; width: 100%; aspect-ratio: 16 / 5; object-fit: cover;
  border-radius: 12px; border: 1px solid rgba(148,163,184,.22); margin: 12px 0;
  background: #0b0b12; }
.command-banner-empty { min-height: 120px; margin: 12px 0; padding: 16px; display: grid;
  place-items: center; text-align: center; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--muted); background: rgba(255,255,255,.02); font-size: 12.5px; }
.command-publish .field { margin-bottom: 10px; }
.command-publish .actions { margin-top: 10px; }
@media (max-width: 900px) {
  .command-publish-grid { grid-template-columns: 1fr; }
  .command-banner-box { border-left: 0; border-top: 1px solid var(--line-soft);
    padding: 18px 0 0; }
}
@media (max-width: 1000px) {
  .editor-create-grid, .editor-media-grid { grid-template-columns: 1fr; }
  .editor-stats { grid-template-columns: repeat(2, minmax(92px, 1fr)); }
}
@media (max-width: 680px) {
  .editor-channel-head { grid-template-columns: 22px minmax(120px, 1fr) 78px; }
  .editor-channel-head .tag { grid-column: 2 / -1; }
  .editor-channel-grid { grid-template-columns: 1fr; }
  .editor-topic { grid-column: auto; }
  .editor-role-main, .editor-role-new .editor-role-main { grid-template-columns: 22px minmax(120px, 1fr) 78px; }
  .editor-role-main .editor-pos { grid-column: 2 / -1; }
  .editor-two { grid-template-columns: 1fr 1fr; }
  .editor-cat-form .field { min-width: 140px; }
}

/* ------------------------------------------------- Drag-and-drop-Sortierung */
.editor-sort-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: -4px 0 12px; }
.editor-order-status { font-size: 12px; color: var(--muted); }
.editor-order-status.ok { color: var(--ok); }
.editor-order-status.bad { color: var(--danger); }
.editor-drag { display: inline-grid; place-items: center; width: 20px; height: 32px;
  color: #7d84a0; cursor: grab; user-select: none; font-size: 17px;
  border-radius: 6px; flex: 0 0 auto; }
.editor-drag:hover { color: #c4b5fd; background: rgba(139,92,246,.14); }
.editor-drag:active { cursor: grabbing; }
.editor-cat-form .editor-drag { height: 34px; }
.editor-channel-head { grid-template-columns: 18px 22px minmax(140px, 1fr) auto 88px; }
.editor-channel-head .editor-drag { height: 34px; }
.editor-dragging { opacity: .42; }
.editor-drop-target { border-color: rgba(139,92,246,.75) !important;
  box-shadow: 0 0 0 2px rgba(139,92,246,.18) inset; }
@media (max-width: 680px) {
  .editor-channel-head { grid-template-columns: 18px 22px minmax(120px, 1fr) 78px; }
  .editor-channel-head .tag { grid-column: 3 / -1; }
}

/* ------------------------------------------------- Einklappbare Editor-Bereiche */
.editor-fold { padding: 0; overflow: hidden; }
.editor-fold > summary { position: relative; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 20px 18px 42px; margin: 0; list-style: none; cursor: pointer;
  border-radius: var(--radius); }
.editor-fold > summary::-webkit-details-marker { display: none; }
.editor-fold > summary::before { content: "▸"; position: absolute; left: 18px; top: 18px;
  color: #67e8f9; font-size: 15px; line-height: 1.35; transition: transform .16s ease; }
.editor-fold[open] > summary::before { transform: rotate(90deg); }
.editor-fold > summary:hover { background: rgba(34,211,238,.045); }
.editor-fold > summary:focus-visible { outline: 2px solid #67e8f9; outline-offset: -2px; }
.editor-fold > summary.editor-panel-head { margin-bottom: 0; }
.editor-fold[open] > summary { border-bottom: 1px solid var(--line); }
.editor-fold-body { padding: 18px 20px 20px; }

/* ------------------------------------------------------- Uebersetzungsmodul */
.tr-form { padding: 0; overflow: hidden; }
.tr-hero { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(500px 160px at 0% 0%, rgba(34,211,238,.10), transparent 70%); }
.tr-kicker { display: block; color: #67e8f9; font-size: 10px; font-weight: 700;
  letter-spacing: .18em; margin-bottom: 5px; }
.tr-hero .muted { max-width: 620px; margin-top: 7px; }
.tr-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tr-stats span { min-width: 92px; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 10px; background: #0b0d17; color: var(--muted); font-size: 11px;
  text-align: center; }
.tr-stats strong { display: block; color: var(--text); font-size: 17px; line-height: 1.2; }
.tr-tabs { display: flex; gap: 4px; padding: 12px 16px 0; border-bottom: 1px solid var(--line);
  overflow-x: auto; }
.tr-tab { appearance: none; border: 1px solid transparent; border-bottom: 0;
  background: transparent; color: var(--muted); font: inherit; font-size: 13px;
  font-weight: 600; padding: 10px 15px; border-radius: 9px 9px 0 0; cursor: pointer;
  white-space: nowrap; }
.tr-tab:hover { color: var(--text); background: rgba(255,255,255,.035); }
.tr-tab.active { color: #ddd6fe; background: var(--accent-soft);
  border-color: rgba(139,92,246,.35); }
.tr-panel { display: none; padding: 18px 20px 8px; }
.tr-panel.active { display: block; }
.ticket-tab-extra { display: none; }
.ticket-tab-extra.active { display: block; }
.tr-block { border: 1px solid var(--line-soft); border-radius: 13px; padding: 16px;
  margin-bottom: 12px; background: #0b0d17; }
.tr-block h3 { font-size: 15px; margin-bottom: 5px; }
.tr-block .muted { max-width: 860px; }
.tr-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px; margin-top: 13px; }
.tr-mode { position: relative; display: flex; flex-direction: column; gap: 4px;
  min-height: 106px; padding: 13px; border: 1px solid var(--line); border-radius: 11px;
  background: #10121e; cursor: pointer; transition: border-color .15s, background .15s; }
.tr-mode:hover { border-color: rgba(139,92,246,.55); }
.tr-mode:has(input:checked), .tr-mode.selected { border-color: rgba(34,211,238,.55);
  background: rgba(34,211,238,.06); }
.tr-mode input { position: absolute; opacity: 0; pointer-events: none; }
.tr-mode-ic { width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; color: #a5f3fc; background: rgba(34,211,238,.12); font-size: 16px; }
.tr-mode strong { font-size: 13.5px; }
.tr-mode small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.tr-note { margin-top: 9px; color: var(--muted); font-size: 12px; }
.tr-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 18px; margin-top: 11px; }
.tr-options .check { font-size: 13px; }
.tr-number { display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  color: #c7cbe0; font-size: 13px; }
.tr-number input { width: 70px; padding: 7px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: #10121e; color: var(--text); font: inherit; }
.tr-number small { color: var(--muted); font-size: 11.5px; }
.tr-advanced { margin: 0 0 12px; border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 11px 14px; background: #0b0d17; }
.tr-advanced summary { cursor: pointer; color: #c4b5fd; font-size: 13px; font-weight: 600; }
.tr-advanced[open] summary { margin-bottom: 8px; }
.tr-advanced .muted { margin-bottom: 8px; }
.tr-advanced textarea { width: 100%; padding: 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #10121e; color: var(--text); font: inherit; }
.tr-lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 6px; margin-top: 12px; max-height: 330px; overflow: auto; padding-right: 4px; }
.tr-lang { display: flex; align-items: center; gap: 7px; padding: 6px 8px;
  border: 1px solid var(--line-soft); border-radius: 8px; background: #10121e;
  font-size: 12px; color: #cdd1e6; cursor: pointer; min-width: 0; }
.tr-lang:hover { border-color: rgba(139,92,246,.45); }
.tr-lang input { width: 14px; height: 14px; accent-color: var(--accent); flex: 0 0 auto; }
.tr-lang-static { cursor: default; }
.tr-flag { font-size: 16px; line-height: 1; flex: 0 0 auto; }
.tr-channel-grid, .tr-role-grid { display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px; margin-top: 12px; }
.tr-channel, .tr-role { display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line-soft); border-radius: 9px; background: #10121e;
  font-size: 12.5px; cursor: pointer; }
.tr-channel:hover, .tr-role:hover { border-color: rgba(139,92,246,.45); }
.tr-channel input, .tr-role input { accent-color: var(--accent); }
.tr-channel small { margin-left: auto; color: var(--muted); font-size: 10px; }
.tr-role-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.tr-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tr-two label { display: flex; flex-direction: column; gap: 6px; color: #c7cbe0;
  font-size: 13px; }
.tr-two select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #10121e; color: var(--text); font: inherit; }
.tr-empty { padding: 6px 0; }
.tr-warning { margin: 11px 0 0; padding: 10px 12px; border-radius: 9px;
  border: 1px solid rgba(251,191,36,.35); background: rgba(245,158,11,.10);
  color: #fde68a; font-size: 12.5px; }
.tr-warning strong { color: #fef3c7; }
.tr-savebar { display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line);
  background: #0b0d17; }
.tr-status { color: var(--muted); font-size: 12px; }
.tr-status.ok { color: var(--ok); }
.tr-status.bad { color: var(--danger); }
@media (max-width: 900px) {
  .tr-hero { flex-direction: column; }
  .tr-stats { justify-content: flex-start; }
  .tr-mode-grid { grid-template-columns: 1fr; }
  .tr-options, .tr-two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tr-panel { padding: 14px 12px 6px; }
  .tr-hero { padding: 18px 14px 14px; }
  .tr-tabs { padding-left: 8px; padding-right: 8px; }
  .tr-lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-savebar { padding: 12px 14px; }
}

/* ------------------------------------------------------------ Music Play */
.music-dashboard { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.music-dashboard > .card, .music-dashboard .music-split > .card { margin-bottom: 0; }
.music-dashboard > .saved { margin-bottom: 0; }
.music-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; }
.music-metric { position: relative; min-height: 148px; display: flex; flex-direction: column;
  gap: 3px; padding: 18px; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius); background:
    radial-gradient(300px 110px at 0% 0%, var(--metric-soft), transparent 70%), var(--card); }
.music-metric::after { content: ""; position: absolute; width: 95px; height: 95px;
  right: -28px; top: -38px; border-radius: 50%; background: var(--metric-soft);
  filter: blur(18px); pointer-events: none; }
.music-metric-icon { width: 36px; height: 36px; display: grid; place-items: center;
  margin-bottom: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px;
  color: var(--metric); background: var(--metric-soft); font-size: 18px; }
.music-metric-value { color: #fff; font-size: 28px; line-height: 1.12; font-weight: 700;
  letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.music-metric-label { color: #c1c6da; font-size: 12.5px; }
.music-metric-hint { color: var(--metric); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; margin-top: 3px; }
.music-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr);
  gap: 16px; align-items: start; }
.music-bottom { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
.music-panel-card { min-width: 0; }
.music-card-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 7px; }
.music-card-head h2 { margin: 2px 0 0; }
.music-eyebrow { display: block; color: #6f7898; font-size: 9.5px; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; }
.music-status { display: inline-flex; align-items: center; white-space: nowrap;
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px;
  color: #9ca4bf; background: #0b0d17; font-size: 10px; font-weight: 600;
  letter-spacing: .03em; }
.music-status.ok { color: #a7f3d0; border-color: rgba(52,211,153,.32);
  background: rgba(52,211,153,.09); }
.music-status.warn { color: #fde68a; border-color: rgba(251,191,36,.32);
  background: rgba(251,191,36,.09); }
.music-health-list { display: flex; flex-direction: column; }
.music-health-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 88px;
  align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.music-health-row:last-child { border-bottom: 0; }
.music-health-label { color: #b1b7cc; font-size: 12.5px; }
.music-health-bar { height: 7px; overflow: hidden; border-radius: 999px;
  background: #1a1e2e; }
.music-health-fill { display: block; height: 100%; border-radius: inherit;
  background: var(--bar); box-shadow: 0 0 12px var(--bar); }
.music-health-value { color: #eef1fc; text-align: right; font-size: 12px;
  font-weight: 650; font-variant-numeric: tabular-nums; }
.music-top-list { display: flex; flex-direction: column; margin-top: 4px; }
.music-top-row { display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) 30px;
  align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.music-top-row:last-child { border-bottom: 0; }
.music-rank { color: #68708c; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.music-track-icon { width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.08); border-radius: 9px;
  color: var(--track); background: rgba(255,255,255,.035); font-size: 15px; }
.music-top-copy { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.music-top-copy strong { overflow: hidden; color: #e9ecf8; font-size: 12.5px;
  line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.music-top-copy > span:not(.music-top-bar) { overflow: hidden; color: var(--muted);
  font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.music-top-bar { display: block; height: 4px; margin-top: 5px; overflow: hidden;
  border-radius: 999px; background: #1a1e2e; }
.music-top-bar i { display: block; height: 100%; border-radius: inherit;
  background: var(--bar); }
.music-top-count { color: #aeb5cd; text-align: right; font-size: 11px;
  font-variant-numeric: tabular-nums; }
.music-player-card { background:
  radial-gradient(600px 220px at 0% 0%, rgba(139,92,246,.10), transparent 65%), var(--card); }
.music-now { display: flex; align-items: center; gap: 14px; padding: 14px 0 4px; }
.music-now-art { width: 64px; height: 64px; flex: 0 0 auto; object-fit: cover;
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #0b0d17; }
.music-now-art-fallback { display: grid; place-items: center; color: #c4b5fd;
  background: linear-gradient(135deg, #312e81, #6d28d9); font-size: 25px; }
.music-now-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.music-now-copy h3 { margin: 0; overflow: hidden; color: #fff; font-size: 18px;
  line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.music-now-copy p { margin: 0; overflow: hidden; color: var(--muted); font-size: 12.5px;
  text-overflow: ellipsis; white-space: nowrap; }
.music-now-duration { color: #c4b5fd; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.music-now > .music-status { margin-left: auto; align-self: flex-start; }
.music-now-empty { padding-bottom: 8px; }
.music-progress { height: 6px; margin: 13px 0 4px; overflow: hidden;
  border-radius: 999px; background: #1a1e2e; }
.music-progress > span { display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee); }
.music-progress-meta { display: flex; justify-content: space-between; color: #6f7898;
  font-size: 10.5px; font-variant-numeric: tabular-nums; }
.music-controls { margin-top: 15px; }
.music-meta-line { display: flex; flex-wrap: wrap; gap: 9px 18px; padding-top: 13px;
  margin-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted);
  font-size: 11.5px; }
.music-meta-line strong { color: #dfe3f2; font-weight: 600; }
.music-volume-form { display: flex; align-items: center; gap: 8px; margin-top: 12px;
  color: var(--muted); font-size: 12px; }
.music-volume-form input { width: 74px; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 8px; background: #0b0d17; color: var(--text); font: inherit; font-size: 12px; }
.music-queue-list { display: flex; flex-direction: column; margin: 2px 0 0; padding: 0;
  list-style: none; }
.music-queue-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.music-queue-list li:last-child { border-bottom: 0; }
.music-queue-index { color: #68708c; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.music-queue-copy { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.music-queue-copy strong { overflow: hidden; color: #e8ebf7; font-size: 12.5px;
  text-overflow: ellipsis; white-space: nowrap; }
.music-queue-copy small { overflow: hidden; color: var(--muted); font-size: 10.5px;
  text-overflow: ellipsis; white-space: nowrap; }
.music-queue-time { color: #8d92aa; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.freegame-link { color: inherit; text-decoration: none; }
.freegame-link:hover strong { color: #fbbf24; }

/* ------------------------------------------------------------ Free Games */
.freegames-dashboard { gap: 16px; }
.freegames-dashboard > .saved { margin-bottom: 0; }
.freegames-hero { position: relative; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; overflow: hidden; padding: 26px;
  border: 1px solid rgba(129,140,248,.28); border-radius: 18px;
  background: radial-gradient(680px 260px at 10% -20%, rgba(99,102,241,.34), transparent 68%),
    linear-gradient(135deg, #171a33 0%, #111426 58%, #0d1020 100%); }
.freegames-hero::after { content: ""; position: absolute; width: 260px; height: 260px;
  right: 120px; bottom: -190px; border-radius: 50%;
  background: rgba(34,211,238,.12); filter: blur(28px); pointer-events: none; }
.freegames-hero-copy { position: relative; z-index: 1; max-width: 680px; }
.freegames-hero-copy .music-eyebrow { color: #9da8d8; }
.freegames-hero h2 { margin: 8px 0 9px; color: #fff; font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08; letter-spacing: -1.1px; }
.freegames-hero h2 span { color: #a5b4fc; }
.freegames-hero p { max-width: 580px; margin: 0; color: #aeb6d2; font-size: 13px;
  line-height: 1.6; }
.freegames-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.freegames-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid rgba(148,163,184,.18); border-radius: 999px;
  color: #aeb6d2; background: rgba(255,255,255,.035); font-size: 10.5px; font-weight: 600; }
.freegames-pill i { width: 6px; height: 6px; border-radius: 50%; background: #64748b; }
.freegames-pill.ok { color: #a7f3d0; border-color: rgba(52,211,153,.25);
  background: rgba(52,211,153,.08); }
.freegames-pill.ok i { background: #34d399; box-shadow: 0 0 9px #34d399; }
.freegames-pill.warn { color: #fde68a; border-color: rgba(251,191,36,.25);
  background: rgba(251,191,36,.08); }
.freegames-pill.warn i { background: #fbbf24; }
.freegames-hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap;
  gap: 8px; align-self: flex-end; }
.freegames-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .85fr);
  gap: 16px; align-items: start; }
.freegames-layout .card { margin-bottom: 0; }
.freegames-feed-card, .freegames-panel-card { min-width: 0; }
.freegames-feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin-top: 14px; }
.freegames-offer { display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: 14px; background: #0b0e1a;
  color: inherit; text-decoration: none; transition: transform .16s, border-color .16s; }
.freegames-offer:hover { transform: translateY(-2px); border-color: rgba(129,140,248,.45); }
.freegames-offer-media { position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 8.5; background: linear-gradient(135deg, #1d2340, #111426); }
.freegames-offer-media img { display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s; }
.freegames-offer:hover .freegames-offer-media img { transform: scale(1.035); }
.freegames-offer-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(4,7,18,.76)); pointer-events: none; }
.freegames-offer-tag { position: absolute; z-index: 1; left: 10px; bottom: 9px;
  padding: 3px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px;
  color: #e0e7ff; background: rgba(9,12,25,.76); font-size: 9.5px; font-weight: 650;
  letter-spacing: .02em; }
.freegames-media-empty { display: grid; place-items: center; width: 100%; height: 100%;
  color: #a5b4fc; font-size: 30px; }
.freegames-offer-body { display: flex; flex: 1; flex-direction: column; gap: 5px;
  padding: 11px 12px 12px; }
.freegames-offer-top, .freegames-offer-meta { display: flex; align-items: center;
  justify-content: space-between; gap: 8px; min-width: 0; }
.freegames-platform { overflow: hidden; color: #8e97b8; font-size: 9.5px; font-weight: 600;
  letter-spacing: .03em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.freegames-worth { flex: 0 0 auto; color: #fbbf24; font-size: 10.5px; font-weight: 700; }
.freegames-offer-title { display: -webkit-box; overflow: hidden; min-height: 35px;
  color: #eef1ff; font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; }
.freegames-offer:hover .freegames-offer-title { color: #c7d2fe; }
.freegames-offer-meta { margin-top: auto; padding-top: 7px; border-top: 1px solid var(--line-soft);
  color: #717b9d; font-size: 10px; }
.freegames-open { color: #a5b4fc; font-weight: 600; }
.freegames-empty { grid-column: 1 / -1; padding: 22px 4px; color: var(--muted); font-size: 12.5px; }
.freegames-empty code { color: #c4b5fd; }
.freegames-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.freegames-spotlight { overflow: hidden; padding: 0; }
.freegames-spotlight-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1d2340, #111426); }
.freegames-spotlight-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.freegames-spotlight-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(5,8,20,.82)); }
.freegames-spotlight-body { padding: 14px 17px 17px; }
.freegames-kicker { display: flex; flex-wrap: wrap; gap: 8px; color: #8e97b8;
  font-size: 9.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.freegames-kicker span + span::before { content: "·"; margin-right: 8px; color: #4f5878; }
.freegames-spotlight h3 { margin: 7px 0 5px; color: #fff; font-size: 18px; line-height: 1.3; }
.freegames-spotlight-body p { display: -webkit-box; overflow: hidden; margin: 0 0 11px;
  color: var(--muted); font-size: 11.5px; line-height: 1.55; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; }
.freegames-spotlight-meta { display: flex; align-items: baseline; gap: 9px;
  color: #8e97b8; font-size: 11px; }
.freegames-spotlight-meta strong { color: #fbbf24; font-size: 16px; }
.freegames-cta { display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 13px; box-sizing: border-box; font-size: 12.5px; }
.freegames-cta span { color: #a5b4fc; }
.freegames-spotlight-empty { display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 230px; padding: 28px; text-align: center; }
.freegames-empty-icon { width: 48px; height: 48px; display: grid; place-items: center;
  margin-bottom: 8px; border: 1px solid rgba(165,180,252,.2); border-radius: 14px;
  background: rgba(99,102,241,.11); font-size: 23px; }
.freegames-spotlight-empty h3 { margin: 0 0 4px; font-size: 16px; }
.freegames-spotlight-empty p { margin: 0; color: var(--muted); font-size: 12px; }
.freegames-panel-card .music-card-head { margin-bottom: 5px; }
.freegames-panel-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; overflow: hidden; margin: 14px 0; border: 1px solid var(--line-soft);
  border-radius: 10px; background: var(--line-soft); }
.freegames-panel-stats > div { display: flex; flex-direction: column; gap: 2px;
  min-width: 0; padding: 9px 10px; background: #0b0e1a; }
.freegames-panel-stats span { color: #717b9d; font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .04em; }
.freegames-panel-stats strong { overflow: hidden; color: #dce2f7; font-size: 11.5px;
  font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.freegames-panel-card form { margin-top: 13px; }
.freegames-panel-card form .primary { width: 100%; box-sizing: border-box; }
.freegames-note { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--line-soft);
  color: #717b9d; font-size: 10.5px; }
.freegames-note code { color: #c4b5fd; }
@media (max-width: 1120px) {
  .freegames-layout { grid-template-columns: 1fr; }
  .freegames-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .freegames-hero { flex-direction: column; align-items: stretch; padding: 21px; }
  .freegames-hero-actions { align-self: stretch; }
  .freegames-hero-actions form, .freegames-hero-actions button { flex: 1; }
  .freegames-feed-grid, .freegames-side { grid-template-columns: 1fr; }
}
.music-upload-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px;
  margin-top: 13px; }
.music-file-label { display: flex; flex: 1 1 180px; flex-direction: column; gap: 5px;
  padding: 9px 11px; border: 1px dashed #2b3047; border-radius: 9px;
  color: var(--muted); font-size: 11.5px; cursor: pointer; }
.music-file-label input { max-width: 100%; color: var(--muted); font-size: 10.5px; }
.music-empty { padding: 18px 0; color: var(--muted); font-size: 12.5px; }
.music-empty code { color: #c4b5fd; }
@media (max-width: 1120px) {
  .music-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .music-split, .music-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .music-metrics { grid-template-columns: 1fr; }
  .music-health-row { grid-template-columns: 104px minmax(0, 1fr); }
  .music-health-value { grid-column: 2; text-align: left; }
  .music-now { align-items: flex-start; }
  .music-now > .music-status { display: none; }
  .music-now-copy h3 { font-size: 16px; }
}

/* ---------------------------------------------------- Server erstellen */
.sb-picker { padding: 22px; }
.sb-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sb-head h2 { margin: 4px 0 0; }
.sb-head p { max-width: 640px; margin-top: 6px; color: #b3bbd5; font-size: 13px; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px; margin-bottom: 16px; }
.sb-template { position: relative; display: block; cursor: pointer; }
.sb-template input { position: absolute; opacity: 0; pointer-events: none; }
.sb-shell { display: flex; flex-direction: column; gap: 12px; height: 100%;
  padding: 16px; border-radius: 14px; border: 1px solid var(--line);
  background: #0b0d17; transition: border-color .15s, background .15s; }
.sb-template:hover .sb-shell { border-color: #333a58; background: #0e1120; }
.sb-template input:checked ~ .sb-shell {
  border-color: rgba(139, 92, 246, .75);
  background: linear-gradient(160deg, rgba(139, 92, 246, .16), #0b0d17 62%);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, .25); }
.sb-top { display: flex; align-items: flex-start; gap: 10px; }
.sb-icon { width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: rgba(139, 92, 246, .16); font-size: 19px; }
.sb-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sb-copy strong { font-size: 14.5px; letter-spacing: -.1px; }
.sb-copy span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.sb-radio { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #3a4060;
  margin-top: 4px; flex: none; }
.sb-template input:checked ~ .sb-shell .sb-radio {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 48%, transparent 52%); }
.sb-numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-numbers span { font-size: 10.5px; color: #9aa3c4; background: #111527;
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 8px; }
.sb-numbers b { color: #fff; font-weight: 600; }
.sb-preview { display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--line-soft); padding-top: 10px; }
.sb-preview-title { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #717b9d; font-weight: 700; }
.sb-preview ul { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 4px; }
.sb-preview li { display: flex; flex-direction: column; font-size: 11.5px; }
.sb-cat { color: #dfe4f6; }
.sb-chans { color: #6f7899; font-size: 11px; }
.sb-roles { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.sb-role { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px;
  color: #c3c9e0; background: #111527; border-radius: 999px; padding: 3px 8px; }
.sb-role i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.sb-danger { border: 1px solid rgba(248, 113, 113, .28);
  background: rgba(248, 113, 113, .06); border-radius: 13px; padding: 14px 16px;
  transition: border-color .15s, background .15s; }
.sb-danger.on { border-color: rgba(248, 113, 113, .6);
  background: rgba(248, 113, 113, .12); }
.sb-danger h3 { color: #fecaca; font-size: 13px; margin-bottom: 4px; }
.sb-danger p { color: #f0a9a9; font-size: 12px; }
.sb-danger .field { margin: 12px 0 0; }
.sb-danger input[type="text"] { max-width: 260px; }
.sb-danger input:disabled { opacity: .45; }
.sb-result-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sb-result-head h2 { margin: 4px 0 0; }
.sb-result-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sb-result-grid span { font-size: 11px; color: #9aa3c4; background: #111527;
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 10px; }
.sb-result-grid b { color: #fff; font-weight: 600; margin-right: 2px; }
.sb-errors { margin: 10px 0 0; padding-left: 18px; color: #fca5a5; font-size: 12px; }
@media (max-width: 720px) {
  .sb-grid { grid-template-columns: 1fr; }
  .sb-head { flex-direction: column; }
}

/* ------------------------------------------------ Serverauswahl & Einladen */
.server-meta { font-size: 10.5px; color: #6f7899; margin-top: 1px; }
.server-count { margin-left: auto; font-size: 10.5px; color: #7d86a6;
  background: #111527; border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 1px 7px; }
.server-option.active .server-count { color: #c4b5fd; border-color: #4c1d95; }
.server-option .server-check { margin-left: 4px; }
.server-invite { display: flex; align-items: center; gap: 8px; margin-top: 6px;
  padding: 7px 8px; border: 1px dashed var(--line); border-radius: 8px;
  font-size: 12px; color: #b4b9cd; }
.server-invite:hover { border-color: #4c1d95; color: #fff;
  background: rgba(139, 92, 246, .1); }
.server-invite-ic { color: #a78bfa; }
.top-server { display: flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px;
  color: #c9cee6; background: #0c0e18; max-width: 300px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.top-server .server-dot { width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none; }

.sb-note { margin: 12px 0 4px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: #fbbf24; font-weight: 650; }
.sb-skipped { margin: 0; padding-left: 18px; color: #fcd34d; font-size: 12px; }

.sb-warn { margin: 8px 0 10px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .09);
  color: #fde68a; font-size: 12px; line-height: 1.5; }

.backup-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 14px 0; }
.backup-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .22); border-radius: 12px;
  background: rgba(148, 163, 184, .06); }
.backup-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #94a3b8; }
.backup-stats strong { font-size: 15px; }
.backup-hint, .backup-when { display: block; font-size: 11px; color: #94a3b8; }
.backup-when { margin-top: 2px; }
.backup-table { width: 100%; margin-top: 6px; }
.backup-size { white-space: nowrap; font-variant-numeric: tabular-nums; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.backup-actions form { margin: 0; }
.backup-empty { margin-top: 12px; padding: 26px 16px; text-align: center;
  border: 1px dashed rgba(148, 163, 184, .35); border-radius: 14px; }
.backup-empty strong { display: block; margin-bottom: 4px; }

/* ------------------------------------------------------------ Startseite */
.landing-body { background-color: var(--bg); }
.landing { max-width: 1160px; margin: 0 auto; padding: 0 28px 60px; }
.landing.narrow { max-width: 900px; }
.landing-nav { display: flex; align-items: center; gap: 22px; padding: 22px 0;
  border-bottom: 1px solid var(--line-soft); }
.landing-brand { display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -.3px; font-size: 16px; }
.landing-logo { width: 34px; height: 34px; border-radius: 10px; display: grid;
  place-items: center; background: var(--accent-soft); border: 1px solid rgba(139,92,246,.3); }
.landing-links { display: flex; gap: 18px; font-size: 13.5px; color: var(--muted); }
.landing-links a:hover { color: var(--text); }
.landing-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.landing-ghost { border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px;
  font-size: 13.5px; color: var(--text); background: rgba(16,18,30,.6); }
.landing-ghost:hover { background: var(--card-hover); }
.landing-hero { max-width: 860px; margin: 0 auto; padding: 72px 0 22px; text-align: center; }
.landing-hero.small { max-width: none; padding: 42px 0 12px; text-align: left; }
.landing-badge { display: inline-block; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #a5b4fc; border: 1px solid rgba(139,92,246,.35);
  background: rgba(139,92,246,.12); padding: 6px 12px; border-radius: 999px; }
.landing-hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.03;
  letter-spacing: -2px; margin: 18px 0 16px; }
.landing-hero.small h1 { font-size: 34px; letter-spacing: -1px; margin: 12px 0 8px; }
.landing-grad { background: linear-gradient(90deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-lead { color: #b3bbd5; font-size: 16.5px; line-height: 1.6;
  max-width: 620px; margin: 0 auto; }
.landing-hero.small .landing-lead { margin: 0; }
.landing-cta { display: flex; gap: 10px; justify-content: center;
  margin: 26px 0 14px; flex-wrap: wrap; }
.landing-hero.small .landing-cta { justify-content: flex-start; }
.landing-big { padding: 13px 22px; font-size: 14.5px; border-radius: 11px; }
.landing-note { color: var(--muted); font-size: 12.5px; }
.landing-stats { display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-top: 30px; }
.landing-chip { background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 16px; font-size: 13px; color: var(--muted); }
.landing-chip strong { color: var(--text); font-size: 16px; margin-right: 4px; }
.landing-section { padding: 54px 0 10px; }
.landing-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.landing-head h2 { font-size: 24px; }
.landing-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px; }
.landing-group { background: var(--card); border: 1px solid var(--line);
  border-radius: 15px; padding: 18px; display: flex; flex-direction: column; gap: 7px; }
.landing-group-ic { font-size: 20px; }
.landing-group-head { display: flex; align-items: center; justify-content: space-between;
  gap: 8px; }
.landing-group-head strong { font-size: 15.5px; }
.landing-group-count { font-size: 11px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 1px 8px; }
.landing-group p { color: #9aa2bd; font-size: 13px; line-height: 1.5; }
.landing-group-keys { color: #6f7796; font-size: 12px; margin-top: auto; }
.landing-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px; }
.landing-step { background: var(--card); border: 1px solid var(--line);
  border-radius: 15px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.landing-step-num { width: 26px; height: 26px; border-radius: 50%; display: grid;
  place-items: center; background: var(--accent-soft); color: #c4b5fd;
  font-size: 12.5px; font-weight: 700; }
.landing-step p { color: #9aa2bd; font-size: 13px; line-height: 1.5; }
.landing-final { text-align: center; padding: 62px 0 40px; }
.landing-final h2 { font-size: 26px; }
.landing-foot { display: flex; justify-content: space-between; gap: 14px;
  border-top: 1px solid var(--line-soft); padding: 22px 0 0; color: var(--muted);
  font-size: 12.5px; flex-wrap: wrap; }
.landing-foot a:hover { color: var(--text); }

/* ------------------------------------------------------------- Nutzermenue */
.top-login { font-size: 13px; color: #cfd4e6; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 9px; }
.umenu { position: relative; }
.umenu summary { list-style: none; display: flex; align-items: center; gap: 9px;
  cursor: pointer; padding: 5px 9px 5px 6px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--card); }
.umenu summary::-webkit-details-marker { display: none; }
.umenu[open] .chev { transform: rotate(180deg); }
.umenu-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; }
.umenu-initial { background: var(--accent-soft); color: #ddd6fe;
  font-size: 12px; font-weight: 700; }
.umenu-copy { display: flex; flex-direction: column; line-height: 1.15; }
.umenu-copy strong { font-size: 12.5px; max-width: 140px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.umenu-tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em;
  color: #a5b4fc; }
.umenu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 7px; display: flex; flex-direction: column; z-index: 30;
  box-shadow: 0 18px 40px rgba(3,4,10,.55); }
.umenu-panel a { padding: 8px 10px; border-radius: 8px; font-size: 13.5px;
  color: #d7dbea; }
.umenu-panel a:hover { background: var(--card-hover); }
.umenu-head { display: flex; gap: 9px; align-items: center; padding: 7px 8px 10px;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 5px; }
.umenu-head .umenu-avatar { width: 34px; height: 34px; }
.umenu-head strong { display: block; font-size: 13px; }
.umenu-head .muted { font-size: 11px; }
.umenu-out { color: var(--danger) !important; }

/* ---------------------------------------------------------------- Anmeldung */
body.login-body { padding: 40px 20px; }
.login-wrap { width: 100%; max-width: 390px; display: flex; flex-direction: column;
  gap: 14px; align-items: stretch; }
.login-wrap .landing-brand { justify-content: center; margin-bottom: 4px; }
.login { max-width: none; gap: 10px; }
.login h1 { font-size: 22px; }
.login-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.login-form input { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font: inherit; }
.dc-btn { display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #5865F2; color: #fff; border-radius: 10px; padding: 11px 13px;
  font-weight: 600; font-size: 14px; }
.dc-btn:hover { filter: brightness(1.08); }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--muted);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px;
  background: var(--line); }
.login-hint { font-size: 12.5px; color: #9aa2bd; line-height: 1.55;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 11px 12px; }
.login-hint code { background: rgba(148,163,184,.14); padding: 1px 5px;
  border-radius: 5px; font-size: 11.5px; }
.login-back { text-align: center; color: var(--muted); font-size: 12.5px; }
.login-back:hover { color: var(--text); }
.login-foot { text-align: center; color: #5c6480; font-size: 11.5px; }

/* -------------------------------------------------------------- Serverwahl */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px; margin: 10px 0 26px; }
.server-card { display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: .16s ease; }
.server-card:hover { border-color: #3b4260; transform: translateY(-2px);
  background: var(--card-hover); }
.server-card-avatar { width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #7c3aed, #22d3ee); display: grid;
  place-items: center; font-weight: 700; }
.server-card-copy { display: flex; flex-direction: column; min-width: 0; }
.server-card-copy strong { font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.server-card-copy .muted { font-size: 11.5px; }
.server-card-go { margin-left: auto; color: #a5b4fc; font-size: 12.5px; }
.server-empty { display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start; grid-column: 1 / -1; }

@media (max-width: 760px) {
  .landing-links { display: none; }
  .landing { padding: 0 18px 40px; }
  .landing-hero { padding: 46px 0 12px; }
  .landing-nav { gap: 12px; }
  .landing-actions .landing-ghost { display: none; }
}

/* --------------------------------------------------------- Kreativstudio */
.creative-card { display: flex; flex-direction: column; gap: 14px; }
.creative-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; }
.creative-head .state { white-space: nowrap; }
.creative-form { display: flex; flex-direction: column; gap: 10px; }
.creative-form textarea { width: 100%; min-height: 74px; resize: vertical;
  background: var(--bg-soft); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font: inherit; }
.creative-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.creative-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12px;
  color: var(--muted); }
.creative-row select { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font: inherit; }
.creative-result { display: grid; grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  background: var(--bg-soft); align-items: start; }
.creative-preview { width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: #05060b; display: block; }
.creative-result-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.creative-prompt { color: #c7cde2; font-size: 13.5px; }
.creative-apply { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.creative-apply form { display: flex; gap: 6px; align-items: center; margin: 0; }
.creative-apply input { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; width: 130px; }
.creative-apply .creative-emoji { width: 52px; text-align: center; }
.creative-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px; }
.creative-thumb { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line);
  border-radius: 11px; padding: 6px; background: var(--bg-soft); }
.creative-thumb:hover { border-color: #3b4260; background: var(--card-hover); }
.creative-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.creative-thumb span { font-size: 10.5px; color: var(--muted); text-align: center; }
@media (max-width: 720px) {
  .creative-result { grid-template-columns: 1fr; }
}

/* Sprachwahl (Startseite, Login, Panel-Kopfzeile) */
.lang-switch { display: inline-flex; align-items: center; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  background-color: rgba(255, 255, 255, .06); color: inherit;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  padding: 7px 26px 7px 11px; font: inherit; font-size: 13px;
  line-height: 1.2; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 12px top 52%, right 8px top 52%;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
.lang-switch select:hover { border-color: rgba(255, 255, 255, .32); }
.lang-switch select:focus-visible { outline: 2px solid #5865f2; outline-offset: 2px; }
.login-lang { display: flex; justify-content: center; margin: 2px 0 14px; }
