:root {
  --bg: #0b0910;
  --bg-1: #110e18;
  --bg-2: #18131f;
  --bg-3: #211a2b;
  --line: #241d2f;
  --line-2: #33293f;
  --text: #f1edf6;
  --muted: #a198ae;
  --dim: #6e6580;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --pink: #d946ef;
  --accent-bg: rgba(139, 92, 246, 0.14);
  --grad: linear-gradient(135deg, #8b5cf6 0%, #c026d3 100%);
  --grad-text: linear-gradient(90deg, #c4b5fd 0%, #e879f9 60%, #f0abfc 100%);
  --ok: #3dd68c;
  --danger: #f2555a;
  --warn: #ffb224;
  --r: 8px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
/* Schmale, dunkle Scrollbalken statt der grauen Standard-Balken */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--dim); }
/* Live-Demo auf der Startseite: Seitenleiste ohne Balken */
html.embed .sidebar, html.embed .sidebar * { scrollbar-width: none; }
html.embed .sidebar::-webkit-scrollbar, html.embed .sidebar *::-webkit-scrollbar { display: none; }
body { background: var(--bg); color: var(--text); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg.i { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
::selection { background: var(--accent); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--r);
  font-weight: 500; font-size: 14px; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 4px 18px rgba(168, 85, 247, .3), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { filter: brightness(1.12); box-shadow: 0 6px 26px rgba(192, 38, 211, .45), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.secondary { background: var(--bg-2); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--bg-3); }
.btn.ghost { color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--bg-2); }
.btn.danger { color: var(--danger); border-color: var(--line-2); }
.btn.danger:hover { background: rgba(242, 85, 90, .1); }
.btn.lg { height: 42px; padding: 0 18px; font-size: 15px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Logo: ES-Bild mit lila Rand und Glow */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.logo-mark { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; flex-shrink: 0; display: block;
  border: 1px solid rgba(167, 139, 250, .45); box-shadow: 0 0 16px rgba(139, 92, 246, .45);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.08); box-shadow: 0 0 24px rgba(139, 92, 246, .7); }
.logo-text span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons: Druck-Effekt, Glanz und Welle beim Klick (Welle kommt aus js/fx.js) */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .15s, border-color .15s, color .15s, transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, filter .15s; -webkit-tap-highlight-color: transparent; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.95); transition-duration: .06s; }
.btn.primary::before { content: ""; position: absolute; inset: 0; z-index: -1; width: 50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-150%) skewX(-20deg); }
.btn.primary:hover::before { animation: btn-shine .75s ease; }
@keyframes btn-shine { to { transform: translateX(300%) skewX(-20deg); } }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: ripple .55s ease-out forwards; pointer-events: none; z-index: -1; }
.btn.ghost .ripple, .btn.secondary .ripple { background: rgba(167, 139, 250, .35); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .btn.primary:hover::before { animation: none; }
  .btn, .btn:hover, .btn:active { transform: none; }
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: inline-block; flex-shrink: 0; }
.dot.on { background: var(--ok); }
.dot.err { background: var(--danger); }
