/* KxEx Bot-Builder – passend zum Dashboard: dunkel, Glas, Discord-Blau */
:root {
  --bg: #0a0f1e; --card: rgba(255, 255, 255, .045); --card2: rgba(255, 255, 255, .07); --line: rgba(170, 190, 255, .13); --line2: rgba(170, 190, 255, .24);
  --text: #e8ecf8; --muted: #98a2c3; --blurple: #5865f2; --violet: #7c3aed; --green: #23a55a; --red: #f23f43; --yellow: #f0b232;
  --grad: linear-gradient(135deg, #5865f2, #7c3aed); --r: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--text); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg);
  background-image: radial-gradient(900px 600px at 0% -10%, rgba(88, 101, 242, .22), transparent 60%), radial-gradient(800px 600px at 110% 10%, rgba(168, 85, 247, .16), transparent 60%), radial-gradient(700px 500px at 50% 120%, rgba(14, 165, 233, .1), transparent 60%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
a { color: #8b9cff; }
button, input, select, textarea { font: inherit; color: inherit; }
code { padding: .05rem .35rem; font-size: .85em; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.bb-boot { display: grid; place-items: center; gap: 1rem; min-height: 100vh; color: var(--muted); }
.bb-boot span { width: 34px; height: 34px; border: 3px solid var(--line2); border-top-color: var(--blurple); border-radius: 50%; animation: bb-spin .8s linear infinite; }
.bb-boot.is-err { color: #ffb4bd; }
@keyframes bb-spin { to { transform: rotate(360deg); } }

/* Kopf */
.bb-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem; padding: .75rem 1.2rem; padding-top: max(.75rem, env(safe-area-inset-top)); background: rgba(10, 15, 30, .72); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.bb-back { padding: .4rem .75rem; color: var(--muted); font-size: .85rem; font-weight: 650; text-decoration: none; border-radius: 10px; border: 1px solid var(--line); transition: color .2s, background .2s; }
.bb-back:hover { color: var(--text); background: var(--card2); }
.bb-logo { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.bb-logo img { width: 30px; height: 30px; }
.bb-top-r { margin-left: auto; }

.bb-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.4rem; max-width: 1320px; margin: 0 auto; padding: 1.4rem 1.2rem 6rem; }
.bb-side { position: sticky; top: 76px; align-self: start; display: grid; gap: .4rem; }
.bb-side-h { display: flex; justify-content: space-between; padding: 0 .4rem .3rem; color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.bb-bot { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .7rem; text-align: left; border-radius: 14px; background: transparent; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.bb-bot:hover { background: var(--card); }
.bb-bot.is-on { background: var(--card2); border-color: var(--line2); box-shadow: 0 6px 22px rgba(0, 0, 0, .25); }
.bb-bot:active { transform: scale(.98); }
.bb-bot > span:last-child { display: grid; min-width: 0; }
.bb-bot b { overflow: hidden; font-size: .92rem; white-space: nowrap; text-overflow: ellipsis; }
.bb-bot small { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .76rem; }
.bb-bot.is-new { border: 1px dashed var(--line2); }
.bb-av { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.bb-av.is-letter { display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--c, var(--blurple)); background-image: linear-gradient(135deg, rgba(255, 255, 255, .25), transparent); }
.bb-av.is-plus { display: grid; place-items: center; font-size: 1.2rem; color: var(--muted); background: var(--card2); }
.bb-av.is-lg { width: 64px; height: 64px; font-size: 1.6rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.bb-av.is-xl { width: 80px; height: 80px; font-size: 2rem; }
.bb-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #80848e; }
.bb-dot.is-on { background: var(--green); box-shadow: 0 0 0 3px rgba(35, 165, 90, .2); }
.bb-dot.is-wait { background: var(--yellow); animation: bb-pulse 1.2s ease-in-out infinite; }
.bb-dot.is-err { background: var(--red); }
@keyframes bb-pulse { 50% { opacity: .35; } }

/* Knöpfe */
.bb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .95rem; font-size: .86rem; font-weight: 650; white-space: nowrap; text-decoration: none; color: var(--text); border-radius: 11px; background: var(--card2); border: 1px solid var(--line2); cursor: pointer; transition: background .2s, border-color .2s, transform .12s, opacity .2s; }
.bb-btn:hover { background: rgba(255, 255, 255, .11); }
.bb-btn:active { transform: scale(.97); }
.bb-btn:disabled { opacity: .55; cursor: wait; }
.bb-btn.is-primary { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 20px rgba(88, 101, 242, .35); }
.bb-btn.is-primary:hover { filter: brightness(1.08); }
.bb-btn.is-danger { color: #fff; background: linear-gradient(135deg, #f23f43, #c2410c); border-color: transparent; }
.bb-btn.is-ghost { background: transparent; }
.bb-btn.is-icon { width: 38px; padding: .5rem 0; }
.bb-btn.is-sm { width: 30px; height: 30px; padding: 0; font-size: .78rem; }
.bb-btn.is-wide { width: 100%; }
.bb-btn.is-add { width: 100%; color: var(--muted); border-style: dashed; background: transparent; }
.bb-btn.is-add:hover { color: var(--text); border-color: var(--blurple); }

/* Bot-Kopf */
.bb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.bb-head-l { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.bb-head h1 { margin: 0; font-size: 1.45rem; line-height: 1.2; }
.bb-head p { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }
.bb-head-r { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-left: auto; }
.bb-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .12rem .55rem; font-size: .76rem; font-weight: 700; border-radius: 99px; background: var(--card2); }
.bb-pill.is-on { color: #7ee2a3; background: rgba(35, 165, 90, .14); }
.bb-pill.is-err { color: #ffb4bd; background: rgba(242, 63, 67, .14); }
.bb-pill.is-wait { color: #ffd77a; background: rgba(240, 178, 50, .14); }
.bb-gsel { display: flex; align-items: center; gap: .3rem; padding: 0 .2rem 0 .65rem; border-radius: 11px; background: var(--card2); border: 1px solid var(--line2); }
.bb-gsel select { max-width: 210px; padding: .5rem .3rem; background: transparent; border: 0; outline: none; cursor: pointer; }
.bb-power { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; font-size: .85rem; font-weight: 700; border-radius: 99px; background: var(--card2); border: 1px solid var(--line2); cursor: pointer; }
.bb-power i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #4e5370; transition: background .25s; }
.bb-power i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.bb-power.is-on i { background: var(--green); }
.bb-power.is-on i::after { transform: translateX(16px); }

.bb-setup:empty { display: none; }
.bb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .9rem; }
.bb-step { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: .3rem .7rem; padding: .9rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.bb-step > span { display: grid; place-items: center; width: 28px; height: 28px; font-size: .85rem; font-weight: 800; border-radius: 50%; background: var(--grad); }
.bb-step.is-done { opacity: .6; }
.bb-step.is-done > span { background: var(--green); }
.bb-step b { font-size: .92rem; }
.bb-step p { margin: .1rem 0 0; color: var(--muted); font-size: .8rem; }
.bb-step > .bb-btn { grid-column: 1 / -1; margin-top: .3rem; }
.bb-warn { margin: .8rem 0 0; padding: .65rem .85rem; font-size: .85rem; border-radius: 12px; background: rgba(240, 178, 50, .1); border: 1px solid rgba(240, 178, 50, .3); }
.bb-warn.is-err { background: rgba(242, 63, 67, .1); border-color: rgba(242, 63, 67, .35); }
.bb-note { margin: .2rem 0 .8rem; padding: .6rem .8rem; color: var(--muted); font-size: .82rem; border-radius: 12px; background: rgba(88, 101, 242, .08); border: 1px solid rgba(88, 101, 242, .22); }
.bb-note b { color: var(--text); }
.bb-err { margin: .6rem 0 0; color: #ffb4bd; font-size: .85rem; }

/* Reiter */
.bb-tabs { display: flex; gap: .3rem; margin: 1.1rem 0 1rem; padding: .3rem; overflow-x: auto; border-radius: 14px; background: var(--card); border: 1px solid var(--line); scrollbar-width: none; }
.bb-tabs::-webkit-scrollbar { display: none; }
.bb-tabs button { flex: none; padding: .55rem .95rem; color: var(--muted); font-size: .86rem; font-weight: 650; border-radius: 10px; background: none; border: 0; cursor: pointer; transition: color .2s, background .25s; }
.bb-tabs button:hover { color: var(--text); }
.bb-tabs button.is-on { color: #fff; background: var(--grad); box-shadow: 0 4px 16px rgba(88, 101, 242, .35); }

/* Module */
.bb-cat { margin: 1.2rem 0 .55rem; color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.bb-cat:first-child { margin-top: 0; }
.bb-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: .65rem; }
.bb-mod { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .9rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; }
.bb-mod:hover { background: var(--card2); border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.bb-mod.is-on { border-color: rgba(88, 101, 242, .45); background: linear-gradient(135deg, rgba(88, 101, 242, .12), rgba(124, 58, 237, .06)); }
.bb-mod-ic { display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.4rem; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.bb-mod.is-on .bb-mod-ic { background: var(--grad); border-color: transparent; box-shadow: 0 6px 18px rgba(88, 101, 242, .35); }
.bb-mod-t { display: grid; gap: .1rem; }
.bb-mod-t b { font-size: .95rem; }
.bb-mod-t small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.bb-mod-miss, .bb-mod-tag { justify-self: start; margin-top: .25rem; padding: .08rem .45rem; font-size: .7rem; font-style: normal; font-weight: 700; border-radius: 99px; }
.bb-mod-miss { color: #ffd77a; background: rgba(240, 178, 50, .14); }
.bb-mod-tag { color: var(--muted); background: var(--card2); }
.bb-sw { position: relative; display: inline-block; flex: none; width: 44px; height: 26px; cursor: pointer; }
.bb-sw input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bb-sw i { position: absolute; inset: 0; border-radius: 99px; background: #4e5370; transition: background .25s; }
.bb-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.bb-sw input:checked + i { background: var(--green); }
.bb-sw input:checked + i::after { transform: translateX(18px); }
.bb-sw input:focus-visible + i { outline: 2px solid var(--blurple); outline-offset: 2px; }

/* Vorlagen */
.bb-hero { padding: 2.4rem 1.5rem 1.6rem; text-align: center; }
.bb-hero-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; font-size: 2.6rem; border-radius: 26px; background: var(--grad); box-shadow: 0 16px 44px rgba(88, 101, 242, .45); animation: bb-float 4s ease-in-out infinite; }
@keyframes bb-float { 50% { transform: translateY(-6px); } }
.bb-hero h1 { margin: 1rem 0 .4rem; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.bb-hero p { max-width: 560px; margin: 0 auto; color: var(--muted); }
.bb-h2 { margin: 1rem 0 .8rem; font-size: 1.05rem; }
.bb-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: .75rem; }
.bb-preset { position: relative; display: grid; align-content: start; gap: .3rem; padding: 1.1rem; overflow: hidden; text-align: left; border-radius: 18px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .18s, border-color .2s, box-shadow .2s; }
.bb-preset::before { content: ""; position: absolute; top: -50px; right: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--c, var(--blurple)); opacity: .14; filter: blur(4px); transition: opacity .25s; }
.bb-preset:hover { transform: translateY(-3px); border-color: var(--c, var(--line2)); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.bb-preset:hover::before { opacity: .26; }
.bb-preset-ic { font-size: 1.8rem; }
.bb-preset b { font-size: 1rem; }
.bb-preset small { color: var(--muted); font-size: .8rem; }
.bb-preset-m { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .4rem; }
.bb-preset-m i { display: grid; place-items: center; width: 26px; height: 26px; font-size: .8rem; font-style: normal; border-radius: 8px; background: var(--card2); }
.bb-preset.is-empty { border-style: dashed; }

/* Editor (Seitenleiste rechts, auf dem Handy von unten) */
.bb-ed { position: fixed; inset: 0; z-index: 100; }
.bb-ed-bg { position: absolute; inset: 0; background: rgba(5, 8, 18, .55); opacity: 0; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: opacity .25s; }
.bb-ed-box { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(1040px, 100%); background: #0e1426; border-left: 1px solid var(--line2); box-shadow: -20px 0 60px rgba(0, 0, 0, .45); transform: translateX(40px); opacity: 0; transition: transform .3s cubic-bezier(.2, .9, .3, 1), opacity .25s; }
.bb-ed.is-on .bb-ed-bg { opacity: 1; }
.bb-ed.is-on .bb-ed-box { transform: none; opacity: 1; }
.bb-ed-box > header { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.bb-ed-box > header > div { display: grid; flex: 1; min-width: 0; }
.bb-ed-box > header small { color: var(--muted); font-size: .8rem; }
.bb-ed-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); flex: 1; min-height: 0; }
.bb-ed-form { padding: 1.1rem 1.2rem 6rem; overflow-y: auto; overscroll-behavior: contain; }
.bb-ed-prev { padding: 1.1rem; overflow-y: auto; background: #313338; border-left: 1px solid rgba(0, 0, 0, .3); }
.bb-ed-prev:empty { display: none; }
.bb-ed-prev small { display: block; margin: .9rem 0 .2rem; color: #b5bac1; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bb-prev-h { margin-bottom: .5rem; color: #b5bac1; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bb-ed-pre { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: 1rem; }
.bb-ed-pre span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.bb-ed-pre button { padding: .35rem .75rem; font-size: .8rem; font-weight: 650; border-radius: 99px; background: rgba(88, 101, 242, .12); border: 1px solid rgba(88, 101, 242, .35); cursor: pointer; transition: background .2s, transform .12s; }
.bb-ed-pre button:hover { background: rgba(88, 101, 242, .3); }
.bb-ed-pre button:active { transform: scale(.95); }

/* Formular */
.bb-f { display: grid; gap: .3rem; margin-bottom: .8rem; }
.bb-f > span { color: var(--muted); font-size: .78rem; font-weight: 650; }
.bb-f.is-sm { max-width: 240px; }
.bb-f.is-sw { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.bb-f.is-sw > span:first-child { color: var(--text); font-size: .88rem; font-weight: 550; }
.bb-f input[type="text"], .bb-f input[type="number"], .bb-f input[type="time"], .bb-f input[type="file"], .bb-f select, .bb-f textarea, .bb-in, .bb-rbtn input, .bb-rbtn select, .bb-chips select {
  width: 100%; padding: .6rem .75rem; font-size: .9rem; border-radius: 11px; background: #0b1122; border: 1px solid var(--line2); outline: none; transition: border-color .2s, box-shadow .2s;
}
.bb-f textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.bb-f input:focus, .bb-f select:focus, .bb-f textarea:focus, .bb-in:focus, .bb-rbtn input:focus, .bb-rbtn select:focus { border-color: var(--blurple); box-shadow: 0 0 0 4px rgba(88, 101, 242, .18); }
.bb-f input[type="color"] { width: 64px; height: 38px; padding: 3px; border-radius: 10px; background: #0b1122; border: 1px solid var(--line2); cursor: pointer; }
.bb-vars { color: var(--muted); font-size: .72rem; opacity: .8; }
.bb-msg { margin: 0 0 .9rem; padding: .9rem .9rem .1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.bb-msg legend { padding: 0 .4rem; font-size: .8rem; font-weight: 750; }
.bb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .4rem; border-radius: 12px; background: #0b1122; border: 1px solid var(--line2); }
.bb-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .25rem .2rem .6rem; font-size: .8rem; font-weight: 600; border-radius: 99px; background: color-mix(in srgb, var(--c, #5865f2) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c, #5865f2) 50%, transparent); }
.bb-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; font-size: .65rem; border-radius: 50%; background: rgba(0, 0, 0, .25); border: 0; cursor: pointer; }
.bb-chips select, .bb-chip-in { flex: 1 1 140px; width: auto !important; padding: .35rem .5rem !important; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none; }
.bb-days { display: flex; gap: .3rem; }
.bb-days button { flex: 1; padding: .45rem 0; font-size: .8rem; font-weight: 700; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); cursor: pointer; }
.bb-days button.is-on { color: #fff; background: var(--grad); border-color: transparent; }
.bb-list { display: grid; gap: .5rem; margin-bottom: .9rem; }
.bb-item { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.bb-item[open] { border-color: var(--line2); }
.bb-item summary { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem .6rem .9rem; list-style: none; cursor: pointer; }
.bb-item summary::-webkit-details-marker { display: none; }
.bb-item summary::before { content: "›"; color: var(--muted); font-size: 1.1rem; transition: transform .2s; }
.bb-item[open] summary::before { transform: rotate(90deg); }
.bb-item summary b { flex: 1; min-width: 0; overflow: hidden; font-size: .9rem; white-space: nowrap; text-overflow: ellipsis; }
.bb-item-in { padding: .2rem .9rem .6rem; }
.bb-btns { display: grid; gap: .4rem; margin-bottom: .7rem; }
.bb-rbtn { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 82px 30px; align-items: center; gap: .35rem; }
.bb-rbtn input.is-emo { text-align: center; }
.bb-rbtn input, .bb-rbtn select { padding: .45rem .5rem; font-size: .84rem; }
.bb-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.bb-row .bb-btn { flex: 1 1 200px; }

/* Speichern-Leiste */
.bb-save { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 150; display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem .55rem 1.1rem; font-size: .88rem; font-weight: 650; border-radius: 16px; background: rgba(20, 26, 48, .92); border: 1px solid var(--line2); box-shadow: 0 16px 44px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translateX(-50%); animation: bb-up .3s cubic-bezier(.2, .9, .3, 1.2); }
.bb-save[hidden] { display: none; }
@keyframes bb-up { from { transform: translate(-50%, 30px); opacity: 0; } }

/* Karten, Senden, Profil, Protokoll */
.bb-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.bb-card { padding: 1.1rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.bb-card h3 { margin: 0 0 .9rem; font-size: 1rem; }
.bb-card hr { margin: 1rem 0; border: 0; border-top: 1px solid var(--line); }
.bb-send-prev { position: sticky; top: 90px; background: #313338; }
.bb-prof { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.bb-prof > div { display: grid; }
.bb-prof small { color: var(--muted); }
.bb-log { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.bb-log li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.bb-log span { text-align: center; }
.bb-log p { margin: 0; font-size: .86rem; overflow-wrap: anywhere; }
.bb-log time { color: var(--muted); font-size: .74rem; white-space: nowrap; }

/* Discord-Vorschau */
.dp { font: 15px/1.375 "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #dbdee1; }
.dp-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; padding: .4rem 0; }
.dp-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dp-av.is-letter { display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--c); }
.dp-h { display: flex; align-items: center; gap: .35rem; }
.dp-h b { color: #f2f3f5; font-weight: 600; }
.dp-tag { padding: 0 .3rem; color: #fff; font-size: .62rem; font-weight: 700; line-height: 1.35; border-radius: 4px; background: #5865f2; }
.dp-h time { color: #949ba4; font-size: .74rem; }
.dp-c { margin-top: .1rem; overflow-wrap: anywhere; }
.dp-men { padding: 0 .15rem; color: #c9cdfb; font-weight: 500; border-radius: 3px; background: rgba(88, 101, 242, .3); }
.dp code { background: #2b2d31; }
.dp pre { margin: .3rem 0; padding: .45rem .55rem; font-size: .82rem; white-space: pre-wrap; border-radius: 4px; background: #2b2d31; border: 1px solid #1e1f22; }
.dp a { color: #00a8fc; text-decoration: none; }
.dp-e { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; max-width: 432px; margin-top: .4rem; padding: .55rem 1rem .9rem .75rem; border-radius: 4px; background: #2b2d31; border-left: 4px solid var(--c); }
.dp-et { margin-top: .3rem; color: #f2f3f5; font-weight: 600; }
.dp-ed { margin-top: .4rem; font-size: .875rem; overflow-wrap: anywhere; }
.dp-im { display: block; max-width: 100%; margin-top: .9rem; border-radius: 4px; }
.dp-ef { margin-top: .55rem; color: #b5bac1; font-size: .75rem; }
.dp-th { display: grid; place-items: center; width: 80px; height: 80px; margin-top: .4rem; color: #fff; font-size: 2rem; font-weight: 800; border-radius: 50%; background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.dp-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .5rem; }
.dp-b span { padding: .2rem 1rem; min-height: 32px; display: inline-flex; align-items: center; color: #fff; font-size: .875rem; font-weight: 500; border-radius: 8px; background: #4e5058; }
.dp-b .is-1 { background: #5865f2; } .dp-b .is-3 { background: #248046; } .dp-b .is-4 { background: #da373c; }
.dp-cmd { color: #b5bac1 !important; text-transform: none !important; letter-spacing: 0 !important; }
.dp-chs { display: grid; gap: .3rem; }
.dp-chs span { padding: .35rem .6rem; color: #949ba4; font-size: .95rem; border-radius: 4px; background: #2b2d31; }
.dp-pres { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem .6rem; padding: .7rem; border-radius: 8px; background: #2b2d31; }
.dp-pres i { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; background: #23a55a; }
.dp-pres i.is-idle { background: #f0b232; } .dp-pres i.is-dnd { background: #f23f43; } .dp-pres i.is-invisible { background: #80848e; }
.dp-pres b { color: #f2f3f5; }
.dp-pres small { color: #b5bac1; }

/* Dialog & Meldungen */
.bb-dlg { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; background: rgba(5, 8, 18, .6); opacity: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .2s; }
.bb-dlg.is-on { opacity: 1; }
.bb-dlg-card { width: min(460px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.4rem; text-align: center; border-radius: 22px; background: #121a31; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); transform: scale(.95) translateY(10px); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); }
.bb-dlg.is-on .bb-dlg-card { transform: none; }
.bb-dlg-card h3 { margin: .7rem 0 .5rem; }
.bb-dlg-card p { color: var(--muted); font-size: .9rem; }
.bb-dlg-card .bb-f { text-align: left; }
.bb-dlg-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; font-size: 1.7rem; border-radius: 18px; background: var(--grad); box-shadow: 0 10px 28px rgba(88, 101, 242, .4); }
.bb-dlg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.1rem; }
.bb-dlg-btns [hidden] + .bb-btn { grid-column: 1 / -1; }
.bb-howto { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); font-size: .86rem; text-align: left; }
.bb-howto li { margin: .25rem 0; }
.bb-howto b { color: var(--text); }
.bb-menu { display: grid; gap: .45rem; }
.bb-toast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); z-index: 400; max-width: calc(100% - 2rem); padding: .7rem 1.1rem; font-size: .9rem; font-weight: 650; border-radius: 14px; background: rgba(20, 26, 48, .95); border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); transform: translate(-50%, -14px); opacity: 0; transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .25s; }
.bb-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.bb-toast.is-bad { border-color: rgba(242, 63, 67, .5); }

/* Handy & Tablet */
@media (max-width: 960px) {
  .bb-ed-in { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .bb-ed-form { overflow: visible; padding-bottom: 1rem; }
  .bb-ed-prev { overflow: visible; border-left: 0; border-top: 1px solid rgba(0, 0, 0, .3); padding-bottom: 6rem; }
  .bb-two { grid-template-columns: minmax(0, 1fr); }
  .bb-send-prev { position: static; }
}
@media (max-width: 860px) {
  .bb-wrap { grid-template-columns: minmax(0, 1fr); gap: .9rem; padding: .9rem .8rem 6rem; }
  .bb-side { position: static; display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin: 0 -.8rem; padding: 0 .8rem .2rem; }
  .bb-side::-webkit-scrollbar { display: none; }
  .bb-side-h { display: none; }
  .bb-bot { flex: none; width: auto; max-width: 220px; padding: .45rem .7rem .45rem .45rem; background: var(--card); border-color: var(--line); }
  .bb-bot .bb-av { width: 32px; height: 32px; }
  .bb-steps { grid-template-columns: minmax(0, 1fr); }
  .bb-head { padding: .9rem; border-radius: 18px; }
  .bb-head-r { width: 100%; margin-left: 0; }
  .bb-gsel { flex: 1 1 100%; }
  .bb-gsel select { max-width: none; flex: 1; }
  .bb-mods { grid-template-columns: minmax(0, 1fr); }
  .bb-ed-box { top: max(2.2rem, env(safe-area-inset-top)); width: 100%; border-left: 0; border-top: 1px solid var(--line2); border-radius: 22px 22px 0 0; transform: translateY(60px); }
  .bb-ed-box > header { padding: .85rem .9rem; }
  .bb-ed-box > header small { display: none; }
  .bb-ed-form { padding: .9rem .9rem 1rem; }
  .bb-rbtn { grid-template-columns: 44px minmax(0, 1fr) 74px 30px; grid-auto-flow: dense; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
  .bb-rbtn select:not(.is-style) { grid-column: 1 / -1; }
  .bb-back span { display: none; }
  .bb-save { left: .8rem; right: .8rem; transform: none; animation: none; }
  .bb-save span { flex: 1; }
  .bb-top { padding: .6rem .8rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Befehle & Events: Liste ---------- */
.bb-flows-top { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.bb-cat small { margin-left: .3rem; padding: .05rem .45rem; border-radius: 99px; background: var(--card2); }
.bb-flow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .85rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .15s, background .2s; }
.bb-flow:hover { transform: translateY(-2px); border-color: var(--line2); background: var(--card2); }
.bb-flow.is-on { border-color: rgba(240, 178, 50, .4); }
.bb-flow-ic { display: grid; place-items: center; width: 42px; height: 42px; font-size: 1.25rem; border-radius: 13px; background: linear-gradient(135deg, rgba(240, 178, 50, .25), rgba(240, 120, 50, .15)); border: 1px solid rgba(240, 178, 50, .35); }
.bb-flow b { display: block; overflow: hidden; font-size: .95rem; white-space: nowrap; text-overflow: ellipsis; }
.bb-flow small { display: block; overflow: hidden; color: var(--muted); font-size: .78rem; white-space: nowrap; text-overflow: ellipsis; }
.bb-vars-list { display: grid; gap: .45rem; margin-bottom: .6rem; }
.bb-var { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 100px minmax(0, 1fr) auto 30px; align-items: center; gap: .4rem; padding: .5rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.bb-var input, .bb-var select { width: 100%; padding: .45rem .55rem; font-size: .85rem; border-radius: 9px; background: #0b1122; border: 1px solid var(--line2); outline: none; }
.bb-var small { color: var(--muted); font-size: .72rem; white-space: nowrap; }

/* ---------- Baukasten (Vollbild) ---------- */
.bb-fb { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: #0b1020; opacity: 0; transform: scale(.985); transition: opacity .22s, transform .25s cubic-bezier(.2, .9, .3, 1); }
.bb-fb.is-on { opacity: 1; transform: none; }
.bb-fb-h { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; padding-top: max(.7rem, env(safe-area-inset-top)); background: rgba(14, 20, 38, .95); border-bottom: 1px solid var(--line); }
.bb-fb-t { display: grid; flex: 1; min-width: 0; }
.bb-fb-t b { overflow: hidden; font-size: 1.02rem; white-space: nowrap; text-overflow: ellipsis; }
.bb-fb-t small { color: var(--muted); font-size: .74rem; }
.bb-fb-in { display: grid; grid-template-columns: 250px minmax(0, 1fr); flex: 1; min-height: 0; }
.bb-fb-pal { padding: .8rem; overflow-y: auto; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.bb-pal-h { margin-bottom: .6rem; font-weight: 750; }
.bb-pal-h small { display: block; color: var(--muted); font-size: .72rem; font-weight: 500; }
.bb-pal-h b { color: #ffd77a; }
.bb-pal-c { margin-bottom: .35rem; }
.bb-pal-c summary { padding: .35rem .2rem; color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .03em; cursor: pointer; list-style: none; }
.bb-pal-c summary::-webkit-details-marker { display: none; }
.bb-pal-c > div { display: grid; gap: .25rem; }
.bb-pal-c button { padding: .45rem .6rem; font-size: .82rem; text-align: left; border-radius: 9px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.bb-pal-c button:hover { background: rgba(88, 101, 242, .18); border-color: rgba(88, 101, 242, .45); }
.bb-pal-c button:active { transform: scale(.97); }
.bb-fb-main { padding: 1rem 1.2rem 7rem; overflow-y: auto; overscroll-behavior: contain; }
.bb-fb-fab { display: none; }
.bb-trig { max-width: 900px; margin: 0 auto 1rem; padding: 1rem; border-radius: 18px; background: linear-gradient(135deg, rgba(240, 178, 50, .12), rgba(240, 120, 50, .05)); border: 1px solid rgba(240, 178, 50, .45); }
.bb-trig-h { margin-bottom: .7rem; color: #ffd77a; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bb-two-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 .6rem; }
.bb-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .6rem 0 .4rem; font-size: .86rem; }
.bb-sub small { color: var(--muted); font-size: .74rem; }
.bb-opts { display: grid; gap: .4rem; }
.bb-opt { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) 30px; align-items: end; gap: 0 .4rem; padding: .5rem .5rem 0; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 1px solid var(--line); }
.bb-opt > .bb-btn.is-sm { margin-bottom: .8rem; }
.bb-opt .bb-f.is-sw { padding: .4rem .55rem; }
.bb-sets { margin: .4rem 0 .7rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.bb-sets > summary { padding: .55rem .75rem; color: var(--muted); font-size: .82rem; font-weight: 650; cursor: pointer; }
.bb-sets[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.bb-sets > :not(summary) { margin-left: .7rem; margin-right: .7rem; }
.bb-fb-flow { max-width: 900px; margin: 0 auto; }
.bb-tree { display: grid; gap: .5rem; padding: .3rem; border-radius: 14px; border: 1px dashed transparent; transition: border-color .2s, background .2s; }
.bb-tree.is-tgt { border-color: rgba(255, 215, 122, .45); background: rgba(240, 178, 50, .04); }
.bb-tree-add { justify-self: start; padding: .4rem .8rem; color: var(--muted); font-size: .8rem; font-weight: 650; border-radius: 10px; background: transparent; border: 1px dashed var(--line2); cursor: pointer; }
.bb-tree-add:hover { color: var(--text); border-color: var(--blurple); background: rgba(88, 101, 242, .1); }
.bb-blk { --bc: #5865f2; position: relative; border-radius: 14px; background: #10172c; border: 1px solid var(--line); border-left: 4px solid var(--bc); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.bb-blk.is-msg { --bc: #5865f2; } .bb-blk.is-cond { --bc: #22c55e; } .bb-blk.is-role { --bc: #a855f7; } .bb-blk.is-ch { --bc: #0ea5e9; } .bb-blk.is-mod { --bc: #f23f43; } .bb-blk.is-voice { --bc: #14b8a6; } .bb-blk.is-var { --bc: #f0b232; } .bb-blk.is-other { --bc: #94a3b8; }
.bb-blk.is-new { animation: bb-flash 1.2s ease-out; }
@keyframes bb-flash { 0% { box-shadow: 0 0 0 3px rgba(255, 215, 122, .7); } 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, .2); } }
.bb-blk-h { display: flex; align-items: center; gap: .5rem; padding: .5rem .55rem .5rem .7rem; }
.bb-blk-ic { font-size: 1.05rem; }
.bb-blk-h > b { flex: none; font-size: .88rem; white-space: nowrap; }
.bb-blk-l { flex: 1; min-width: 40px; padding: .25rem .45rem; color: var(--muted); font-size: .78rem; border-radius: 7px; background: transparent; border: 1px solid transparent; outline: none; }
.bb-blk-l:hover, .bb-blk-l:focus { border-color: var(--line2); background: #0b1122; }
.bb-blk-c { display: flex; gap: .15rem; }
.bb-blk-c button { width: 26px; height: 26px; padding: 0; font-size: .8rem; color: var(--muted); border-radius: 7px; background: transparent; border: 0; cursor: pointer; }
.bb-blk-c button:hover:not(:disabled) { color: var(--text); background: var(--card2); }
.bb-blk-c button:disabled { opacity: .25; cursor: default; }
.bb-blk-c .is-del:hover { color: #ff9aa8 !important; background: rgba(242, 63, 67, .15) !important; }
.bb-blk-b { padding: .2rem .8rem .5rem; border-top: 1px solid rgba(170, 190, 255, .07); }
.bb-blk-b .bb-f { margin-bottom: .55rem; }
.bb-kids { margin: .5rem 0 .3rem; padding: .5rem; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.bb-kids > b { display: block; margin: 0 0 .35rem .2rem; font-size: .78rem; }
.bb-kids.is-then { border-color: rgba(35, 165, 90, .4); } .bb-kids.is-then > b { color: #7ee2a3; }
.bb-kids.is-else { border-color: rgba(242, 63, 67, .35); } .bb-kids.is-else > b { color: #ffb4bd; }
.bb-kids.is-btn { border-color: rgba(88, 101, 242, .35); }
.bb-fv { display: flex; gap: .3rem; }
.bb-fv > input, .bb-fv > textarea { flex: 1; min-width: 0; }
.bb-fb .bb-f input[type="text"], .bb-fb .bb-f input[type="number"], .bb-fb .bb-f input[type="time"], .bb-fb .bb-f select, .bb-fb .bb-f textarea { padding: .5rem .65rem; font-size: .86rem; }
.bb-varbtn { flex: none; align-self: flex-start; width: 36px; height: 36px; padding: 0; color: #ffd77a; font: 700 .78rem ui-monospace, Menlo, Consolas, monospace; border-radius: 10px; background: rgba(240, 178, 50, .1); border: 1px solid rgba(240, 178, 50, .3); cursor: pointer; }
.bb-varbtn:hover { background: rgba(240, 178, 50, .22); }
.bb-tgt { display: grid; gap: .3rem; }
.bb-msged { display: grid; gap: .1rem; }
.bb-embed { margin: .2rem 0 .5rem; padding: .6rem .6rem .1rem .75rem; border-radius: 10px; background: rgba(0, 0, 0, .18); border-left: 4px solid var(--c); }
.bb-cmp { display: grid; grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr); gap: 0 .4rem; align-items: end; }
.bb-mprev .bb-mprev-in { margin: 0 !important; padding: .6rem .8rem; border-radius: 0 0 12px 12px; background: #313338; }
.bb-dlg-card.is-wide { width: min(760px, 100%); }
.bb-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: .45rem; max-height: 60vh; overflow-y: auto; text-align: left; }
.bb-lib h4 { grid-column: 1 / -1; margin: .6rem 0 0; color: var(--muted); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.bb-lib-i { display: grid; grid-template-columns: auto 1fr; gap: 0 .55rem; align-items: center; padding: .6rem; text-align: left; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.bb-lib-i:hover { background: rgba(88, 101, 242, .15); border-color: rgba(88, 101, 242, .45); transform: translateY(-1px); }
.bb-lib-i span { grid-row: span 2; font-size: 1.4rem; }
.bb-lib-i b { font-size: .88rem; }
.bb-lib-i small { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.bb-pal-sheet { max-height: 58vh; overflow-y: auto; text-align: left; }
.bb-vpop { position: fixed; z-index: 500; max-height: 360px; padding: .5rem; overflow-y: auto; border-radius: 14px; background: #121a31; border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.bb-vpop > input { width: 100%; margin-bottom: .4rem; padding: .45rem .6rem; font-size: .85rem; border-radius: 9px; background: #0b1122; border: 1px solid var(--line2); outline: none; }
.bb-vpop-g { margin-bottom: .4rem; }
.bb-vpop-g b { display: block; margin: .2rem .2rem .25rem; color: var(--muted); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.bb-vpop-g button { margin: 0 .2rem .25rem 0; padding: .2rem .45rem; color: #ffd77a; font: .76rem ui-monospace, Menlo, Consolas, monospace; border-radius: 7px; background: rgba(240, 178, 50, .08); border: 1px solid rgba(240, 178, 50, .25); cursor: pointer; }
.bb-vpop-g button:hover { background: rgba(240, 178, 50, .22); }
.bb-vpop-g button[hidden] { display: none; }
@media (max-width: 860px) {
  .bb-fb-in { grid-template-columns: minmax(0, 1fr); }
  .bb-fb-pal { display: none; }
  .bb-fb-main { padding: .8rem .7rem 7rem; }
  .bb-fb-fab { position: fixed; right: 1rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 130; display: block; padding: .8rem 1.1rem; color: #fff; font-weight: 750; border-radius: 99px; background: var(--grad); border: 0; box-shadow: 0 10px 30px rgba(88, 101, 242, .5); }
  .bb-blk-h { flex-wrap: wrap; }
  .bb-blk-l { order: 3; flex-basis: 100%; }
  .bb-blk-c { margin-left: auto; }
  .bb-blk-b { padding: .2rem .55rem .45rem; }
  .bb-kids { padding: .35rem; }
  .bb-cmp { grid-template-columns: minmax(0, 1fr); }
  .bb-var { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px; }
  .bb-var input[data-vp$=".def"] { grid-column: 1 / 3; }
  .bb-var small { grid-column: 1 / -1; }
  .bb-opt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bb-opt > .bb-btn.is-sm { justify-self: end; }
}
.bb-var > * { min-width: 0; }
.bb-btn.is-xs { padding: .25rem .65rem; font-size: .75rem; border-radius: 8px; }

/* ---------- Login & Konto ---------- */
.bb-login-body { display: grid; min-height: 100vh; place-items: center; padding: 1rem; }
.bb-login { width: min(400px, 100%); }
.bb-login-card { padding: 2rem 1.6rem 1.5rem; text-align: center; border-radius: 26px; background: rgba(18, 26, 49, .78); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: bb-up .45s cubic-bezier(.2, .9, .3, 1.1); }
.bb-login-card.is-shake { animation: bb-shake .4s; }
@keyframes bb-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.bb-login-logo { width: 72px; height: 72px; margin-bottom: .6rem; filter: drop-shadow(0 12px 30px rgba(88, 101, 242, .55)); animation: bb-float 4s ease-in-out infinite; }
.bb-login-card h1 { margin: 0; font-size: 1.6rem; }
.bb-login-card > p { margin: .3rem 0 1.4rem; color: var(--muted); }
.bb-login-card .bb-f { text-align: left; }
.bb-login-card .bb-btn { margin-top: .4rem; padding: .75rem; font-size: .95rem; }
.bb-login-note { display: block; margin-top: 1rem; color: var(--muted); font-size: .76rem; }
.bb-user { display: flex; align-items: center; gap: .5rem; padding: .3rem .7rem .3rem .3rem; font-size: .85rem; border-radius: 99px; background: var(--card2); border: 1px solid var(--line2); cursor: pointer; }
.bb-user:hover { background: rgba(255, 255, 255, .1); }
.bb-user .bb-av { width: 28px; height: 28px; font-size: .8rem; }
.bb-user em { padding: .05rem .45rem; color: #ffd77a; font-size: .7rem; font-style: normal; font-weight: 700; border-radius: 99px; background: rgba(240, 178, 50, .14); }
@media (max-width: 860px) { .bb-user b { display: none; } }

/* =========== Neuer Aufbau: Seitenleiste mit Beschreibungen =========== */
.bb-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; }
.bb-nav { position: sticky; top: 0; z-index: 60; display: flex; flex-direction: column; gap: .7rem; height: 100vh; padding: 1rem .8rem; overflow-y: auto; background: rgba(11, 16, 32, .82); border-right: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); scrollbar-width: thin; }
.bb-nav-top { display: flex; align-items: center; justify-content: space-between; padding: .1rem .3rem .2rem; }
.bb-nav-x, .bb-burger, .bb-scrim { display: none; }
.bb-nav-empty { margin: 0; padding: .6rem; color: var(--muted); font-size: .85rem; }
.bb-switch { border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.bb-switch.is-open { border-color: var(--line2); }
.bb-sw-bot { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .6rem .65rem; text-align: left; border-radius: 14px; background: transparent; border: 0; cursor: pointer; transition: background .2s; }
.bb-sw-bot:hover { background: var(--card2); }
.bb-sw-bot > span:not(.bb-av) { display: grid; flex: 1; min-width: 0; }
.bb-sw-bot b { overflow: hidden; font-size: .92rem; white-space: nowrap; text-overflow: ellipsis; }
.bb-sw-bot small { display: flex; align-items: center; gap: .35rem; overflow: hidden; color: var(--muted); font-size: .74rem; white-space: nowrap; text-overflow: ellipsis; }
.bb-sw-bot .bb-av { width: 38px; height: 38px; }
.bb-sw-car { color: var(--muted); font-style: normal; transition: transform .25s; }
.bb-switch.is-open .bb-sw-car { transform: rotate(180deg); }
.bb-sw-list { display: none; padding: .3rem; border-top: 1px solid var(--line); }
.bb-switch.is-open .bb-sw-list { display: grid; gap: .1rem; animation: bb-up .2s ease-out; }
.bb-sw-h { padding: .3rem .5rem; color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.bb-sw-bot.is-new b { color: var(--muted); }
.bb-menu-nav { display: grid; gap: .15rem; }
.bb-nav-g { margin: .7rem .5rem .25rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bb-nav-g:first-child { margin-top: .2rem; }
.bb-nav-i { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: .65rem; width: 100%; padding: .5rem .55rem; text-align: left; border-radius: 13px; background: transparent; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.bb-nav-i:hover { background: var(--card); }
.bb-nav-i.is-on { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.bb-nav-i.is-on::before { content: ""; position: absolute; left: -.8rem; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.bb-nav-ic { display: grid; place-items: center; width: 38px; height: 38px; font-size: 1.1rem; border-radius: 11px; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.bb-nav-i.is-on .bb-nav-ic { background: var(--c); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 45%, transparent); }
.bb-nav-t { display: grid; min-width: 0; }
.bb-nav-t b { font-size: .9rem; }
.bb-nav-t small { color: var(--muted); font-size: .73rem; line-height: 1.35; }
.bb-nav-i em { padding: .05rem .45rem; color: var(--muted); font-size: .7rem; font-style: normal; font-weight: 700; border-radius: 99px; background: var(--card2); }
.bb-nav-foot { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.bb-nav-foot .bb-user { width: 100%; }
.bb-nav-foot .bb-user b { flex: 1; text-align: left; display: block !important; }
.bb-page { width: 100%; max-width: 1180px; padding: 1.3rem 1.8rem 7rem; }
.bb-pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.bb-ph-ic { display: grid; place-items: center; width: 52px; height: 52px; font-size: 1.5rem; border-radius: 16px; background: var(--c); box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 40%, transparent); }
.bb-ph-t { flex: 1; min-width: 0; }
.bb-ph-t h1 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.bb-ph-t p { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; }
.bb-ph-r { display: flex; align-items: center; gap: .5rem; }
.bb-warns:empty { display: none; }
.bb-warns { margin-bottom: 1rem; }
.bb-warns .bb-warn { margin-top: 0; }
.bb-muted { color: var(--muted); font-size: .85rem; }
.bb-link { margin-left: auto; padding: 0; color: #8b9cff; font-size: .75rem; font-weight: 650; text-transform: none; letter-spacing: 0; background: none; border: 0; cursor: pointer; }
.bb-cat { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.bb-cat-d { color: var(--muted); font-size: .76rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
/* Übersicht */
.bb-hcard { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; margin-bottom: 1rem; border-radius: 20px; background: linear-gradient(135deg, rgba(88, 101, 242, .16), rgba(124, 58, 237, .08)); border: 1px solid rgba(88, 101, 242, .3); }
.bb-hcard h2 { margin: 0; font-size: 1.25rem; }
.bb-hcard p { margin: .15rem 0 0; color: var(--muted); font-size: .86rem; }
.bb-hcard-r { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-left: auto; }
.bb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0; }
.bb-kpis > div { display: grid; gap: .2rem; padding: .9rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.bb-kpis > div[data-tab] { cursor: pointer; transition: border-color .2s, transform .15s; }
.bb-kpis > div[data-tab]:hover { border-color: var(--line2); transform: translateY(-2px); }
.bb-kpis span { color: var(--muted); font-size: .76rem; font-weight: 650; }
.bb-kpis b { display: flex; align-items: center; gap: .4rem; font-size: 1.35rem; }
.bb-kpis b small { color: var(--muted); font-size: .85rem; }
.bb-kpis > div > small { overflow: hidden; color: var(--muted); font-size: .76rem; white-space: nowrap; text-overflow: ellipsis; }
.bb-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.bb-qi { display: grid; gap: .2rem; padding: .9rem; text-align: left; border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .15s, border-color .2s, background .2s; }
.bb-qi:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.bb-qi span { font-size: 1.4rem; }
.bb-qi b { font-size: .9rem; }
.bb-qi small { color: var(--muted); font-size: .76rem; }
/* Einstellungen */
.bb-set { display: grid; gap: .9rem; max-width: 760px; }
.bb-row-i { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.bb-card h3 + .bb-row-i { border-top: 0; padding-top: 0; }
.bb-row-i > div { display: grid; }
.bb-row-i small { color: var(--muted); font-size: .78rem; }
.bb-card.is-danger { border-color: rgba(242, 63, 67, .35); background: rgba(242, 63, 67, .05); }
/* Module: Suche & Filter */
.bb-mbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.bb-msearch { flex: 1 1 260px; }
.bb-monly { margin: 0; }
.bb-mchips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .4rem; padding-bottom: .3rem; }
@media (max-width: 900px) { .bb-mchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -.85rem; } }
.bb-mchips::-webkit-scrollbar { display: none; }
.bb-mchips button { flex: none; padding: .38rem .75rem; color: var(--muted); font-size: .8rem; font-weight: 650; border-radius: 99px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.bb-mchips button small { opacity: .7; }
.bb-mchips button.is-on { color: #fff; background: var(--grad); border-color: transparent; }
@media (max-width: 1100px) { .bb-kpis, .bb-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .bb-shell { grid-template-columns: minmax(0, 1fr); }
  .bb-nav { position: fixed; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); height: auto; z-index: 210; padding-top: max(1rem, env(safe-area-inset-top)); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  body.bb-nav-open .bb-nav { transform: none; }
  .bb-scrim { position: fixed; inset: 0; z-index: 205; display: block; background: rgba(5, 8, 18, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.bb-nav-open .bb-scrim { opacity: 1; pointer-events: auto; }
  .bb-nav-x, .bb-burger { display: inline-flex; }
  .bb-nav-i.is-on::before { display: none; }
  .bb-page { padding: 0 .85rem 7rem; }
  .bb-pagehead { position: sticky; top: 0; z-index: 50; margin: 0 -.85rem 1rem; padding: .7rem .85rem; padding-top: max(.7rem, env(safe-area-inset-top)); background: rgba(10, 15, 30, .85); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); gap: .6rem; }
  .bb-ph-ic { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 12px; }
  .bb-ph-t h1 { font-size: 1.1rem; }
  .bb-ph-t p { overflow: hidden; font-size: .76rem; white-space: nowrap; text-overflow: ellipsis; }
  .bb-ph-r .bb-pill { display: none; }
  .bb-hcard-r { margin-left: 0; width: 100%; }
  .bb-hcard-r .bb-gsel { flex: 1 1 100%; }
}
@media (max-width: 520px) { .bb-kpis, .bb-quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bb-power span { display: none; } .bb-power { padding-right: .4rem; } }
.bb-step p b { font-size: inherit; }

/* ---------- Design & Emojis ---------- */
.bb-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.bb-colors .bb-f { max-width: none; }
.bb-colors input[type="color"] { width: 100%; }
.bb-emo { width: 1.375em; height: 1.375em; object-fit: contain; vertical-align: -.3em; }
.bb-emo.is-lg { width: 34px; height: 34px; vertical-align: middle; }
.bb-emo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.bb-emo-bar > span { margin-right: auto; color: var(--muted); font-size: .85rem; }
.bb-emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: .5rem; }
.bb-emo-slot { display: grid; grid-template-columns: 34px 14px 38px minmax(0, 1fr); align-items: center; gap: .5rem; padding: .6rem .7rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.bb-emo-slot.is-set { border-color: rgba(236, 72, 153, .45); background: linear-gradient(135deg, rgba(236, 72, 153, .1), transparent); }
.bb-emo-def { font-size: 1.5rem; text-align: center; }
.bb-emo-arrow { color: var(--muted); }
.bb-emo-cur { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.bb-emo-cur i { font-style: normal; font-size: 1.3rem; opacity: .35; }
.bb-emo-slot > div { display: grid; gap: .2rem; min-width: 0; }
.bb-emo-slot b { font-size: .85rem; }
.bb-emo-slot select { width: 100%; padding: .35rem .5rem; font-size: .82rem; border-radius: 9px; background: #0b1122; border: 1px solid var(--line2); }
.bb-emo-slot small { color: var(--muted); font-size: .7rem; }
.dp .bb-emo { width: 1.375em; height: 1.375em; }
.dp-ea { display: flex; align-items: center; gap: .45rem; margin-bottom: .2rem; color: #f2f3f5; font-size: .82rem; font-weight: 600; }
.dp-th.is-sm { width: 24px; height: 24px; margin: 0; font-size: .7rem; }
.dp-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem; }
.dp-fields div { display: grid; font-size: .82rem; }
.dp-fields b { color: #f2f3f5; font-size: .8rem; }
.dp-ef { display: flex; align-items: center; gap: .35rem; }
.dp-fi { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: .7rem; border-radius: 50%; background: #1e1f22; }
.dp-e + .dp-e { margin-top: .5rem; }
@media (max-width: 700px) { .bb-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dp-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
