/* ==========================================================================
   Vanguard Design System
   Eine Datei für Landingpage, Dashboard und Editoren.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: dark;

  --bg: #08090e;
  --bg-2: #0c0e15;
  --surface: #11131c;
  --surface-2: #161925;
  --surface-3: #1d2130;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);

  --text: #eceef6;
  --text-2: #b7bccd;
  --muted: #8a90a5;
  --faint: #5d6377;

  --accent: #7c6cff;
  --accent-2: #a69bff;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --accent-ring: rgba(124, 108, 255, 0.45);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --pink: #f472b6;
  --blue: #60a5fa;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.9);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-ring); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.86em; }
code { background: var(--surface-3); border: 1px solid var(--border); padding: 0.1em 0.4em; border-radius: 6px; color: var(--accent-2); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent-2); }
.gradient-text {
  background: linear-gradient(100deg, #fff 10%, var(--accent-2) 55%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --------------------------------------------------------------------------
   Buttons, Badges, Chips
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-3);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 550; font-size: 14px; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:hover { background: color-mix(in srgb, var(--btn-bg) 80%, #fff 8%); border-color: rgba(255, 255, 255, 0.2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: 0.55; pointer-events: none; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-primary {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-border: transparent;
  background: linear-gradient(180deg, #8d7fff, var(--accent));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -10px rgba(124, 108, 255, 0.7);
}
.btn-primary:hover { background: linear-gradient(180deg, #9a8dff, #8473ff); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 34px -10px rgba(124, 108, 255, 0.85); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: transparent; color: var(--text); }
.btn-outline { --btn-bg: transparent; }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: #fecaca; --btn-border: rgba(248, 113, 113, 0.35); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); border-color: rgba(248, 113, 113, 0.55); }
.btn-success { --btn-bg: var(--teal-soft); --btn-fg: #99f6e4; --btn-border: rgba(45, 212, 191, 0.35); }
.btn .spinner { width: 14px; height: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 550; letter-spacing: 0.01em;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2);
}
.badge-accent { background: var(--accent-soft); border-color: rgba(124, 108, 255, 0.35); color: #cfc8ff; }
.badge-success { background: var(--teal-soft); border-color: rgba(45, 212, 191, 0.3); color: #99f6e4; }
.badge-danger { background: var(--danger-soft); border-color: rgba(248, 113, 113, 0.3); color: #fecaca; }
.badge-warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, 0.3); color: #fde68a; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.dot-live { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Öffentliche Seiten: Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(8, 9, 14, 0.72);
  border-bottom-color: var(--border);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.site-nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand small { font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; margin-left: 2px; }
.site-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-links a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color 0.2s, background 0.2s; }
.site-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); }
.lang-switch a { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.lang-switch a.is-active { background: var(--surface-3); color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; margin: 0; background: rgba(8, 9, 14, 0.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
  .site-links.is-open { display: flex; }
  .site-links a { padding: 12px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .site-actions .hide-sm { display: none; }
}

/* --------------------------------------------------------------------------
   Landingpage
   -------------------------------------------------------------------------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.aurora::before, .aurora::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
}
.aurora::before { width: 720px; height: 520px; left: 50%; top: -260px; transform: translateX(-60%); background: radial-gradient(closest-side, rgba(124, 108, 255, 0.55), transparent); }
.aurora::after { width: 520px; height: 420px; left: 58%; top: -120px; background: radial-gradient(closest-side, rgba(45, 212, 191, 0.25), transparent); }
.grid-lines {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 40px; text-align: center; isolation: isolate; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(17, 19, 28, 0.7); font-size: 13px; color: var(--text-2); backdrop-filter: blur(6px); }
.hero-eyebrow .badge { height: 22px; font-size: 11px; }
.hero h1 { font-size: clamp(40px, 7.2vw, 80px); line-height: 1.02; letter-spacing: -0.035em; margin: 26px auto 22px; max-width: 14ch; }
.hero-lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--text-2); max-width: 620px; margin: 0 auto; line-height: 1.65; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .icon { color: var(--teal); width: 16px; height: 16px; }

/* Dashboard-Vorschau im Hero */
.preview-wrap { position: relative; margin: 64px auto 0; max-width: 1040px; perspective: 1800px; }
.preview-wrap::before { content: ''; position: absolute; inset: 10% 8% -6%; background: radial-gradient(closest-side, rgba(124, 108, 255, 0.35), transparent); filter: blur(40px); z-index: -1; }
.preview {
  border-radius: var(--radius-xl); border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(22, 25, 37, 0.92), rgba(12, 14, 21, 0.96));
  box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
  transform: rotateX(8deg) translateY(0); transform-origin: top center;
  transition: transform 0.9s var(--ease);
}
.preview.is-visible { transform: rotateX(0deg); }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.preview-bar .url { margin-left: 14px; flex: 1; max-width: 360px; height: 26px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--border); display: flex; align-items: center; padding: 0 10px; gap: 6px; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.preview-body { display: grid; grid-template-columns: 210px 1fr; min-height: 380px; }
.preview-side { border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.preview-side .p-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.preview-side .p-item.is-active { background: var(--accent-soft); color: #d9d4ff; }
.preview-side .p-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 4px; font-weight: 600; }
.preview-main { padding: 22px; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.p-stat { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.p-stat b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 4px; }
.p-stat span { font-size: 12px; color: var(--muted); }
.p-card { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-module { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.p-module .p-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.p-module .p-txt { flex: 1; min-width: 0; }
.p-module .p-txt b { display: block; font-size: 13px; font-weight: 600; }
.p-module .p-txt span { font-size: 12px; color: var(--muted); }
.p-switch { width: 34px; height: 20px; border-radius: 999px; background: var(--surface-3); position: relative; flex-shrink: 0; }
.p-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #6b7186; transition: 0.3s; }
.p-switch.on { background: var(--accent); }
.p-switch.on::after { left: 17px; background: #fff; }

@media (max-width: 760px) {
  .preview-body { grid-template-columns: 1fr; }
  .preview-side { display: none; }
  .preview-main { grid-template-columns: 1fr 1fr; padding: 16px; }
  .preview-main .p-stat:nth-child(3) { display: none; }
  .p-card { grid-column: span 2; grid-template-columns: 1fr; }
}

/* Kennzahlen */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 80px auto 0; max-width: 960px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.stats-strip > div { background: var(--bg-2); padding: 22px 20px; text-align: center; }
.stats-strip b { display: block; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.stats-strip span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .stats-strip { grid-template-columns: 1fr 1fr; } }

/* Sektionen */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature {
  grid-column: span 2; position: relative; overflow: hidden;
  padding: 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(17, 19, 28, 0.6));
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.feature::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 108, 255, 0.12), transparent 60%);
}
.feature:hover { border-color: var(--border-strong); }
.feature:hover::before { opacity: 1; }
.feature.wide { grid-column: span 3; }
.feature.xl { grid-column: span 4; }
.feature-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(124, 108, 255, 0.25); }
.feature-icon.teal { background: var(--teal-soft); color: var(--teal); border-color: rgba(45, 212, 191, 0.25); }
.feature-icon.pink { background: rgba(244, 114, 182, 0.12); color: var(--pink); border-color: rgba(244, 114, 182, 0.25); }
.feature-icon.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(251, 191, 36, 0.25); }
.feature-icon.blue { background: rgba(96, 165, 250, 0.12); color: var(--blue); border-color: rgba(96, 165, 250, 0.25); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14.5px; }
.feature ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.feature li .icon { color: var(--teal); width: 16px; height: 16px; margin-top: 3px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 960px) { .feature, .feature.wide, .feature.xl { grid-column: span 3; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .feature, .feature.wide, .feature.xl { grid-column: auto; } }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-2); position: relative; }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); display: block; margin-bottom: 22px; letter-spacing: 0.1em; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Split-Sektion */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; }
.split p { color: var(--text-2); margin-top: 16px; font-size: 16px; }
.checklist { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); }
.checklist .icon { color: var(--teal); margin-top: 3px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Discord-Embed-Mockup */
.discord-card { border-radius: var(--radius-lg); background: #1e1f22; border: 1px solid rgba(255, 255, 255, 0.06); padding: 18px; box-shadow: var(--shadow-lg); font-family: 'gg sans', var(--font); }
.dc-msg { display: flex; gap: 14px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #8d7fff, #5b4cf0); display: grid; place-items: center; }
.dc-avatar img { width: 26px; height: 26px; }
.dc-head { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.dc-head b { font-weight: 600; color: #fff; }
.dc-bot { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; letter-spacing: 0.02em; }
.dc-time { font-size: 12px; color: #949ba4; }
.dc-embed { margin-top: 8px; border-left: 4px solid var(--accent); background: #2b2d31; border-radius: 4px; padding: 12px 16px; display: grid; gap: 6px; max-width: 460px; }
.dc-embed .dc-title { font-weight: 700; color: #fff; font-size: 15px; }
.dc-embed .dc-text { color: #dbdee1; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.dc-embed .dc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 4px; }
.dc-embed .dc-fields b { display: block; font-size: 12.5px; color: #fff; }
.dc-embed .dc-fields span { font-size: 13px; color: #dbdee1; }
.dc-embed .dc-foot { font-size: 12px; color: #949ba4; margin-top: 4px; }
.dc-buttons { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dc-btn { height: 32px; padding: 0 14px; border-radius: 4px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; color: #fff; background: #4e5058; }
.dc-btn.primary { background: #5865f2; }
.dc-btn.danger { background: #da373c; }
.dc-mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--border-strong); background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.3s var(--ease); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); }

/* CTA */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl); border: 1px solid var(--border-strong);
  padding: clamp(40px, 7vw, 72px) var(--gutter); text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(124, 108, 255, 0.3), transparent 70%), var(--bg-2);
}
.cta-band h2 { font-size: clamp(28px, 4.5vw, 46px); letter-spacing: -0.03em; }
.cta-band p { color: var(--text-2); margin: 14px auto 0; max-width: 520px; }
.cta-band .hero-cta { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .brand { color: var(--text); margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Inhaltsseiten (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.prose-page { padding: 56px 0 40px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.prose .meta { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 8px; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(166, 155, 255, 0.4); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .card { margin: 24px 0; }

/* --------------------------------------------------------------------------
   Karten & Formulare (gemeinsam)
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; }
.card-head + .card-body { border-top: 1px solid var(--border); }
.card-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(124, 108, 255, 0.22); }
.card-icon.teal { background: var(--teal-soft); color: var(--teal); border-color: rgba(45, 212, 191, 0.22); }
.card-icon.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(248, 113, 113, 0.22); }
.card-icon.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(251, 191, 36, 0.22); }
.card-icon.pink { background: rgba(244, 114, 182, 0.12); color: var(--pink); border-color: rgba(244, 114, 182, 0.22); }
.card-icon.blue { background: rgba(96, 165, 250, 0.12); color: var(--blue); border-color: rgba(96, 165, 250, 0.22); }
.card-title { flex: 1; min-width: 0; }
.card-title h3 { font-family: var(--font); font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.card-title p { color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.card-body { padding: 20px 22px 22px; display: grid; gap: 18px; }
.card-body[hidden] { display: none; }
.card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-foot .save-state { margin-right: auto; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.card-foot .save-state.is-dirty { color: var(--warn); }

.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.label { font-size: 13px; font-weight: 550; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 10px;
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg); }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.select {
  appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a90a5' stroke-width='2' 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 { background: var(--surface-2); color: var(--text); }
.textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.input-mono { font-family: var(--font-mono); font-size: 13px; }

.switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background 0.25s, border-color 0.25s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #7a8096; transition: transform 0.25s var(--ease), background 0.25s; }
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.switch input:disabled + .track { opacity: 0.5; }

.inline-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.inline-toggle b { font-size: 14px; font-weight: 550; display: block; }
.inline-toggle span { font-size: 12.5px; color: var(--muted); }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; background: var(--accent-soft); border: 1px solid rgba(124, 108, 255, 0.25); color: #d6d1ff; }
.notice .icon { margin-top: 2px; color: var(--accent-2); }
.notice.warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, 0.25); color: #fde68a; }
.notice.warn .icon { color: var(--warn); }
.notice.danger { background: var(--danger-soft); border-color: rgba(248, 113, 113, 0.25); color: #fecaca; }
.notice.danger .icon { color: var(--danger); }
.notice a { text-decoration: underline; text-underline-offset: 2px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { width: 28px; height: 28px; margin: 0 auto 12px; color: var(--faint); }

/* Tabellen */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr.is-link:hover { background: rgba(255, 255, 255, 0.025); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); }

/* Toasts */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; width: min(360px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in 0.35s var(--ease); }
.toast .icon { margin-top: 2px; }
.toast.success .icon { color: var(--teal); }
.toast.error .icon { color: var(--danger); }
.toast.is-leaving { animation: toast-out 0.25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(4, 5, 8, 0.72); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { width: min(480px, 100%); padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); animation: toast-in 0.3s var(--ease); }
.modal-box h3 { font-size: 20px; margin-bottom: 10px; }
.modal-box p, .modal-box li { color: var(--text-2); font-size: 14.5px; }
.modal-box ul { padding-left: 18px; margin: 12px 0; display: grid; gap: 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* --------------------------------------------------------------------------
   App-Shell (Dashboard)
   -------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--border); background: var(--bg-2);
  display: flex; flex-direction: column; padding: 18px 14px;
}
.sidebar .brand { padding: 4px 8px 18px; }
.guild-switch { position: relative; margin-bottom: 14px; }
.guild-switch select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.guild-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s; }
.guild-switch:hover .guild-card { border-color: var(--border-strong); }
.guild-card img, .guild-avatar { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--surface-3); }
.guild-avatar { display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-2); }
.guild-card .g-txt { flex: 1; min-width: 0; }
.guild-card b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-card span { font-size: 12px; color: var(--muted); }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding: 16px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: background 0.15s, color 0.15s; position: relative; }
.nav-link .icon { color: var(--muted); transition: color 0.15s; }
.nav-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-link.is-active { background: var(--accent-soft); color: #e3dfff; }
.nav-link.is-active .icon { color: var(--accent-2); }
.nav-link .nav-badge { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }
.nav-link.danger, .nav-link.danger .icon { color: #fca5a5; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); }
.user-chip b { display: block; font-size: 13.5px; font-weight: 600; }
.user-chip span { font-size: 12px; color: var(--muted); }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 clamp(16px, 3vw, 36px); border-bottom: 1px solid var(--border); background: rgba(8, 9, 14, 0.8); backdrop-filter: blur(14px); }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.topbar .crumbs b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: clamp(20px, 3.5vw, 40px) clamp(16px, 3vw, 36px) 80px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.025em; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 18px; align-items: start; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat-grid .stat b { font-size: 22px; } }
.stat { padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.stat .s-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.stat b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
.stat small { color: var(--muted); font-size: 12.5px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.module-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s var(--ease); }
.module-tile:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.module-tile .m-txt { flex: 1; min-width: 0; }
.module-tile b { display: block; font-size: 14px; font-weight: 600; }
.module-tile span { font-size: 12.5px; color: var(--muted); }
.section-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 30px 0 12px; font-family: var(--font); }

.app-overlay { display: none; }
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform 0.3s var(--ease); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .app-overlay { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.55); }
  .menu-btn { display: inline-flex; }
}

/* Welcome-Vorschau im Dashboard */
.preview-box { border-radius: 12px; border: 1px dashed var(--border-strong); padding: 14px; background: var(--bg-2); }
.preview-box .preview-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }

/* Case-Transkript */
.transcript { display: grid; gap: 2px; padding: 8px; max-height: 70vh; overflow-y: auto; }
.t-msg { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.t-msg:hover { background: rgba(255, 255, 255, 0.02); }
.t-msg img { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--surface-3); }
.t-msg .t-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.t-msg .t-head b { font-size: 14px; }
.t-msg .t-head time { font-size: 12px; color: var(--faint); }
.t-msg .t-text { color: var(--text-2); font-size: 14px; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.t-msg .t-att { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--accent-2); }
.t-msg.is-bot { background: rgba(124, 108, 255, 0.05); }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.meter { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 0.8s var(--ease); }

/* --------------------------------------------------------------------------
   Zentrierte Seiten (Serverauswahl, Verify, Editoren, Data-Center)
   -------------------------------------------------------------------------- */
.center-page { position: relative; isolation: isolate; min-height: calc(100vh - 68px); padding: clamp(32px, 6vw, 72px) 0 64px; }
.center-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.center-head h1 { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -0.03em; }
.center-head p { color: var(--text-2); margin-top: 12px; }

.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
.guild-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; transition: border-color 0.2s, transform 0.25s var(--ease), background 0.2s; width: 100%; }
.guild-tile:hover { border-color: var(--accent-ring); transform: translateY(-2px); background: var(--surface-2); }
.guild-tile img, .guild-tile .guild-avatar { width: 48px; height: 48px; border-radius: 14px; }
.guild-tile .g-txt { flex: 1; min-width: 0; }
.guild-tile b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-tile span { font-size: 12.5px; color: var(--muted); }
.guild-tile .icon { color: var(--muted); transition: transform 0.2s, color 0.2s; }
.guild-tile:hover .icon { color: var(--accent-2); transform: translateX(3px); }
.guild-tile.is-invite { border-style: dashed; background: transparent; }
.guild-tile.is-invite img, .guild-tile.is-invite .guild-avatar { filter: grayscale(0.8); opacity: 0.7; }

.narrow { max-width: 480px; margin: 0 auto; }
.wide { max-width: 1000px; margin: 0 auto; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 880px) { .editor-grid { grid-template-columns: 1fr; } }

.color-field { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); }
.color-field input[type='color'] { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; }
.color-field input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type='color']::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color-field .mono { color: var(--text-2); flex: 1; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 260px; overflow-y: auto; padding: 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.combo-list[hidden] { display: none; }
.combo-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14px; }
.combo-item:hover, .combo-item:focus-visible { background: var(--accent-soft); }
.combo-item img { width: 24px; height: 24px; object-fit: contain; }
.role-name.is-gradient { background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.role-emoji { width: 20px; height: 20px; object-fit: contain; display: inline-block; vertical-align: -4px; margin-left: 4px; }
.role-emoji[hidden] { display: none; }

.list-box { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.list-row img { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); }
.list-row .l-txt { flex: 1; min-width: 0; }
.list-row b { display: block; font-size: 14px; font-weight: 550; }
.list-row span { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.verify-card { padding: 28px; text-align: center; }
.verify-user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); text-align: left; margin: 20px 0; }
.verify-user img { width: 44px; height: 44px; border-radius: 50%; }
.turnstile-slot { display: flex; justify-content: center; min-height: 70px; margin: 8px 0 16px; }
.result-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(45, 212, 191, 0.3); }
.result-icon .icon { width: 30px; height: 30px; }
.result-icon.error { background: var(--danger-soft); color: var(--danger); border-color: rgba(248, 113, 113, 0.3); }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.error-page .code { font-family: var(--font-display); font-size: clamp(72px, 14vw, 140px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.error-page p { color: var(--text-2); margin: 12px 0 28px; }

/* Kleine Helfer */
.hero-cta.start { justify-content: flex-start; }
.section.pt-0 { padding-top: 0; }
.dc-embed.danger { border-left-color: var(--danger); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 18px; }

/* ==========================================================================
   Daten-Seiten (Risiko, Strafen) und Editoren
   ========================================================================== */
.card-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.tab { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--muted); text-decoration: none; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface-3); color: var(--text); }
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-bar .input { width: 220px; height: 32px; font-size: 13px; }
.input-xs { width: 84px; height: 32px; padding: 0 8px; font-size: 13px; }
.row-tight { display: flex; align-items: center; gap: 8px; }
.meter-success > i { background: var(--teal); }
.meter-warn > i { background: var(--warn, #fbbf24); }
.meter-danger > i { background: var(--danger); }
.table td.actions { text-align: right; white-space: nowrap; }
.table td.actions .btn + .btn { margin-left: 4px; }
.nowrap { white-space: nowrap; }
.small { font-size: 12px; }
.reason-cell { max-width: 320px; color: var(--text-2); overflow-wrap: anywhere; }

/* Reaction-Roles */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: color-mix(in srgb, var(--role) 14%, transparent); border: 1px solid color-mix(in srgb, var(--role) 40%, transparent); color: var(--text); }
.role-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--role); }
.rr-emoji { display: inline-block; width: 18px; height: 18px; font-size: 16px; line-height: 18px; text-align: center; vertical-align: -3px; object-fit: contain; }
.rr-editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.rr-main { display: grid; gap: 18px; min-width: 0; }
.rr-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.rr-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 1100px) { .rr-editor { grid-template-columns: 1fr; } .rr-side { position: static; } }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-2); transition: border-color .15s, background .15s; }
.choice b { font-size: 14px; font-weight: 600; }
.choice small { font-size: 12.5px; color: var(--muted); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-ring); }
.color-field { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); }
.color-field input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.rr-items { display: grid; gap: 10px; margin-bottom: 14px; }
.rr-item { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.rr-item-main { display: grid; grid-template-columns: 42px minmax(0, 1.2fr) minmax(0, 1fr) 120px auto; gap: 8px; align-items: center; }
.rr-editor:not([data-style="buttons"]) .rr-bstyle { display: none; }
.rr-editor:not([data-style="buttons"]) .rr-item-main { grid-template-columns: 42px minmax(0, 1.2fr) minmax(0, 1fr) auto; }
.rr-editor[data-style="buttons"] .rr-desc { display: none; }
.rr-item-tools { display: flex; gap: 2px; }
.rr-item-tools .btn { width: 32px; padding: 0; justify-content: center; }
@media (max-width: 720px) {
  .rr-item-main, .rr-editor:not([data-style="buttons"]) .rr-item-main { grid-template-columns: 42px minmax(0, 1fr); }
  .rr-item-main > .input, .rr-item-main > .rr-bstyle, .rr-item-tools { grid-column: 1 / -1; }
}
.emoji-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 20px; }
.emoji-btn:hover { border-color: var(--accent); }
.emoji-btn .rr-emoji { width: 22px; height: 22px; font-size: 20px; line-height: 22px; }
.emoji-pop { position: absolute; z-index: 160; width: 320px; max-width: calc(100vw - 16px); padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); display: grid; gap: 8px; }
.emoji-pop[hidden] { display: none; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 240px; overflow-y: auto; }
.emoji-head { grid-column: 1 / -1; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 6px 2px 2px; }
.emoji-cell { aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 20px; color: var(--muted); }
.emoji-cell:hover { background: var(--surface-3); }
.emoji-cell img { width: 24px; height: 24px; object-fit: contain; }
.dc-body { min-width: 0; flex: 1; }
.dc-btn { gap: 6px; }
.dc-btn.secondary { background: #4e5058; }
.dc-btn.success { background: #248046; }
.dc-select { margin-top: 8px; max-width: 460px; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 4px; background: #1e1f22; border: 1px solid #111214; color: #949ba4; font-size: 14px; }
.dc-menu { max-width: 460px; margin-top: 4px; border-radius: 4px; background: #2b2d31; border: 1px solid #111214; overflow: hidden; }
.dc-option { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: #dbdee1; font-size: 14px; }
.dc-option + .dc-option { border-top: 1px solid #1f2023; }
.dc-option small { display: block; color: #949ba4; font-size: 12px; }
.dc-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.dc-reaction { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 8px; background: #2b2d31; border: 1px solid transparent; color: #b5bac1; font-size: 13px; }
.dc-sub { color: #949ba4; font-size: 12.5px; }
.notice[hidden] { display: none; }

/* Server-Builder */
.sb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .sb-layout { grid-template-columns: 1fr; } }
.sb-side { display: grid; gap: 18px; }
.sb-tree-card { position: relative; }
.sb-stats { font-size: 13px; color: var(--muted); }
.sb-search { width: 200px; height: 32px; font-size: 13px; }
@media (max-width: 640px) { .sb-search { width: 100%; } }
.sb-tree { padding: 10px 10px 14px; display: grid; gap: 4px; }
.sb-group { border-radius: 10px; }
.sb-group[hidden] { display: none; }
.sb-cat { display: flex; align-items: center; gap: 6px; padding: 10px 6px 4px; border-radius: 8px; }
.sb-cat[draggable=true] { cursor: grab; }
.sb-cat-toggle { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 0; text-align: left; }
.sb-cat-toggle:hover { color: var(--text); }
.sb-cat-toggle .icon { transition: transform .15s; flex-shrink: 0; }
.sb-cat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-group.is-collapsed .sb-cat-toggle > .icon:first-child { transform: rotate(-90deg); }
.sb-group.is-collapsed .sb-list { display: none; }
.sb-tree.is-searching .sb-group.is-collapsed .sb-list { display: grid; }
.sb-count { font-size: 11px; color: var(--faint); font-family: var(--font-mono); }
.sb-list { display: grid; gap: 2px; min-height: 8px; padding: 2px 0 2px 8px; }
.sb-ch { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; background: transparent; transition: background .12s; }
.sb-ch[hidden] { display: none; }
.sb-ch:hover { background: var(--surface-3); color: var(--text); }
.sb-ch[draggable=true] { cursor: grab; }
.sb-ch.is-dragging, .sb-group.is-dragging { opacity: .45; outline: 1px dashed var(--accent); }
.sb-grip { color: var(--faint); opacity: 0; flex-shrink: 0; }
.sb-ch:hover .sb-grip { opacity: 1; }
.sb-type { color: var(--muted); flex-shrink: 0; }
.sb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-badges { display: flex; gap: 4px; align-items: center; }
.sb-badge { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--muted); }
.sb-badge .icon { width: 12px; height: 12px; }
.sb-badge.accent { background: var(--accent-soft); color: #cfc8ff; }
.sb-badge.danger { background: var(--danger-soft); color: #fecaca; }
.sb-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.sb-ch:hover .sb-tools, .sb-cat:hover .sb-tools, .sb-ch:focus-within .sb-tools, .sb-cat:focus-within .sb-tools { opacity: 1; }
@media (hover: none) { .sb-tools { opacity: 1; } }
.sb-icon-btn { width: 28px; height: 28px; padding: 0; justify-content: center; }
.sb-empty { padding: 8px; font-size: 13px; color: var(--faint); font-style: italic; }
.sb-orderbar { position: sticky; bottom: 12px; margin: 0 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--accent); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; }
.sb-orderbar[hidden] { display: none; }
.sb-roles { display: grid; gap: 2px; padding: 8px 10px 12px; max-height: 520px; overflow-y: auto; }
.sb-role { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.sb-role:hover { background: var(--surface-3); }
.sb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--role); flex-shrink: 0; }
.sb-role-txt { flex: 1; min-width: 0; }
.sb-role-txt b { display: block; font-size: 14px; font-weight: 550; color: var(--role); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-role-txt span { font-size: 12px; color: var(--muted); }
.sb-templates { display: grid; gap: 8px; margin-top: 12px; }
.sb-tpl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.sb-tpl > div:first-child { min-width: 0; }
.sb-tpl b { display: block; font-size: 14px; }
.sb-tpl span { display: block; font-size: 12.5px; color: var(--text-2); }
.sb-tpl small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.sb-plan { max-height: 280px; overflow-y: auto; margin: 0; padding: 8px 12px; list-style: none; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); display: grid; gap: 4px; font-size: 13.5px; }
.sb-plan li::before { content: '+ '; color: var(--teal); font-weight: 700; }
.sb-plan li.is-cat { font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; margin-top: 6px; }
.sb-color { width: 64px; height: 36px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-2); padding: 2px; cursor: pointer; }
.modal-box .stack { gap: 14px; }
.modal-box { max-height: calc(100vh - 40px); overflow-y: auto; }
.btn[hidden] { display: none; }
.sb-tpl .row { flex-wrap: nowrap; gap: 4px; flex-shrink: 0; }

/* ===================================================================
   Info-Seiten: Einladen, Doku, Status
   =================================================================== */
.pt-0 { padding-top: 0; }
.info-hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); text-align: center; overflow: hidden; }
.info-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.03em; max-width: 820px; margin: 18px auto 14px; }
.info-hero .hero-lead { margin: 0 auto; }
.info-logo { display: block; margin: 0 auto 18px; width: 88px; height: 88px; filter: drop-shadow(0 12px 34px rgba(124, 108, 255, 0.45)); }
.info-sub { margin-top: clamp(56px, 8vw, 96px); }

.invite-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; max-width: 980px; margin: 0 auto; }
.invite-option { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.invite-option h2 { font-size: 22px; margin: 4px 0 0; }
.invite-option p { color: var(--text-2); margin: 0; flex: 1; }
.invite-option.is-recommended { border-color: var(--accent-ring); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%); box-shadow: 0 24px 60px -30px rgba(124, 108, 255, 0.6); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; max-width: 1080px; margin: 0 auto; }
.perm { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); }
.perm > .icon { color: var(--teal); margin-top: 2px; }
.perm b { display: block; font-size: 14.5px; }
.perm span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) { .invite-grid { grid-template-columns: 1fr; } }

.docs-search { position: relative; max-width: 520px; margin: 26px auto 0; }
.docs-search > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.docs-search .input { height: 48px; padding-left: 40px; border-radius: 12px; font-size: 15px; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.docs-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-toc-in { display: grid; gap: 2px; font-size: 14px; }
.docs-toc b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.docs-toc .toc-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin: 14px 0 4px; }
.docs-toc a { color: var(--text-2); padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.docs-toc a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.docs-toc a.is-active { color: var(--text); border-left-color: var(--accent); background: var(--accent-soft); }
.docs-body { display: grid; gap: 16px; min-width: 0; }
.docs-h { font-size: 26px; margin: 28px 0 0; scroll-margin-top: 90px; }
.docs-block { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); scroll-margin-top: 90px; }
.docs-block > h2 { font-size: 22px; margin: 0 0 6px; }
.docs-steps { padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); margin: 12px 0 18px; }
.docs-mod-head { display: flex; gap: 14px; align-items: flex-start; }
.docs-mod-head > div:nth-child(2) { flex: 1; min-width: 0; }
.docs-mod-head h3 { font-size: 19px; margin: 2px 0 4px; }
.docs-mod-head p { margin: 0; font-size: 14.5px; }
.docs-cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.docs-cards a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); height: 100%; transition: border-color .2s, transform .2s; }
.docs-cards a:hover { border-color: var(--accent-ring); text-decoration: none; transform: translateY(-1px); }
.docs-cards b { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; }
.docs-cards span { grid-column: 1; color: var(--muted); font-size: 13px; line-height: 1.45; }
.docs-cards a > .icon { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); }
.docs-cmds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.cmd-chip code, .cmd code, .docs-block code, .notice code { font-family: var(--font-mono); font-size: 12.5px; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text); }
.cmd-chip:hover code { background: var(--accent-soft); color: var(--accent-2); }
.cmd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.cmd { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); scroll-margin-top: 90px; }
.cmd:target, .docs-block:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmd-head code { font-size: 14px; font-weight: 600; background: none; padding: 0; color: var(--accent-2); }
.cmd p { color: var(--text-2); font-size: 14px; margin: 8px 0 0; }
.cmd-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cmd code.req::after, .cmd code.opt.req::after { content: '*'; color: var(--accent-2); margin-left: 2px; }
.cmd-subs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.cmd-subs li { font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.cmd-subs li > span { flex-basis: 100%; color: var(--muted); }
.cmd-link { display: inline-block; margin-top: 10px; font-size: 13px; }
.docs-empty { text-align: center; color: var(--muted); padding: 40px 0; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { display: none; }
  .docs-mod-head { flex-wrap: wrap; }
  .docs-mod-head .btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) { .cmd-list { grid-template-columns: 1fr; } .docs-block { padding: 18px; } }

.status-banner { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 12px 20px; border-radius: 999px; border: 1px solid; font-size: 15px; }
.status-banner.is-ok { color: #5eead4; border-color: rgba(45, 212, 191, 0.35); background: var(--teal-soft); }
.status-banner.is-down { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); background: var(--danger-soft); }
.status-stats .stat span { color: var(--muted); font-size: 13px; }
.status-card { margin-bottom: 16px; }
.h-sm { font-size: 17px; margin: 0; }
.status-comps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.status-comps li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.status-comps .card-icon { width: 34px; height: 34px; }
.status-uptime-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.status-pcts { display: flex; gap: 18px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.status-pcts b { color: var(--text); margin-left: 4px; }
.uptime-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; height: 44px; }
.uptime-bars i { border-radius: 4px; background: var(--surface-3); }
.uptime-bars i.u-good { background: #2dd4bf; }
.uptime-bars i.u-warn { background: #fbbf24; }
.uptime-bars i.u-bad { background: #f87171; }
.uptime-bars i:hover { opacity: .8; }
.uptime-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.hint.center { text-align: center; }
@media (max-width: 560px) {
  .status-comps li { grid-template-columns: auto 1fr auto; }
  .status-comps li > .text-muted { display: none; }
  .uptime-bars { gap: 2px; height: 36px; }
}

/* Ziel eines Doku-Links im Dashboard hervorheben */
.card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); scroll-margin-top: 90px; }

/* ==========================================================================
   Luna Interactive (Startseite und Footer)
   ========================================================================== */
.studio-band {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-xl); border: 1px solid rgba(244, 213, 141, 0.28); color: inherit; text-decoration: none;
  background: radial-gradient(520px 260px at 12% 50%, rgba(244, 213, 141, 0.18), transparent 70%), radial-gradient(600px 300px at 90% 0%, rgba(52, 216, 232, 0.14), transparent 70%), var(--bg-2);
  transition: border-color .25s, transform .25s var(--ease);
}
.studio-band:hover { border-color: rgba(244, 213, 141, 0.55); transform: translateY(-2px); }
.studio-band .eyebrow { color: #f4d58d; margin-bottom: 8px; }
.studio-band h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.03em; }
.studio-band p { color: var(--text-2); margin-top: 10px; max-width: 620px; }
.studio-mark { width: 88px; height: 88px; filter: drop-shadow(0 8px 28px rgba(244, 213, 141, 0.35)); }
.studio-cta { white-space: nowrap; }
@media (max-width: 760px) { .studio-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } .studio-band p { margin-inline: auto; } }
.studio-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
.studio-link:hover { color: #f4d58d; }

/* ==========================================================================
   Ankündigungen (Embed-Builder)
   ========================================================================== */
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.ann-meta { display: grid; gap: 8px; }
.ann-meta > div:not(.notice) { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ann-schedule { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .ann-schedule { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ann-schedule { grid-template-columns: 1fr; } }
.ann-interval { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
.weekday-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.weekday-pick label { position: relative; cursor: pointer; }
.weekday-pick input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-pick span { display: grid; place-items: center; min-width: 46px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.weekday-pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.weekday-pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-ring); }
.ann-fields { display: grid; gap: 10px; margin: 8px 0 10px; }
.ann-field { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); }
.ann-field-tools { display: flex; align-items: center; gap: 4px; }
.ann-field-tools .check { margin-right: auto; }
[data-embed-body].is-off { opacity: .45; }
.ann-editor [hidden], .appeal-card [hidden] { display: none !important; }

/* Discord-Vorschau: zusätzliche Elemente */
.dc-content { color: #dbdee1; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.ann-embed { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.ann-embed-main { display: grid; gap: 6px; min-width: 0; }
.ann-embed .dc-image, .ann-embed .dc-foot { grid-column: 1 / -1; }
.dc-author { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff; }
.dc-author-icon, .dc-foot-icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.dc-foot-icon { width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; }
.dc-thumb { width: 72px; height: 72px; border-radius: 4px; object-fit: cover; grid-row: 1; grid-column: 2; }
.dc-image { width: 100%; max-height: 260px; border-radius: 4px; object-fit: cover; margin-top: 6px; }
.dc-img-ph { background: repeating-linear-gradient(45deg, #313338, #313338 8px, #2b2d31 8px, #2b2d31 16px); min-height: 72px; }
.dc-image.dc-img-ph { height: 140px; }
.dc-link { color: #00a8fc; }
.dc-code { font-family: var(--font-mono); font-size: 13px; background: #1e1f22; border-radius: 3px; padding: 1px 4px; }
.dc-h1 { font-size: 22px; font-weight: 700; color: #fff; }
.dc-h2 { font-size: 19px; font-weight: 700; color: #fff; }
.dc-h3 { font-size: 16px; font-weight: 700; color: #fff; }
.dc-quote { border-left: 4px solid #4e5058; padding-left: 10px; }
.dc-empty { color: #949ba4; font-size: 14px; font-style: italic; padding: 6px 0; }
.ann-fields-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin-top: 4px; }
.ann-fcell { grid-column: 1 / -1; min-width: 0; }
.ann-fcell.inline { grid-column: auto; }
.ann-fcell b { display: block; font-size: 13.5px; color: #fff; margin-bottom: 2px; }
.ann-fcell span { font-size: 14px; color: #dbdee1; white-space: pre-wrap; word-break: break-word; }

/* ==========================================================================
   Ban-Einspruch
   ========================================================================== */
.appeal-card { padding: 28px; }
.appeal-guild { display: flex; align-items: center; gap: 14px; }
.appeal-guild img, .appeal-guild .guild-avatar { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
.appeal-guild h1, .appeal-h1 { font-size: 26px; letter-spacing: -0.02em; }
.appeal-intro { color: var(--text-2); margin-bottom: 16px; white-space: pre-wrap; }
.appeal-form { display: grid; gap: 16px; margin-top: 20px; }
.appeal-status { text-align: center; padding: 12px 0 4px; }
.appeal-status h2 { font-size: 22px; }
.appeal-status p { margin-top: 8px; }
.appeal-status .notice { text-align: left; margin-top: 18px; }
.appeal-list { display: grid; gap: 8px; margin-top: 12px; }
.appeal-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); color: inherit; text-decoration: none; }
.appeal-item:hover { border-color: var(--accent); }
.appeal-item b { margin-right: auto; }
.appeal-item img { width: 34px; height: 34px; border-radius: 10px; }
.appeal-detail { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .appeal-detail { grid-template-columns: 1fr; } }
.appeal-qa { padding: 14px 0; border-bottom: 1px solid var(--border); }
.appeal-qa p { margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.user-cell.big img { width: 48px; height: 48px; }
.clamp { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.error-text { color: var(--danger); min-height: 1em; }
.tabs + .card { margin-top: 16px; }
.notice + .tabs { margin-top: 16px; }
.ann-field .textarea { min-height: 64px; height: auto; }
.appeal-detail .card-head > .badge { margin-left: auto; }

/* ==========================================================================
   Aufgeräumtes Dashboard: Gruppen, Hilfe, Erweitert, Sprungleiste
   ========================================================================== */
.nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: 8px; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { color: var(--text-2); }
.nav-group > summary .icon { transition: transform .2s var(--ease); opacity: .7; }
.nav-group:not([open]) > summary .icon { transform: rotate(-90deg); }
.nav-group > summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.nav-group:not([open]) > summary::after { content: none; }

.card-help { margin: 0 20px; border-top: 1px dashed var(--border); padding: 10px 0 2px; font-size: 13.5px; }
.card-help > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 550; }
.card-help > summary::-webkit-details-marker { display: none; }
.card-help[open] > summary { margin-bottom: 8px; }
.card-help p { color: var(--text-2); line-height: 1.6; }
.card-help a { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 6px; font-size: 13px; }
.card-help + .card-body { border-top: 0; }

.adv-fields { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
.adv-fields > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 13.5px; font-weight: 550; color: var(--text-2); }
.adv-fields > summary::-webkit-details-marker { display: none; }
.adv-fields > summary:hover { color: var(--text); }
.adv-count { margin-left: auto; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.adv-body { display: grid; gap: 16px; padding: 4px 14px 14px; }

.jump-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.jump-strip a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font-size: 13px; text-decoration: none; }
.jump-strip a:hover { border-color: var(--accent); color: var(--text); }
.jump-strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); }
.jump-strip .dot.on { background: var(--teal); border-color: transparent; }

.docs-help { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.docs-layout.in-app { grid-template-columns: 210px minmax(0, 1fr); }
.docs-layout.in-app .docs-toc { top: 84px; }
.docs-search.in-app { margin: 0 0 20px; max-width: 520px; }
@media (max-width: 900px) { .docs-layout.in-app { grid-template-columns: 1fr; } .docs-layout.in-app .docs-toc { display: none; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.notice .btn-row { margin-top: 10px; }

/* Server-Builder: Rechte */
.mt-1 { margin-top: 8px; }
.sb-perms { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.sb-perms > summary { cursor: pointer; font-weight: 600; }
.sb-perm-group { margin-top: 12px; }
.sb-perm-group.danger .label { color: var(--danger); }
.sb-perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; }
.sb-perm { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.sb-perm input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.sb-perm.is-locked { opacity: .45; cursor: not-allowed; }
.sb-ow { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
.sb-ow > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.sb-ow > summary b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-ow-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sb-tri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; margin-top: 10px; }
.sb-tri { display: flex; align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 13px; color: var(--text); background: var(--surface-2, rgba(255,255,255,.03)); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.sb-tri-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--muted); }
.sb-tri[data-state="allow"] { border-color: rgba(52, 211, 153, .5); }
.sb-tri[data-state="allow"] .sb-tri-dot { background: #34d399; border-color: #34d399; }
.sb-tri[data-state="deny"] { border-color: rgba(248, 113, 113, .5); }
.sb-tri[data-state="deny"] .sb-tri-dot { background: var(--danger); border-color: var(--danger); }
.sb-tri.is-locked { opacity: .45; cursor: not-allowed; }

/* System-Seite */
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.ok { color: #2dd4bf; background: rgba(45, 212, 191, .08); }
.status-pill.down { color: var(--danger); background: var(--danger-soft); }
.mini-uptime { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mini-uptime div { display: flex; flex-direction: column; gap: 2px; }
.mini-uptime span { font-size: 12px; color: var(--muted); }
.mini-uptime b { font-size: 18px; font-variant-numeric: tabular-nums; }
.uptime-bars.mini { height: 28px; gap: 3px; }
.code-bars { display: flex; flex-direction: column; gap: 10px; }
.code-bar { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; align-items: center; gap: 10px; font-size: 13px; }
.code-bar .meter { margin: 0; }
.code-bar b { font-size: 12px; color: var(--muted); }
.luna-card-mark { width: 40px; height: 40px; flex: none; }
