/* Design im Stil des Ventura-Logos: tiefes Schwarz, violette Leuchtkanten, Chrom-Schrägen.
   Die Akzentfarbe kommt aus config.js (--accent); alle anderen Violett-Töne werden daraus abgeleitet. */
:root {
  --accent: #b45be0;
  --accent-2: color-mix(in srgb, var(--accent) 55%, #3b1480); /* tiefes Violett (Schatten-Seite des V) */
  --accent-hot: color-mix(in srgb, var(--accent) 62%, #ff5ce1); /* Magenta-Glanz */
  --accent-text: color-mix(in srgb, var(--accent) 55%, #ffffff); /* gut lesbares Hell-Violett für Text */
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 48%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 50%, transparent);
  --grad: linear-gradient(135deg, var(--accent-2), var(--accent) 58%, var(--accent-hot));
  --bg: #07050d;
  --panel: rgba(16, 11, 27, 0.74);
  --panel-2: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #efeaf7;
  --muted: #a39cb3;
  --dim: #70697f;
  --green: #34c38f;
  --amber: #f5a524;
  --red: #ef4b50;
  --radius: 14px;
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 40%, #222) transparent; }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 8% 6%, color-mix(in srgb, var(--accent) 27%, transparent), transparent 62%),
    radial-gradient(ellipse 50% 42% at 94% 58%, color-mix(in srgb, var(--accent-2) 34%, transparent), transparent 64%),
    radial-gradient(ellipse 45% 30% at 52% 108%, color-mix(in srgb, var(--accent-hot) 16%, transparent), transparent 70%),
    var(--bg); }
/* Chrom-Schrägen wie die Flächen des V */
.bg::before { content: ''; position: absolute; inset: -25%;
  background:
    linear-gradient(64deg, transparent 37%, rgba(255, 255, 255, 0.028) 37.2%, transparent 45%),
    linear-gradient(-64deg, transparent 55%, color-mix(in srgb, var(--accent) 15%, transparent) 55.2%, transparent 64%); }
/* Logo als sehr leises Wasserzeichen */
.bg::after { content: ''; position: absolute; right: -10vmin; bottom: -12vmin; width: 92vmin; height: 92vmin; background: url('/img/logo.webp') center / contain no-repeat; opacity: 0.06; filter: blur(1.5px); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.ico { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
img.round { border-radius: 50%; object-fit: cover; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 20px 24px 16px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: 0.2px; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 35%, transparent)); }
.userchip { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 5px; border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(10px); border-radius: 999px; }
.userchip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #1a1226; }
.userchip span { font-weight: 600; font-size: 13px; }
.userchip button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); }
.userchip button:hover { background: var(--accent-soft); color: var(--accent-text); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; align-items: start; }
.sidebar { position: sticky; top: 16px; display: grid; gap: 12px; }
.server-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.server-card img, .server-card .ph { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-text); font-weight: 800; object-fit: cover; }
.server-card div { min-width: 0; line-height: 1.2; }
.server-card strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-card small { color: var(--muted); font-size: 11px; }
.navlist { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -28px var(--accent-glow); }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; position: relative; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.nav-item .ico { font-size: 16px; }
.nav-item:hover { color: var(--text); background: var(--panel-2); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent) 7%, transparent)); border-color: var(--accent-line); box-shadow: inset 2px 0 0 var(--accent-hot), 0 0 22px -6px var(--accent-glow); }
.nav-item.active .ico { color: var(--accent-text); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.nav-item.active::after { content: ''; position: absolute; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hot); box-shadow: 0 0 8px var(--accent-hot); }

/* ---------- Karte / Seitenkopf ---------- */
.card { position: relative; border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), transparent 28%), var(--panel); backdrop-filter: blur(12px); padding: 22px 22px 26px; min-height: 240px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 90px -45px var(--accent-glow); }
.card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.ico-box { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--accent) 60%, #fff); background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 50%, #12081f), color-mix(in srgb, var(--accent-2) 55%, #0a0612)); color: #fff; font-size: 19px; flex: none;
  box-shadow: 0 0 20px -2px var(--accent-glow), inset 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.card-head h1 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: 0.1px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.page { display: grid; gap: 18px; }

.section-title { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: var(--accent-text); }
.section-title .ico { filter: drop-shadow(0 0 5px var(--accent-glow)); }
.section-title .count { color: var(--muted); font-weight: 600; }
.section-title .spacer { flex: 1; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.28); }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px; border: 1px solid transparent; color: var(--muted); font-weight: 600; font-size: 12.5px; background: transparent; }
.tab:hover { color: var(--text); }
.tab.active { color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 36%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); border-color: var(--accent-line); box-shadow: 0 0 16px -6px var(--accent-glow); }
.tab small { color: var(--dim); font-weight: 600; }
.tab.active small { color: var(--accent-text); }

/* ---------- Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 14px 16px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, transparent), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.tile small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.tile strong { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(180deg, #fff 30%, var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qcard { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-2); transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; text-align: left; width: 100%; }
.qcard:hover { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: 0 0 26px -8px var(--accent-glow); }
.qcard .ico-s { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 40%, #12081f), color-mix(in srgb, var(--accent-2) 45%, #0a0612)); border: 1px solid var(--accent-line); color: #fff; font-size: 16px; flex: none; }
.qcard div { flex: 1; min-width: 0; }
.qcard strong { display: block; font-size: 13.5px; }
.qcard span { color: var(--muted); font-size: 12px; }
.qcard > .ico { color: var(--dim); }
.qcard:hover > .ico { color: var(--accent-text); }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 11.5px; color: var(--dim); }
.req { color: var(--accent-hot); }
.input, .select, .textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 18px -6px var(--accent-glow); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a39cb3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select option, .select optgroup { background: #120c1d; color: var(--text); }
.textarea { min-height: 130px; resize: vertical; }
.counter { text-align: right; font-size: 11px; color: var(--dim); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form { display: grid; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); cursor: pointer; font-weight: 600; font-size: 13px; user-select: none; }
.check:hover { border-color: var(--line-2); }
.check input { appearance: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, 0.45); display: grid; place-items: center; flex: none; margin: 0; cursor: pointer; }
.check input:checked { background: var(--grad); border-color: color-mix(in srgb, var(--accent) 60%, #fff); box-shadow: 0 0 10px -2px var(--accent-glow); }
.check input:checked::after { content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input:disabled { opacity: 0.45; }
.check small { color: var(--dim); font-weight: 400; font-size: 11.5px; }
.checkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.group-box { padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 5%, transparent), rgba(255, 255, 255, 0.02)); display: grid; gap: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 700; font-size: 13px; transition: filter 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--grad); border-color: color-mix(in srgb, var(--accent) 55%, #fff); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); box-shadow: 0 0 22px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 0 28px -4px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-green { background: rgba(52, 195, 143, 0.16); border-color: rgba(52, 195, 143, 0.5); color: #b7f5dc; }
.btn-red { background: rgba(239, 75, 80, 0.15); border-color: rgba(239, 75, 80, 0.5); color: #ffc4c6; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-icon { padding: 6px; width: 30px; height: 30px; border-radius: 8px; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Akkordeon / Listen ---------- */
.acc { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-2); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.acc + .acc { margin-top: 10px; }
.acc.open { border-color: var(--accent-line); box-shadow: 0 0 30px -14px var(--accent-glow); }
.acc-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; background: transparent; border: 0; text-align: left; font-weight: 700; font-size: 13.5px; }
.acc-head:hover { background: var(--panel-2); }
.acc-head .fico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 35%, #12081f), color-mix(in srgb, var(--accent-2) 40%, #0a0612)); color: #fff; border: 1px solid var(--accent-line); overflow: hidden; flex: none; }
.acc-head .fico img { width: 100%; height: 100%; object-fit: cover; }
.acc-head .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-head .chev { color: var(--dim); transition: transform 0.2s; }
.acc.open .chev { transform: rotate(180deg); color: var(--accent-text); }
.acc-body { display: none; padding: 4px 16px 18px; border-top: 1px solid var(--line); }
.acc.open .acc-body { display: block; padding-top: 16px; }
.badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); background: var(--panel-2); }
.badge.red { color: #ffb3b5; border-color: rgba(239, 75, 80, 0.45); background: rgba(239, 75, 80, 0.12); }
.badge.amber { color: #ffd98a; border-color: rgba(245, 165, 36, 0.45); background: rgba(245, 165, 36, 0.12); }
.badge.green { color: #a8f0d3; border-color: rgba(52, 195, 143, 0.45); background: rgba(52, 195, 143, 0.12); }
.badge.blue { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }

.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); }
.row .grow { flex: 1; min-width: 0; }
.row strong { font-size: 13.5px; }
.row small { color: var(--muted); }
.empty { padding: 34px 12px; text-align: center; color: var(--dim); font-size: 13px; }
.empty .ico { font-size: 28px; display: block; margin: 0 auto 8px; color: var(--accent); opacity: 0.55; }

/* Kategorien */
.catgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--panel-2); font-weight: 600; font-size: 13px; }
.cat .ico-s { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); }
.cat .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat .mini { display: flex; gap: 2px; }
.mini button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent; color: var(--dim); }
.mini button:hover { background: var(--accent-soft); color: var(--accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 12px; font-weight: 600; }
.chip.img { padding-left: 4px; }
.chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.chip button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 0; background: transparent; color: var(--dim); font-size: 12px; }
.chip button:hover { color: var(--accent-text); background: var(--accent-soft); }

.chip.tpl { padding: 4px 10px 4px 8px; cursor: pointer; font-weight: 500; color: var(--muted); }
.chip.tpl:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
.chip.tpl .ico { color: var(--accent-text); }

/* Start-Widgets */
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.widget { align-content: start; }
.row.slim { padding: 9px 12px; }
.row.click { cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.row.click:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.empty.small { padding: 18px 8px; font-size: 12.5px; }

/* Schnellsuche (Strg+K) */
.palette { width: min(560px, 100%); border: 1px solid var(--accent-line); border-radius: 18px; background: #0e0916; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 80px -25px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08); overflow: hidden; animation: rise 0.15s ease; }
.palette input { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: none; font-size: 15px; }
.palette-list { max-height: 360px; overflow: auto; padding: 6px; }
.palette-group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.6px; }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.palette-item .ico { color: var(--accent-text); font-size: 16px; }
.palette-item small { margin-left: auto; color: var(--dim); }
.palette-item.sel { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 6%, transparent)); box-shadow: inset 2px 0 0 var(--accent-hot); }
.palette-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px; }
kbd { padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--panel-2); font: 600 11px ui-monospace, Consolas, monospace; color: var(--muted); }
.searchbtn { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 12.5px; backdrop-filter: blur(10px); }
.searchbtn:hover { color: var(--text); border-color: var(--accent-line); }
.topright { display: flex; align-items: center; gap: 10px; }

/* Status mit freiwilligem Ende (Aufbauschutz usw.) */
.flag { display: grid; gap: 10px; }
.flag-opts { display: grid; gap: 10px; margin-left: 10px; padding: 12px 14px; border-left: 2px solid var(--accent-line); background: rgba(0, 0, 0, 0.22); border-radius: 0 12px 12px 0; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) 190px 170px; gap: 10px; }

/* Member-Auswahl */
.picker { position: relative; }
.picker .chips { margin-bottom: 8px; }
.picker-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow: auto; border: 1px solid var(--accent-line); border-radius: 12px; background: #120c1d; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 30px -10px var(--accent-glow); padding: 4px; }
.picker-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.picker-item:hover, .picker-item.sel { background: var(--accent-soft); }
.picker-item img { width: 26px; height: 26px; border-radius: 50%; }
.picker-item small { color: var(--muted); display: block; line-height: 1.1; }
.picker-note { padding: 10px; color: var(--dim); font-size: 12.5px; }

/* Bild */
.imgfield { display: flex; align-items: center; gap: 14px; }
.imgbox { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 12px; border: 1px dashed var(--accent-line); background: rgba(0, 0, 0, 0.35); color: var(--accent-text); overflow: hidden; font-size: 22px; flex: none; }
.imgbox img { width: 100%; height: 100%; object-fit: cover; }

/* Tabellen / Logs */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); overflow-x: auto; }
.leaders { display: flex; flex-wrap: wrap; gap: 6px; }
.leaders .chip { padding: 3px 9px 3px 4px; }

/* Vorschau (Discord-Optik) */
.preview { border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; background: #1b1c20; display: grid; gap: 8px; font-size: 13.5px; color: #dcddde; }
.preview h4 { margin: 0; font-size: 16px; }
.preview .sep { height: 1px; background: rgba(255, 255, 255, 0.08); }
.preview small { color: #8e9297; }
.preview-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pre { white-space: pre-wrap; word-break: break-word; }

/* Hinweise */
.notice { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); font-size: 13px; }
.notice .ico { font-size: 18px; margin-top: 1px; color: var(--accent-text); }
.notice.warn { border-color: rgba(245, 165, 36, 0.45); background: rgba(245, 165, 36, 0.08); }
.notice.warn .ico { color: var(--amber); }
.notice.err { border-color: rgba(239, 75, 80, 0.5); background: rgba(239, 75, 80, 0.09); }
.notice.err .ico { color: var(--red); }
.notice.ok { border-color: rgba(52, 195, 143, 0.4); background: rgba(52, 195, 143, 0.08); }
.notice.ok .ico { color: var(--green); }
.notice ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.notice a { color: var(--accent-text); font-weight: 700; }

/* Toast + Modal */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--accent-line); background: #130d1f; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6), 0 0 26px -10px var(--accent-glow); animation: rise 0.2s ease; font-size: 13px; }
.toast.ok { border-color: rgba(52, 195, 143, 0.5); }
.toast.err { border-color: rgba(239, 75, 80, 0.6); }
.toast.warn { border-color: rgba(245, 165, 36, 0.55); }
.toast .ico { font-size: 17px; margin-top: 1px; }
.toast.ok .ico { color: var(--green); }
.toast.err .ico { color: var(--red); }
.toast.warn .ico { color: var(--amber); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(3, 1, 8, 0.72); backdrop-filter: blur(4px); display: grid; place-items: start center; padding: 6vh 16px; overflow: auto; }
.modal { width: min(640px, 100%); border: 1px solid var(--accent-line); border-radius: 20px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 25%), #0e0916; padding: 20px 22px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 70px -25px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08); animation: rise 0.18s ease; }
.modal.small { width: min(440px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 17px; flex: 1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Login */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(430px, 100%); text-align: center; padding: 30px 28px 30px; border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 28%), var(--panel); backdrop-filter: blur(14px); display: grid; gap: 14px; justify-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 50px 110px -50px var(--accent-glow); }
.login .logo { width: 190px; height: 190px; margin: -26px 0 -14px; object-fit: contain; filter: drop-shadow(0 0 26px var(--accent-glow)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.login h1 { margin: 0; font-size: 26px; font-weight: 800; }
.login h1 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login p { margin: 0; color: var(--muted); }
.login img.avatar { width: 64px; height: 64px; border-radius: 50%; }
.login .btn { width: 100%; padding: 12px; font-size: 14px; }
.login .err { color: #ffb3b5; font-size: 13px; }
.testmode { position: fixed; left: 50%; top: 0; transform: translateX(-50%); z-index: 120; padding: 3px 14px; border-radius: 0 0 10px 10px; background: var(--amber); color: #1a1100; font-size: 11.5px; font-weight: 800; }

/* Footer */
.footer { max-width: 1200px; margin: 0 auto; padding: 22px 24px 34px; color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.loading { display: grid; place-items: center; padding: 60px 0; color: var(--muted); }
.loading .spin { width: 26px; height: 26px; border: 3px solid var(--line-2); border-top-color: var(--accent-hot); border-radius: 50%; animation: spin 0.8s linear infinite; }

@media (prefers-reduced-motion: reduce) { .login .logo, .loading .spin, .btn .spin { animation: none; } }

/* Mobil */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .navlist { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widgets { grid-template-columns: 1fr; }
  .bg::after { width: 120vmin; height: 120vmin; }
}
@media (max-width: 600px) {
  .row2, .row3, .quick, .checkgrid, .catgrid, .filters { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .topbar { padding: 14px 16px 12px; }
  .layout { padding: 0 12px 30px; }
  .userchip span { display: none; }
  .searchbtn span, .searchbtn kbd { display: none; }
  .searchbtn { padding: 9px; }
  .brand { font-size: 16px; }
  .brand img { width: 38px; height: 38px; }
}

/* Einrichtung pruefen (Config) */
.checks { display: grid; gap: 12px; }
.checks:empty { display: none; }
.check-group { display: grid; gap: 6px; }
.check-group > .label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.check-group .row .badge { align-self: flex-start; margin-top: 1px; }
