/* ============================================================
   Catcave Administration – Dashboard
   Aufbau: Design-Token · Basis · Layout · Bausteine · Seiten · Login · Diagramme · Dialoge · Responsive
   Animationen (bewusst wenige): Seitenwechsel, Karten-Hover, Menü/Dialog, Toast, Spinner
   ============================================================ */

:root {
  --bg: #11131e; --panel: #1a1c2b; --panel2: #222539; --panel3: #2b2e47;
  --line: #2a2d45; --line2: #3b3f60;
  --text: #eceef8; --muted: #9a9fbf; --accent: #8b5cf6; --accent2: #7c3aed; --accent-l: #a78bfa; --accent-xl: #c4b5fd; --accent-end: #c026d3; --ac: 139, 92, 246; --ac2: 167, 139, 250; --ac3: 124, 58, 237; --accent-end-rgb: 192, 38, 211;
  --ok: #3ecf8e; --warn: #f5b942; --bad: #f0566a;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 22px; }
h3 { font-size: 15px; }
a { color: var(--accent-xl); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.mono { font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::selection { background: rgba(var(--ac), .45); }

/* ---------- Layout ---------- */
.shell { min-height: 100vh; display: flex; align-items: flex-start; }
.sidebar { position: sticky; top: 0; flex: none; width: 256px; height: 100vh; display: flex; flex-direction: column; z-index: 30;
  background: linear-gradient(180deg, #1c1e30 0%, #141624 100%); border-right: 1px solid var(--line); }
.sidebrand { display: flex; gap: 11px; align-items: center; padding: 18px 18px 14px; }
.sidebrand b { font-size: 15px; }
.brandlogo { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-l), var(--accent2) 55%, var(--accent-end)); flex: none; box-shadow: 0 4px 14px rgba(var(--ac), .35); }
.guildname { color: var(--muted); font-size: 12px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami { display: flex; gap: 10px; align-items: center; margin: 0 12px 6px; padding: 9px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: linear-gradient(160deg, #262942 0%, #1c1e2f 100%); }
.wavatar { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, #a98bfb, #6d4be6 70%, #5a62e8); }
.wbody { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wbody b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlabel { font-size: 11px; color: var(--muted); }
.wroles { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px; }
.wroles .chip { font-size: 11px; padding: 0 7px; margin: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidenav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.navgroup { margin-bottom: 6px; }
.navtitle { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; gap: 9px; align-items: center; padding: 9px 10px 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; transition: color .18s; }
.navtitle::after { content: '▾'; margin-left: auto; font-size: 11px; transition: transform .2s; }
.navtitle:hover { color: var(--text); }
.navgroup.current .navtitle { color: var(--accent-xl); }
.navgroup.folded .navtitle::after { transform: rotate(-90deg); }
.navgroup.folded .navitem { display: none; }
.navitem { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 34px; border-radius: var(--r-sm); color: var(--muted); font-size: 13.5px; transition: background .18s, color .18s; }
.navitem:hover { background: rgba(var(--ac), .1); color: var(--text); }
.navitem.active { background: linear-gradient(135deg, #a07af8 0%, #7c4ff0 50%, #6a4ae2 78%, #5a62e6 100%); color: #fff; font-weight: 600; box-shadow: 0 4px 16px rgba(var(--ac3), .38), inset 0 1px 0 rgba(255, 255, 255, .18); }
.navitem:focus-visible, .navtitle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sidefoot { padding: 12px; border-top: 1px solid var(--line); }
.sidefoot { display: flex; flex-direction: column; gap: 8px; }
.sidefoot .btn { width: 100%; text-align: center; }
.workarea { flex: 1; min-width: 0; }
.mobilebar { display: none; }
.scrim { display: none; }
.main { padding: 28px; max-width: 1180px; width: 100%; margin: 0 auto; }
/* Seitenwechsel: Inhalte blenden dezent gestaffelt von unten ein */
.main > * { animation: rise .36s cubic-bezier(.2, .7, .2, 1) both; }
.main > :nth-child(2) { animation-delay: .04s; } .main > :nth-child(3) { animation-delay: .08s; } .main > :nth-child(4) { animation-delay: .12s; } .main > :nth-child(5) { animation-delay: .16s; }
.main > :nth-child(6) { animation-delay: .2s; } .main > :nth-child(7) { animation-delay: .24s; } .main > :nth-child(8) { animation-delay: .28s; } .main > :nth-child(n+9) { animation-delay: .32s; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.topbar h2, .main > h2 { margin: 0; }
.main > h2 { margin-bottom: 14px; }
.pagedesc { color: var(--muted); margin: -8px 0 22px; max-width: 760px; display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; }
.pagedesc .tools { display: flex; gap: 6px; margin-left: auto; }
.sectiontitle { margin: 26px 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.pills { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.pills button { all: unset; cursor: pointer; padding: 7px 16px; border-radius: 99px; color: var(--muted); font-size: 13px; border: 1px solid var(--line); background: var(--panel); transition: color .18s, border-color .18s, background .18s; }
.pills button:hover { color: var(--text); border-color: var(--accent); }
.pills button.active { background: linear-gradient(135deg, rgba(var(--ac2), .34), rgba(90, 98, 232, .26)); color: #f1ebff; border-color: rgba(var(--ac2), .6); }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 60px 0; color: var(--muted); }

/* ---------- Karten & Raster ---------- */
.card { background: linear-gradient(180deg, #1c1e2f 0%, #161828 100%); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.card > h3 { margin-bottom: 14px; }
.card.collapsible > h3 { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.card.collapsible > h3::after { content: '▾'; color: var(--muted); font-size: 13px; transition: transform .2s; }
.card.collapsible > h3:hover::after { color: var(--text); }
.card.collapsed > h3 { margin-bottom: 0; }
.card.collapsed > h3::after { transform: rotate(-90deg); }
.card.collapsed > :not(h3) { display: none; }
.grid { display: grid; gap: 12px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.two > .card { margin-bottom: 0; }
.stat { background: linear-gradient(160deg, #262942 0%, #1c1e2f 100%); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 12px; }
.stat.withicon { display: flex; gap: 14px; align-items: center; }
.stat.withicon .sico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, rgba(var(--ac2), .28), rgba(90, 98, 232, .18)); flex: none; }
.stat b.ok { color: var(--ok); } .stat b.warn { color: var(--warn); } .stat b.bad { color: var(--bad); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

/* ---------- Formulare ---------- */
.btn { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 14px; border-radius: var(--r-sm); background: linear-gradient(180deg, #2d3050 0%, #202339 100%); border: 1px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); color: var(--text); font-size: 13px; line-height: 1.3; transition: border-color .15s, filter .15s, transform .1s, box-shadow .15s; }
.btn:hover { border-color: var(--accent); filter: brightness(1.18); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(var(--ac), .35); }
.btn.primary { background: linear-gradient(135deg, #a98bfb 0%, var(--accent) 42%, #6d4be6 78%, #5a62e8 100%); border-color: rgba(196, 181, 253, .35); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(var(--ac3), .35), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary:hover { filter: brightness(1.1); border-color: rgba(196, 181, 253, .6); }
.btn.danger { color: #ff8da1; }
.btn.danger:hover { border-color: var(--bad); background: linear-gradient(180deg, rgba(240, 86, 106, .18), rgba(240, 86, 106, .08)); filter: none; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.more { min-width: 34px; text-align: center; font-weight: 700; letter-spacing: .05em; }
.btn.more.active { border-color: var(--accent); filter: brightness(1.18); }

input, select, textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 9px 12px; font: inherit; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--ac), .22); }
input::placeholder, textarea::placeholder { color: #7b7f9e; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 38px; width: 64px; }
textarea { resize: vertical; }
label { display: block; margin-bottom: 12px; }
label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
label.check { display: flex; gap: 10px; align-items: center; cursor: pointer; margin-bottom: 8px; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 14px; max-height: 320px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.checkgrid label { margin: 3px 0; }

/* ---------- Tabellen, Chips, Badges ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; }
td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; transition: background .15s; }
tbody tr:hover td { background: rgba(var(--ac), .06); }
.tablewrap { overflow-x: auto; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; margin: 1px 3px 1px 0; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--panel3); color: #d0d4f0; }
.badge.bot { background: linear-gradient(135deg, var(--accent-l), var(--accent2)); color: #fff; }
.badge.ok { background: rgba(62, 207, 142, .16); color: var(--ok); }
.badge.warn { background: rgba(245, 185, 66, .16); color: var(--warn); }
.badge.bad { background: rgba(240, 86, 106, .16); color: #ff8da1; }
.banner { border-radius: var(--r); padding: 16px 20px; border: 1px solid var(--line); border-left-width: 5px; background: var(--panel); }
.banner b { font-size: 16px; }
.banner.ok { border-left-color: var(--ok); }
.banner.warn { border-left-color: var(--warn); }
.banner.bad { border-left-color: var(--bad); }
details.group { margin-top: 8px; }
details.group summary { cursor: pointer; color: var(--muted); }

/* ---------- Übersicht ---------- */
.hero { display: flex; gap: 18px; align-items: center; padding: 22px 24px; margin-bottom: 14px; border-radius: 18px; border: 1px solid var(--line2);
  background: linear-gradient(135deg, rgba(var(--ac), .2), rgba(var(--accent-end-rgb), .08)), var(--panel); }
.hero h2 { margin: 0 0 8px; font-size: 24px; }
.avatar { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-end)); display: grid; place-items: center; font-weight: 700; font-size: 20px; margin: 0 auto 10px; }
.avatar.big { width: 68px; height: 68px; font-size: 24px; margin: 0; flex: none; }
.tilegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(160deg, #212439 0%, #181a2a 100%); border: 1px solid var(--line); transition: transform .18s ease, border-color .18s, filter .18s, box-shadow .18s; }
.tile:hover { transform: translateY(-2px); border-color: var(--accent); filter: brightness(1.15); box-shadow: var(--shadow); }
.tile:focus-visible { box-shadow: 0 0 0 3px rgba(var(--ac), .35); }
.tile .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, rgba(var(--ac2), .3), rgba(90, 98, 232, .18)); flex: none; }
.tilebody { display: flex; flex-direction: column; min-width: 0; }
.tilebody span { font-size: 12px; }

/* ---------- Konsole (Status → Konsole) ---------- */
.console { height: 58vh; min-height: 280px; overflow: auto; margin-top: 10px; padding: 10px 12px; background: #0a0b13; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 12px/1.6 ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; }
.cline { display: flex; flex-wrap: wrap; gap: 0 10px; padding: 1px 6px; border-radius: 4px; white-space: pre-wrap; word-break: break-all; }
.cline:hover { background: rgba(var(--ac2), .08); }
.cline.err { background: rgba(240, 86, 106, .1); }
.cline .ct { color: #6b7194; }
.cline .cd { font-weight: 700; min-width: 48px; }
.cline .cd.out { color: var(--accent-l); } .cline .cd.in { color: #34d399; }
.cline .ck { color: #93c5fd; min-width: 96px; }
.cline.weather .ck { color: #fcd34d; } .cline.gateway .ck { color: #67e8f9; } .cline.dashboard .ck { color: #f9a8d4; }
.cline .ctext { color: var(--text); }
.cline .cs { font-weight: 700; } .cline .cs.s2 { color: var(--ok); } .cline .cs.s3 { color: #93c5fd; } .cline .cs.s4 { color: var(--warn); } .cline .cs.s5 { color: var(--bad); }
.cline .cm { color: #8a90b2; }

/* ---------- Wetterkarte (SVG) ---------- */
.wxgrid { display: grid; grid-template-columns: minmax(300px, 5fr) 6fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .wxgrid { grid-template-columns: 1fr; } }
.wxmapbox { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #0c0f1d; }
.wxsvg { display: block; width: 100%; height: 560px; touch-action: none; cursor: grab; user-select: none; }
.wxsvg:active { cursor: grabbing; }
.wxk { fill: #232741; stroke: #4a4f78; stroke-width: .6; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s; }
.wxk:hover { fill: #343a63; }
.wxk.l1 { fill: #6b7280; } .wxk.l2 { fill: #e5c100; } .wxk.l3 { fill: #f97316; } .wxk.l4 { fill: #ef4444; } .wxk.l5 { fill: #a21caf; }
.wxk.l1:hover, .wxk.l2:hover, .wxk.l3:hover, .wxk.l4:hover, .wxk.l5:hover { filter: brightness(1.2); }
.wxk.sel { stroke: #ffffff; stroke-width: 2.4; }
.wxk.c1 { fill: #3f5aa8; } .wxk.c2 { fill: #e5c100; } .wxk.c3 { fill: #f97316; } .wxk.c4 { fill: #ef4444; }
.wxk.c1:hover, .wxk.c2:hover, .wxk.c3:hover, .wxk.c4:hover { filter: brightness(1.2); }
.wxk.st { fill: #1a1d33; stroke: #3b3f66; cursor: default; }
.wxk.st:hover { fill: #1a1d33; }
/* Radar: Umrisse über dem Radarbild (nur Linien, bei Warnungen halbtransparent gefüllt) */
.wxk.radar { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: .6; cursor: default; }
.wxk.radar:hover { fill: rgba(255, 255, 255, .07); }
.wxk.radar.l2 { fill: rgba(250, 204, 21, .36); } .wxk.radar.l3 { fill: rgba(249, 115, 22, .42); } .wxk.radar.l4 { fill: rgba(239, 68, 68, .46); } .wxk.radar.l5 { fill: rgba(162, 28, 175, .5); }
.wxk.radarwarn { fill-opacity: .32; stroke-width: 1.8; cursor: pointer; }
.wxk.cty { fill: #2b3057; stroke: #8b8fd0; stroke-width: 1.4; cursor: default; }
.wxk.wxalertshape { fill-opacity: .38; stroke-width: 1.4; cursor: default; }
.wxpt { fill: #38bdf8; stroke: #0b1020; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s; }
.wxpt:hover { fill: #fff; }
.wxpt.sel { fill: #f43f5e; stroke: #fff; stroke-width: 1.8; }
.wxk.radarring { fill: none; stroke: #f43f5e; stroke-width: 1.4; stroke-dasharray: 6 5; cursor: default; pointer-events: none; }
.wxpin { fill: #38bdf8; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wxpin-halo { fill: rgba(56, 189, 248, .25); }
.wxlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.wxlegend span { display: inline-flex; align-items: center; gap: 6px; }
.wxlegend i.wxk { width: 14px; height: 14px; border-radius: 4px; display: inline-block; cursor: default; vector-effect: none; }
.wxinfo { min-width: 0; }
.wxinfo h3 { margin-top: 4px; }
.wxresults { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- Wetter ---------- */
.wxdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wxday { padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: linear-gradient(160deg, #262942 0%, #1c1e2f 100%); font-size: 13px; }
.wxday .wxicon { font-size: 26px; line-height: 1.3; }
.wxalert { border: 1px solid var(--line); border-left: 5px solid #9ca3af; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; background: var(--panel2); }
.wxalert.lvl1 { border-left-color: #9ca3af; } .wxalert.lvl2, .wxalert.sevMinor { border-left-color: #facc15; } .wxalert.lvl3, .wxalert.sevModerate { border-left-color: #f97316; }
.wxalert.lvl4, .wxalert.sevSevere { border-left-color: #ef4444; } .wxalert.lvl5, .wxalert.sevExtreme { border-left-color: #a21caf; }
.wxalert summary { cursor: pointer; color: var(--muted); }
.wxmap { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: block; }

/* ---------- Login mit Team-Konto, Passwort-Dialoge ---------- */
.logintabs { display: flex; gap: 6px; margin: 0 0 14px; padding: 4px; background: rgba(10, 7, 19, .5); border: 1px solid #3a2d5e; border-radius: 12px; }
.logintabs button { all: unset; flex: 1; text-align: center; cursor: pointer; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; transition: color .18s, background .18s; }
.logintabs button:hover { color: var(--text); }
.logintabs button.active { background: linear-gradient(135deg, #a98bfb, #6a45e0); color: #fff; font-weight: 600; }
.logincard > input { padding: 13px 14px; border-radius: 12px; background: rgba(10, 7, 19, .7); border: 1px solid #3a2d5e; font-size: 15px; }
.logincard > input:focus { border-color: var(--accent-l); box-shadow: 0 0 0 3px rgba(var(--ac), .25); }
.logincard > textarea, .logincard > select { width: 100%; padding: 13px 14px; border-radius: 12px; background: rgba(10, 7, 19, .7); border: 1px solid #3a2d5e; font-size: 14px; color: var(--text); }
.logincard > textarea:focus, .logincard > select:focus { border-color: var(--accent-l); box-shadow: 0 0 0 3px rgba(var(--ac), .25); outline: none; }
.logincard > input.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0; }
.loginok { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; text-align: left; color: #b9f5d8; background: rgba(62, 207, 142, .12); border: 1px solid rgba(62, 207, 142, .35); }
/* Gesperrte Bereiche (keine Berechtigung): sichtbar, aber nicht anklickbar */
.navitem.locked, .pills button.locked, .tile.locked { opacity: .42; cursor: not-allowed; }
.navitem.locked:hover { background: transparent; color: var(--muted); }
.pills button.locked:hover { color: var(--muted); border-color: var(--line); }
.tile.locked:hover { transform: none; box-shadow: none; filter: none; border-color: var(--line); }
.navlock { margin-left: auto; font-size: 11px; opacity: .9; }
.navitem.locked { position: relative; }
.navitem.locked:hover::after { content: 'No permission for this area'; position: absolute; left: 34px; top: 100%; z-index: 40; margin-top: 2px; padding: 5px 9px; border-radius: 8px; white-space: nowrap; font-size: 11px; color: #fff;
  background: #2b2e47; border: 1px solid var(--line2); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); pointer-events: none; }
.emailcell { display: inline-flex; align-items: center; gap: 8px; }
.emaileye { all: unset; cursor: pointer; font-size: 14px; line-height: 1; padding: 3px 5px; border-radius: 6px; opacity: .75; transition: opacity .15s, background .15s; }
.emaileye:hover { opacity: 1; background: rgba(var(--ac), .18); }
.emaileye:focus-visible { outline: 2px solid var(--accent); }
.linkbtn { all: unset; cursor: pointer; color: var(--accent-xl); text-decoration: underline; font-size: 12px; }
.secretbox { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--accent); }
.secretbox code { flex: 1; font: 600 18px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; user-select: all; }

/* ---------- Team-Zugang ---------- */
.accessgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 18px; margin-top: 4px; }
.accessgrid label.check { margin-bottom: 4px; }

/* ---------- Meldungen ---------- */
.pills.filter { align-items: center; margin-bottom: 14px; }
.clickrow { cursor: pointer; }
.reasoncell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btext { white-space: pre-wrap; word-break: break-word; }
.quote { margin-top: 12px; border-left: 3px solid var(--line2); background: var(--panel2); border-radius: 8px; padding: 10px 14px; }
.attach { display: inline-block; margin: 4px 10px 0 0; font-size: 12px; }
.chatlog { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); }
.bubble.user { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.staff { align-self: flex-end; border-bottom-right-radius: 4px; border-color: rgba(var(--ac2), .45); background: linear-gradient(135deg, rgba(var(--ac2), .28), rgba(90, 98, 232, .22)); }
.bmeta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
/* Team-Chat */
.tchat { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: start; }
.tcrooms { display: flex; flex-direction: column; gap: 4px; }
.tcroom { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; font: inherit; box-shadow: none; }
.tcroom:hover { background: var(--panel2); }
.tcroom.active { background: linear-gradient(135deg, rgba(var(--ac2), .26), rgba(90, 98, 232, .2)); border-color: rgba(var(--ac2), .45); }
.tcunread { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #f43f5e; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.tchead { margin-bottom: 10px; }
.tclog { max-height: none; height: min(58vh, 520px); }
.tcday { align-self: center; font-size: 11px; color: var(--muted); padding: 2px 10px; border-radius: 999px; background: var(--panel2); margin: 4px 0; }
.tcact { margin-left: 8px; opacity: 0; transition: opacity .15s; }
.bubble:hover .tcact, .bubble:focus-within .tcact { opacity: 1; }
.tcact .linkbtn { margin-left: 6px; }
@media (max-width: 760px) { .tchat { grid-template-columns: 1fr; } .tcrooms { flex-direction: row; flex-wrap: wrap; } .tcroom { width: auto; } }
.fluxerlogin { text-align: center; text-decoration: none; margin-top: 10px; background: linear-gradient(135deg, #2d3050, #202339); border: 1px solid rgba(var(--ac2), .4); box-shadow: none; }
.fluxerlogin:hover { text-decoration: none; border-color: var(--accent-l); }
.tag.report { background: rgba(251, 191, 36, .16); color: #fcd34d; }

/* ---------- Regeln ---------- */
.tmeta { margin: 10px 0 4px; font-size: 13px; }
.tmsgs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tmsg { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--panel2); }
.twho { font-size: 13px; }
.ttxt { white-space: pre-wrap; word-break: break-word; margin-top: 3px; }
.tatt { margin-top: 4px; font-size: 13px; }
.temb { margin-top: 6px; border-left: 3px solid var(--accent); padding: 4px 10px; font-size: 13px; white-space: pre-wrap; word-break: break-word; color: var(--muted); }
/* Server-Creator */
.sc-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; background: var(--panel2); }
.sc-cat { border: 1px solid var(--line2); border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.sc-item .row, .sc-cat .row { gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.sc-item .row > select, .sc-cat .row > select, .sc-accessbox select, .sc-label select { width: auto; max-width: 100%; padding: 6px 10px; }
.sc-item .row > input[type=text], .sc-cat .row > input[type=text] { width: auto; padding: 6px 10px; }
.sc-item input[type=color] { flex: 0 0 auto; height: 32px; width: 40px; }
.sc-chname, .sc-rname, .sc-catname { flex: 1 1 170px; min-width: 120px; }
.sc-topic { flex: 2 1 200px; min-width: 140px; }
.sc-bind { max-width: 300px; }
.sc-item label.check, .sc-cat label.check, .sc-roles label.check { margin: 0 8px 0 0; white-space: nowrap; }
.sc-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.sc-grow { flex: 1 1 260px; }
.sc-accessbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-roles { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; }
.sc-matrix { border-collapse: collapse; }
.sc-matrix th { font-size: 11px; font-weight: 600; padding: 4px 6px; max-width: 90px; }
.sc-matrix td { padding: 3px 4px; text-align: center; }
.sc-matrix td:first-child { text-align: left; white-space: nowrap; }
.sc-cell { min-width: 34px; }
.sc-cell.allow { background: rgba(62, 207, 142, .25); border-color: var(--ok); }
.sc-cell.deny { background: rgba(240, 86, 106, .25); border-color: var(--bad); }
.sc-plan { max-height: 55vh; overflow: auto; }
.sc-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
@media (max-width: 700px) { .sc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-tile { border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; }
.sc-tile b { font-size: 22px; line-height: 1.15; }
.sc-tile span { font-size: 11px; color: var(--muted); line-height: 1.25; }
.sc-tile .sc-tile-ic { font-size: 14px; }
.sc-tile.new b { color: var(--ok); }
.sc-limit { display: flex; align-items: center; gap: 10px; font-size: 12px; margin: 4px 0; }
.sc-limit > span:first-child { width: 56px; color: var(--muted); }
.sc-limitbar { flex: 1; height: 8px; border-radius: 99px; background: var(--panel3); display: flex; overflow: hidden; }
.sc-limitbar i { display: block; height: 100%; }
.sc-limitbar .now { background: var(--line2); }
.sc-limitbar .add { background: var(--accent); }
.sc-limitbar.hot .add { background: var(--warn); }
.sc-alert { display: flex; gap: 8px; align-items: flex-start; border-radius: 10px; padding: 8px 12px; margin: 6px 0; font-size: 13px; border: 1px solid transparent; }
.sc-alert.bad { border-color: rgba(240, 86, 106, .5); background: rgba(240, 86, 106, .12); }
.sc-alert.warn { border-color: rgba(245, 185, 66, .45); background: rgba(245, 185, 66, .09); }
.sc-plan h3 { margin: 14px 0 6px; font-size: 14px; }
.sc-treebox { border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); padding: 6px 4px; margin: 8px 0; }
.sc-treehead { font-weight: 600; font-size: 13px; padding: 6px 10px; display: flex; gap: 8px; align-items: center; }
.sc-trow { display: flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 13px; flex-wrap: wrap; }
.sc-trow.sub { padding-left: 36px; border-left: 2px solid var(--line); margin-left: 17px; padding-left: 14px; }
.sc-trow .muted { font-size: 12px; }
.sc-treecat > summary { cursor: pointer; list-style: none; padding-top: 6px; }
.sc-treecat > summary::-webkit-details-marker { display: none; }
.sc-treecat > summary::before { content: '▸'; color: var(--muted); width: 12px; transition: none; }
.sc-treecat[open] > summary::before { content: '▾'; }
.sc-roledot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .3); }
.sc-chicon { width: 20px; text-align: center; color: var(--muted); }
.sc-pill { font-size: 10px; font-weight: 700; letter-spacing: .05em; border-radius: 99px; padding: 2px 8px; text-transform: uppercase; white-space: nowrap; }
.sc-pill.new { background: rgba(62, 207, 142, .18); color: var(--ok); }
.sc-pill.old { background: var(--panel3); color: var(--muted); }
.sc-pill.loose { background: rgba(var(--ac), .2); color: var(--accent); }
.sc-pill.warn { background: rgba(245, 185, 66, .18); color: var(--warn); }
.sc-chip { font-size: 11px; border: 1px solid var(--line2); border-radius: 99px; padding: 1px 9px; color: var(--muted); white-space: nowrap; }
.sc-chip.lock { color: var(--warn); border-color: rgba(245, 185, 66, .45); }
.sc-chip.lock.inh { opacity: .65; border-style: dashed; }
.sc-chip.bind { color: var(--accent); border-color: rgba(var(--ac), .5); }
.sc-wiretable td { padding: 7px 10px; font-size: 13px; }
.sc-wiretable .sc-wirestat { text-align: right; }
.sc-opts { margin-top: 10px; }
.sc-error, .sc-warn { display: block; margin: 4px 0; white-space: normal; text-align: left; }
.sc-jobbox:empty { display: none; }
.sc-jobbox.stick { position: sticky; top: 8px; z-index: 6; } /* nur solange etwas läuft: dann bleibt der Fortschritt beim Scrollen im Blick */
.sc-progress.run .sc-log { max-height: 84px; }
.sc-progress { border: 1px solid var(--line2); border-radius: 16px; padding: 14px 18px; margin: 0 0 14px; background: var(--panel); box-shadow: 0 8px 26px rgba(0, 0, 0, .35); }
.sc-progress.run { border-color: var(--accent); }
.sc-progress.ok { border-color: var(--ok); }
.sc-progress.bad { border-color: var(--bad); }
.sc-progress.warn { border-color: var(--warn); }
.sc-prog-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sc-pct { font-size: 38px; font-weight: 800; line-height: 1; min-width: 118px; font-variant-numeric: tabular-nums; }
.sc-progress.ok .sc-pct { color: var(--ok); }
.sc-progress.bad .sc-pct { color: var(--bad); }
.sc-prog-main { flex: 1 1 280px; min-width: 0; }
.sc-prog-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.sc-bar { height: 16px; border-radius: 99px; background: var(--panel3); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent2), var(--accent)); transition: width .6s ease; }
.sc-progress.ok .sc-bar i { background: var(--ok); }
.sc-progress.bad .sc-bar i { background: var(--bad); }
.sc-progress.warn .sc-bar i { background: var(--warn); }
.sc-bar.live i { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .22) 0 10px, transparent 10px 20px), linear-gradient(90deg, var(--accent2), var(--accent)); background-size: 28px 28px, 100% 100%; animation: sc-stripes 1s linear infinite; }
@keyframes sc-stripes { to { background-position: 28px 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .sc-bar.live i { animation: none; } }
.sc-prog-now { margin-top: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-prog-btns { display: flex; gap: 8px; }
.sc-prog-meta { margin: 8px 0 0; }
.sc-limited { display: block; white-space: normal; text-align: left; margin: 8px 0; }
.sc-log { max-height: 240px; overflow: auto; font-size: 12px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.sc-log div { padding: 1px 0; }
.sc-log-err { color: var(--bad); }
.sc-msgs .sc-item textarea, .sc-msgs .sc-item input { width: 100%; margin-bottom: 4px; }
.rulerow { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--panel2); }
.rulerow .row { margin-bottom: 8px; }
.rulepreview { border-left: 4px solid var(--accent); background: var(--panel2); border-radius: 8px; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; }
.rulepreview .ptitle { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.rulepreview p { margin: 0 0 12px; }
.rulepreview .prule { margin-bottom: 12px; }
.rulepreview .pfooter { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card ul { margin: 0 0 12px; padding-left: 20px; }

/* ---------- Menü (⋯ in Tabellenzeilen) ---------- */
.menupop { position: fixed; z-index: 60; min-width: 190px; padding: 6px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 14px 36px rgba(0, 0, 0, .55); animation: pop .12s ease-out both; }
.menupop .btn { display: block; width: 100%; text-align: left; background: transparent; border-color: transparent; box-shadow: none; padding: 8px 12px; }
.menupop .btn:hover { background: linear-gradient(135deg, rgba(var(--ac2), .22), rgba(90, 98, 232, .22)); border-color: transparent; filter: none; }

/* ---------- Login ---------- */
.loginpage { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden;
  background: radial-gradient(1200px 700px at 15% 5%, #2a1458 0%, transparent 60%), radial-gradient(900px 600px at 95% 95%, #3b0f66 0%, transparent 55%), #0a0713; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: float 14s ease-in-out infinite; }
.o1 { width: 380px; height: 380px; background: var(--accent); top: -100px; left: -80px; opacity: .5; }
.o2 { width: 320px; height: 320px; background: var(--accent-end); bottom: -120px; right: -60px; opacity: .38; animation-delay: -5s; }
.o3 { width: 240px; height: 240px; background: var(--accent2); top: 55%; left: 62%; opacity: .35; animation-delay: -9s; }
.logincard { position: relative; z-index: 1; width: min(400px, 100%); padding: 36px 32px 24px; border-radius: 22px; text-align: center;
  background: rgba(24, 17, 40, .62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(var(--ac2), .25); box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 80px rgba(var(--ac), .18); }
.logo { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 24px; overflow: hidden; display: grid; place-items: center; font-size: 32px;
  background: linear-gradient(135deg, var(--accent-l), var(--accent2) 55%, var(--accent-end)); animation: glow 3.5s ease-in-out infinite; }
.logo img, .brandlogo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.logincard h1 { font-size: 26px; margin: 0 0 4px; background: linear-gradient(90deg, #fff, var(--accent-xl)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logincard .sub { color: var(--muted); margin: 0 0 22px; }
.pwwrap { position: relative; }
.pwwrap input { padding: 13px 46px 13px 14px; border-radius: 12px; background: rgba(10, 7, 19, .7); border: 1px solid #3a2d5e; font-size: 15px; }
.pwwrap input:focus { border-color: var(--accent-l); box-shadow: 0 0 0 3px rgba(var(--ac), .25); }
.eye { all: unset; cursor: pointer; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 4px 6px; opacity: .75; }
.eye:hover { opacity: 1; }
.loginbtn { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; margin-top: 14px; padding: 13px; border-radius: 12px; font-weight: 600; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2) 50%, var(--accent-end)); box-shadow: 0 8px 24px rgba(var(--ac), .4); transition: transform .15s, box-shadow .15s, filter .15s; }
.loginbtn:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 12px 30px rgba(var(--ac), .55); }
.loginbtn:active { transform: translateY(0); }
.loginbtn[disabled] { opacity: .6; pointer-events: none; }
.loginerr { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: #ff8da1; }
.shake { animation: shake .4s; }
.foot { margin-top: 18px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---------- Serverauswahl ---------- */
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.guilds { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 12px; }
.gcard { position: relative; cursor: pointer; text-align: center; transition: transform .18s ease, border-color .18s, box-shadow .18s; }
/* Offene Benachrichtigungen eines Servers (Server-Auswahl, nur Anzeige): Zahl oben rechts an der Karte */
.notibadge { position: absolute; top: 10px; right: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1;
  color: #fff; background: linear-gradient(135deg, #f0566a, #d6334b); box-shadow: 0 2px 8px rgba(240, 86, 106, .45), 0 0 0 2px var(--panel, #12141d); font-variant-numeric: tabular-nums; cursor: help; }
.notibadge[hidden] { display: none; }
.gcard:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
/* Support-Zugriff (nur Master-Zugang): fremde Server sind gesperrt, bis der Knopf geklickt wird */
.gcard.gsupport { cursor: default; border-style: dashed; }
.gcard.gsupport:hover { transform: none; box-shadow: none; border-color: var(--warn); }
.gcard.gsupport .avatar { filter: grayscale(.55); opacity: .8; }
.supportbtn { margin-top: 12px; width: 100%; border-color: var(--warn); color: var(--warn); font-weight: 600; }
.supportbtn:hover { background: rgba(245, 185, 66, .12); border-color: var(--warn); }
.supportnote { margin-top: 10px; font-size: 12px; color: var(--warn); }
.supportbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--warn); background: rgba(245, 185, 66, .1); color: var(--warn); font-size: 12px; font-weight: 600; flex: 1 1 100%; }
.sidefoot .supportbar .btn { width: auto; flex: 0 0 auto; }

/* Änderungsprotokoll („Neuigkeiten“) */
.newchip { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); vertical-align: middle; }
.verchip { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line2); font-variant-numeric: tabular-nums; vertical-align: middle; }
.clbtn { white-space: nowrap; }
.verlink { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 100%; text-align: center; color: var(--muted); font-size: 11px; padding: 3px; border-radius: var(--r-sm); }
.verlink:hover { color: var(--text); }
.verlink:focus-visible { outline: 2px solid var(--accent); }
.cldialog { max-height: 86vh; overflow-y: auto; }
.changelog { display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.clentry { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel2); }
.clentry.isnew { border-color: var(--accent); }
.clhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.clhead .newchip { margin-left: 0; }
.clver { font-size: 16px; }
.clcur { font-size: 11px; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 0 7px; }
.cldate { margin-left: auto; color: var(--muted); font-size: 12px; }
.clentry h4 { margin: 8px 0 8px; font-size: 14px; }
.clitems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.clitems li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.cltype { flex: 0 0 22px; text-align: center; cursor: help; }
.navitem .newchip { margin-left: auto; }

/* ---------- Status, Diagramme, Live ---------- */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 84px; }
.spark i { width: 8px; border-radius: 2px 2px 0 0; background: var(--accent); display: block; }
.spark i.ok { background: var(--ok); } .spark i.warn { background: var(--warn); } .spark i.bad { background: var(--bad); }
.chartbox .row { margin-bottom: 6px; align-items: baseline; }
.chartwrap { position: relative; }
.chartsvg { width: 100%; height: auto; display: block; }
.chartsvg text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chartsvg .gridline { stroke: var(--line); stroke-width: 1; }
.chartsvg .thr { stroke-dasharray: 4 4; stroke-width: 1; opacity: .7; }
.chartsvg .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chartsvg .cross { stroke: var(--text); stroke-width: 1; opacity: .35; }
.charttip { position: absolute; top: 4px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; font-size: 12px; pointer-events: none; white-space: nowrap; z-index: 2; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.chartsvg .actbar { transition: opacity .15s; }
.chartsvg:hover .actbar { opacity: .75; }
.chartsvg .chartempty { font-size: 13px; }
.stat.pick { all: unset; box-sizing: border-box; cursor: pointer; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; border-top: 3px solid var(--c, var(--accent)); transition: border-color .18s, background .18s; }
.stat.pick b { font-size: 20px; display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat.pick > span { font-size: 12px; }
.stat.pick:hover { border-color: var(--c, var(--accent)); }
.stat.pick.on { background: linear-gradient(160deg, rgba(var(--ac2), .26), rgba(90, 98, 232, .14)); border-color: var(--c, var(--accent)); }
.stat.pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.legend b { color: var(--text); }
.livedot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 2s ease-in-out infinite; display: inline-block; }
.livedot.off { background: var(--muted); box-shadow: none; animation: none; }
.livedot.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.feed { max-height: 380px; overflow-y: auto; }
.feedrow { display: flex; gap: 10px; align-items: baseline; padding: 5px 8px; border-radius: 8px; font-size: 13px; flex-wrap: wrap; }
.feedrow:hover { background: var(--panel2); }
.tag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: var(--panel3); white-space: nowrap; }
.tag.command { background: rgba(var(--ac), .22); color: #d8ccff; }
.tag.automod { background: rgba(245, 185, 66, .18); color: var(--warn); }
.tag.mod { background: rgba(240, 86, 106, .18); color: #ff8da1; }
.tag.ticket { background: rgba(62, 207, 142, .18); color: var(--ok); }
.tag.counting { background: rgba(250, 204, 21, .16); color: #fde047; }
.tag.verify { background: rgba(45, 212, 191, .16); color: #5eead4; }
.tag.member { background: rgba(96, 165, 250, .18); color: #93c5fd; }
.tag.dashboard { background: rgba(244, 114, 182, .18); color: #f9a8d4; }

/* ---------- Chat-Betrachter ---------- */
.msgs { max-height: 520px; overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; }
.msg { padding: 7px 10px; border-radius: 8px; }
.msg:hover { background: var(--panel2); }
.msgtext { white-space: pre-wrap; word-break: break-word; }

/* ---------- Dialoge, Toasts ---------- */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 18px; padding: 22px; width: min(540px, 92vw); box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
dialog[open] { animation: pop .16s ease-out both; }
dialog::backdrop { background: rgba(5, 3, 12, .65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.wide { width: min(780px, 94vw); }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 99; }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 4px solid var(--ok); padding: 11px 16px; border-radius: 12px; max-width: 380px; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); animation: slidein .22s ease-out both; }
.toast::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 9px; }
.toast.err { border-left-color: var(--bad); }
.toast.err::before { content: '✕'; color: var(--bad); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- Zähler in der Seitenleiste ---------- */
.navbadge { margin-left: auto; min-width: 20px; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #ff7a8c, #ef4444); box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); animation: badgepulse 2.2s ease-out infinite; }
.navbadge[hidden] { display: none; }
.pills button .pillbadge { display: inline-block; margin-left: 8px; vertical-align: middle; line-height: 17px; font-size: 10.5px; }
.pills button .pillbadge[hidden] { display: none; }
.pills button .pillbadge.dot { width: 9px; height: 9px; min-width: 9px; vertical-align: baseline; }
.navbadge.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; line-height: 0; }
.navdot { display: none; margin-left: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, .8); }
.navgroup.folded.hasbadge .navdot { display: block; }
@keyframes badgepulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
/* ---------- Zusätzliche, dezente Animationen ---------- */
.navitem.active { animation: navpop .5s ease-out; }
.shell.intro .sidebrand, .shell.intro .whoami, .shell.intro .navgroup, .shell.intro .sidefoot { animation: slideleft .55s cubic-bezier(.2, .7, .2, 1) both; }
.shell.intro .whoami { animation-delay: .08s; } .shell.intro .navgroup:nth-child(1) { animation-delay: .14s; } .shell.intro .navgroup:nth-child(2) { animation-delay: .22s; }
.shell.intro .navgroup:nth-child(3) { animation-delay: .3s; } .shell.intro .navgroup:nth-child(4) { animation-delay: .38s; } .shell.intro .sidefoot { animation-delay: .46s; }
.logincard { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.logincard.shake { animation: shake .4s; }
.loginpage.leaving .logincard { animation: leave .32s ease-in forwards; }
.guilds .gcard { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.guilds .gcard:nth-child(2) { animation-delay: .05s; } .guilds .gcard:nth-child(3) { animation-delay: .1s; } .guilds .gcard:nth-child(4) { animation-delay: .15s; } .guilds .gcard:nth-child(n+5) { animation-delay: .2s; }

/* Willkommens-Bildschirm (nach Login / Serverwahl) */
.welcome { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  background: radial-gradient(1000px 640px at 20% 8%, #2a1d5c 0%, transparent 60%), radial-gradient(900px 600px at 92% 96%, #1d2f66 0%, transparent 55%), #0b0d18;
  animation: wfade .35s ease-out both; }
.welcome.out { animation: wout .45s ease-in forwards; pointer-events: none; }
.welcome .orb { opacity: .35; }
.wbox { position: relative; z-index: 1; text-align: center; padding: 24px; }
.wlogo { width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 26px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-l), var(--accent2) 55%, #5a62e8);
  animation: wpop .75s cubic-bezier(.2, 1.3, .4, 1) .1s both, glow 3.5s ease-in-out .9s infinite; }
.wlogo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.wtitle { font-size: clamp(26px, 5vw, 44px); font-weight: 750; letter-spacing: -.02em; background: linear-gradient(90deg, #fff, var(--accent-xl) 60%, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .7s ease-out .35s both; }
.wsub { margin-top: 8px; font-size: clamp(15px, 2.4vw, 20px); color: var(--muted); animation: rise .7s ease-out .6s both; }
.wsub b { color: #e2d9ff; font-weight: 650; }
.wload { position: absolute; left: 0; right: 0; bottom: 9vh; margin: 0 auto; width: min(460px, 86vw); animation: rise .6s ease-out .5s both; }
.wrow { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; }
.wlabel { color: #d9d2f5; }
.wpct { color: var(--muted); font-variant-numeric: tabular-nums; }
.wbar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.wbar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent-l), #7c6cf0 55%, #5a62e8); box-shadow: 0 0 12px rgba(var(--ac), .6); transition: transform .08s linear; }
.wbytes { margin-top: 8px; font: 11px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #7b80a3; }@keyframes slideleft { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes navpop { 0% { transform: translateX(-5px); box-shadow: 0 0 0 0 rgba(var(--ac), .55); } 60% { box-shadow: 0 0 0 7px rgba(var(--ac), 0); } 100% { transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes wfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wout { to { opacity: 0; transform: scale(1.04); } }
@keyframes wpop { from { opacity: 0; transform: scale(.55) rotate(-8deg); } to { opacity: 1; transform: none; } }
/* ---------- Animationen ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.12); } }
@keyframes glow { 0%, 100% { box-shadow: 0 8px 30px rgba(var(--ac), .45); } 50% { box-shadow: 0 8px 44px rgba(var(--accent-end-rgb), .6); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; }
  .shell.navopen .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
  .shell.navopen .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(5, 3, 12, .6); }
  .mobilebar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(26, 28, 43, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .mobilebar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding: 16px 14px; }
  .hero { flex-direction: column; text-align: center; }
  .hero .row { justify-content: center; }
  .pagedesc .tools { margin-left: 0; }
}

.agephoto { display: block; max-width: 100%; max-height: 360px; border-radius: var(--r-sm); border: 1px solid var(--line2); cursor: zoom-in; }
.agephoto.big { max-height: none; cursor: zoom-out; }

/* ---------- Sprachumschalter (DE / EN) ---------- */
.langsw { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(10, 7, 19, .45); }
.langbtn { all: unset; cursor: pointer; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); transition: color .18s, background .18s; }
.langbtn:hover { color: var(--text); }
.langbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.langbtn.active { background: linear-gradient(135deg, #a98bfb, #6a45e0); color: #fff; }
.langcorner { position: absolute; top: 16px; right: 16px; z-index: 2; }
.sidefoot .langsw { align-self: center; }
/* ---------- Server-Logo ---------- */
.avatar.hasimg { background: transparent; overflow: hidden; }
.avatar.hasimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ============================================================
   Aufgeräumtes Design (überschreibt die Grundstile oben): flache Flächen, ruhige Linien, weniger Farbverläufe und Leuchteffekte
   ============================================================ */
:root {
  --bg: #0f1119; --panel: #161925; --panel2: #1c2030; --panel3: #262b40;
  --line: #232739; --line2: #313650; --muted: #8e94b3;
  --r: 12px; --r-sm: 9px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
h2 { font-size: 21px; }
.main { padding: 32px 36px; max-width: 1140px; }
.sectiontitle { margin: 34px 0 14px; font-size: 11px; letter-spacing: .1em; }
.pagedesc { margin: -6px 0 24px; font-size: 13.5px; }

/* Seitenleiste */
.sidebar { background: #12141d; border-right-color: var(--line); }
.sidebrand { padding: 20px 18px 16px; }
.brandlogo { box-shadow: none; }
.whoami { background: var(--panel); border-color: var(--line); }
.wavatar { background: #6d4be6; }
.sidenav { padding: 6px 12px 14px; }
.navgroup { margin-bottom: 10px; }
.navtitle { padding: 10px 10px 6px; font-size: 10.5px; letter-spacing: .1em; }
.navtitle > span:first-child { filter: grayscale(1); opacity: .6; font-size: 12px; }
.navgroup.current .navtitle { color: var(--muted); }
.navitem { padding: 7px 12px 7px 32px; font-size: 13.5px; transition: background .15s, color .15s; }
.navitem:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.navitem.active { background: rgba(var(--ac), .16); color: #efe9ff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.sidefoot { gap: 6px; }

/* Flächen */
.card { background: var(--panel); border-color: var(--line); padding: 20px 22px; margin-bottom: 14px; }
.card > h3 { font-size: 14.5px; }
.stat { background: var(--panel); border-color: var(--line); }
.stat.pick { background: var(--panel); }
.stat.withicon .sico, .tile .ico { background: var(--panel2); border: 1px solid var(--line); }
.hero { background: linear-gradient(120deg, rgba(var(--ac), .14), rgba(var(--ac), 0) 70%), var(--panel); border-color: var(--line); border-radius: var(--r); padding: 20px 22px; }
.hero h2 { font-size: 22px; }
.avatar { background: linear-gradient(135deg, var(--accent), #a855c7); }
.banner { background: var(--panel); }
.wxday { background: var(--panel); }

/* Buttons & Eingaben */
.btn { background: var(--panel2); border-color: var(--line2); box-shadow: none; }
.btn:hover { background: var(--panel3); border-color: var(--line2); filter: none; }
.btn.primary { background: linear-gradient(180deg, #9166f8, #7c4ff0); border-color: transparent; box-shadow: none; }
.btn.primary:hover { filter: brightness(1.08); background: linear-gradient(180deg, #9166f8, #7c4ff0); }
.btn.danger:hover { background: rgba(240, 86, 106, .12); }
input, select, textarea { background: var(--panel2); border-color: var(--line2); }
.pills button { background: transparent; border-color: var(--line2); }
.pills button:hover { border-color: var(--accent); }
.pills button.active { background: rgba(var(--ac), .18); border-color: rgba(var(--ac2), .5); color: #efe9ff; }
tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.badge { background: var(--panel3); }

/* Schnellzugriff */
.tilegroup { margin-bottom: 20px; }
.tilelabel { margin: 0 0 8px 2px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tilegrid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; margin-bottom: 0; }
.tile { padding: 10px 12px; gap: 12px; background: var(--panel); border-color: var(--line); border-radius: var(--r-sm); }
.tile:hover { transform: none; filter: none; background: var(--panel2); border-color: rgba(var(--ac2), .55); box-shadow: none; }
.tile .ico { width: 36px; height: 36px; border-radius: 9px; font-size: 17px; }
.tilebody b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.tilebody span { font-size: 12px; line-height: 1.35; }
.tile.locked { opacity: .45; }
.main > .grid.stats { margin-bottom: 14px; }

/* Überschriften der Abschnitte: ruhiger und besser lesbar als Kleinbuchstaben-Label */
.sectiontitle { font-size: 15px; font-weight: 650; text-transform: none; letter-spacing: -.005em; color: var(--text); margin: 34px 0 14px; }
/* Fußbereich der Seitenleiste: kompakt – Sprache oben, Aktionen in Zweierreihen */
.sidefoot { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 10px 12px 12px; }
.sidefoot .langrow { order: -1; flex: 1 1 100%; display: flex; justify-content: center; align-items: center; gap: 8px; }
/* Glocken-Knopf neben den Sprachen: Benachrichtigungston an/aus */
.soundbtn { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 30px; height: 30px; display: inline-grid; place-items: center; font-size: 14px; line-height: 1; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(10, 7, 19, .45); filter: grayscale(1); opacity: .6; transition: opacity .18s, filter .18s, background .18s, border-color .18s, transform .15s; }
.soundbtn:hover { opacity: 1; transform: translateY(-1px); }
.soundbtn:active { transform: scale(.92); }
.soundbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.soundbtn.on { filter: none; opacity: 1; border-color: rgba(169, 139, 251, .55); background: rgba(var(--ac), .18); }
.soundbtn.on:hover { background: rgba(var(--ac), .3); }
.sidefoot .btn { flex: 1 1 calc(50% - 3px); width: auto; padding: 7px 6px; font-size: 12px; white-space: nowrap; }
/* ---------- Tutorial ---------- */
.tutsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tutstep { display: flex; gap: 14px; align-items: flex-start; }
.tutnum { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(var(--ac), .2); color: #d9ccff; border: 1px solid rgba(var(--ac2), .4); }
.tutlist { display: grid; }
.tutitem { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.tutitem:first-child { border-top: 0; padding-top: 2px; }
.tuttext { min-width: 0; }
.tuttext b { font-size: 13.5px; }
.tuttext p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 780px; }
.tutitem .btn { flex: none; }
.tutitem[hidden], .tutstep[hidden], .card[hidden] { display: none !important; }
.tuthint { display: flex; gap: 14px; align-items: center; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--r); border: 1px solid rgba(var(--ac2), .35); background: rgba(var(--ac), .08); flex-wrap: wrap; }
.tuthint-ico { font-size: 22px; }
.tuthint-body { flex: 1; min-width: 200px; display: flex; flex-direction: column; line-height: 1.4; }
/* ---------- Wetter: Vorhersage ---------- */
.wxk.fc { stroke: none; shape-rendering: crispEdges; cursor: default; }
.wxk.fc:hover { filter: brightness(1.3); }
.wxk.fcline { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: .7; pointer-events: none; }
.fcdays { margin: 0 0 12px; }
.fcday { display: inline-flex !important; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px !important; border-radius: var(--r-sm) !important; min-width: 78px; }
.fcday b { font-size: 12px; font-weight: 600; }
.fcday .fcico { font-size: 18px; line-height: 1.2; }
.fclv { width: 26px; height: 4px; border-radius: 4px; background: #3ecf8e; }
.fclv.l2 { background: #f5b942; } .fclv.l3 { background: #f97316; } .fclv.l4 { background: #ef4444; }
.fclegend { margin-top: 12px; display: grid; gap: 6px; }
.fcrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; }
.fcrow > b { min-width: 130px; font-weight: 600; }
.fcsw { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.fcsw i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(255, 255, 255, .15); }
.fcbar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.fcbar i { flex: 1; max-width: 340px; height: 12px; border-radius: 6px; display: block; }
.fclines { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.fcnotes { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
tr.fcsel td { background: rgba(var(--ac), .1); }
/* ---------- Vorhersage-Karte im Stil der SPC-Outlooks: helle Landkarte, geglättete Flächen je Stufe ---------- */
.wxmapbox.fcmapbox { background: #d9e4ef; border-color: #b9c6d4; }
.wxk.fcland { fill: #fbfcfd; stroke: #b3bcc9; stroke-width: .5; cursor: default; }
.wxk.fcland.other { fill: #e8ecf1; }
.wxk.fcborder { fill: none; stroke: #6f7a8c; stroke-width: 1; pointer-events: none; }
.wxk.fcband { stroke: #3d4553; stroke-opacity: .6; stroke-width: .9; fill-opacity: .82; pointer-events: none; cursor: default; }
.wxk.fchit { fill: transparent; stroke: none; cursor: default; }
.wxk.fchit:hover { fill: rgba(25, 35, 55, .16); }
.wxlbl { fill: #1b2230; stroke: rgba(255, 255, 255, .95); paint-order: stroke; font-weight: 600; font-family: inherit; }
.wxlbldot { fill: #1b2230; stroke: #fff; stroke-width: .7; vector-effect: non-scaling-stroke; }
.fctitle { margin: 0 0 8px; padding: 6px 12px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); font-weight: 650; font-size: 13.5px; }
.fclegend { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel2); }
/* ---------- Vorhersage: Mausüberfahrt, Kategorien-Tafel, Flächenbalken ---------- */
.fcmapbox { position: relative; }
.fctip { position: absolute; left: 0; top: 0; z-index: 6; width: 290px; max-width: 80%; pointer-events: none; border-radius: 10px; overflow: hidden; background: #fff; color: #1b2230; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); font-size: 12.5px; line-height: 1.4; }
.fctip[hidden] { display: none; }
.fctiphead { padding: 8px 12px; display: flex; flex-direction: column; gap: 1px; }
.fctiphead b { font-size: 13.5px; }
.fctiphead span { font-size: 12px; opacity: .85; }
.fctipdesc { margin: 8px 12px 0; color: #475066; }
.fctiprows { margin: 8px 12px 0; display: grid; gap: 4px; }
.fctiprow { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.fctiprow i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .25); }
.fctiprow em { font-style: normal; color: #475066; font-size: 12px; }
.fctiprow.on span { font-weight: 700; }
.fctipfoot { margin: 8px 0 0; padding: 7px 12px; background: #f1f4f8; color: #5b6579; font-size: 11.5px; }
.fccats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.fccat { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; text-align: center; border-right: 1px solid rgba(0, 0, 0, .35); }
.fccat:last-child { border-right: 0; }
.fccat b { font-size: 14px; }
.fccat strong { font-size: 13.5px; line-height: 1.3; }
.fccat span { font-size: 12.5px; line-height: 1.4; opacity: .9; }
.fcarea { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--panel3); min-width: 110px; }
.fcarea i { display: block; }
.badge.catbadge { font-weight: 700; }
/* ---------- Vorhersage-Karte: Details (Landkreise, Gebietsnamen) ---------- */
.fcopts { margin: 0 0 10px; gap: 4px 20px; }
.fcopts label.check { margin: 0; font-size: 13px; }
.wxk.fckreis { fill: none; stroke: rgba(60, 70, 90, .32); stroke-width: .45; pointer-events: none; }
.wxlbl.region { fill: #8792a4; font-weight: 500; letter-spacing: .03em; stroke: rgba(255, 255, 255, .7); }
/* Vorhersage-Karte: Fadenkreuz statt Hand, Werte gelten an jeder Stelle */
.fcmapbox .wxsvg { cursor: crosshair; }
.fcmapbox .wxsvg:active { cursor: grabbing; }
/* ---------- Plattform-Logos (Fluxer / Discord) auf der Serverauswahl und in der Seitenleiste ---------- */
.avwrap { position: relative; width: 56px; margin: 0 auto 10px; }
.avwrap .avatar { margin: 0; }
.pbadge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #161828; border: 2px solid #161828; box-sizing: content-box; }
.pbadge img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.avwrap .pbadge { position: absolute; right: -12px; bottom: -8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.pbadge.sm { width: 15px; height: 15px; border-width: 1px; margin-right: 6px; vertical-align: -3px; }
.pname { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-top: 4px; }
/* Anmeldung beim anderen Bot (z. B. "Mit Discord anmelden") */
.platformlogin { text-align: center; text-decoration: none; margin-top: 10px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: none; }
.platformlogin:hover { text-decoration: none; filter: brightness(1.12); }
.platformlogin.discord { background: linear-gradient(135deg, #5865f2, #4752c4); }
.platformlogin.fluxer { background: linear-gradient(135deg, #4641d9, #3733b0); }
/* Ladebildschirm: Plattform des Servers (Fluxer / Discord) */
.wplatrow { margin-top: 14px; text-align: center; }
.wplat { display: inline-flex; align-items: center; gap: 8px; padding: 5px 15px 5px 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); font-size: 14px; font-weight: 600; color: #e2d9ff; animation: rise .7s ease-out .85s both; }
.wplat .pbadge { width: 24px; height: 24px; border: 0; background: transparent; margin: 0; }
/* Profilbild (Seitenleiste, Bild wechseln, Team-Liste) */
.wavatar { position: relative; }
.wavatar.hasimg { background: transparent; }
.wavatar > img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.wavatar.editable { cursor: pointer; }
.wavatar.editable:hover { outline: 2px solid var(--accent); outline-offset: 1px; }
.wavatar .pbadge { position: absolute; right: -7px; bottom: -7px; width: 15px; height: 15px; border-width: 1px; margin: 0; }
.avatarprev { width: 96px; height: 96px; border-radius: 22px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; margin: 4px 0 10px; color: var(--muted); font-size: 12px; }
.avatarprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acimg, .acini { width: 24px; height: 24px; border-radius: 8px; margin-right: 8px; vertical-align: middle; }
.acimg { object-fit: cover; }
.acini { display: inline-grid; place-items: center; background: #6d4be6; font-size: 10px; font-weight: 700; }
/* ---------- Weitere Animationen (alle aus, wenn der Browser "Bewegung reduzieren" meldet) ---------- */
html { scroll-behavior: smooth; }

/* Beim Betreten einer Seite (Klasse .entering, nur kurz): Kacheln, Karten, Tabellenzeilen und Balken blenden gestaffelt ein */
.entering .grid > *, .entering .guilds > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.entering .grid > :nth-child(2) { animation-delay: .04s; } .entering .grid > :nth-child(3) { animation-delay: .08s; } .entering .grid > :nth-child(4) { animation-delay: .12s; }
.entering .grid > :nth-child(5) { animation-delay: .16s; } .entering .grid > :nth-child(6) { animation-delay: .2s; } .entering .grid > :nth-child(7) { animation-delay: .24s; }
.entering .grid > :nth-child(8) { animation-delay: .28s; } .entering .grid > :nth-child(n+9) { animation-delay: .32s; }
.entering tbody tr { animation: rowin .32s ease-out both; }
.entering tbody tr:nth-child(2) { animation-delay: .03s; } .entering tbody tr:nth-child(3) { animation-delay: .06s; } .entering tbody tr:nth-child(4) { animation-delay: .09s; }
.entering tbody tr:nth-child(5) { animation-delay: .12s; } .entering tbody tr:nth-child(6) { animation-delay: .15s; } .entering tbody tr:nth-child(7) { animation-delay: .18s; }
.entering tbody tr:nth-child(8) { animation-delay: .21s; } .entering tbody tr:nth-child(n+9) { animation-delay: .24s; }
.entering .stat > b { animation: numpop .55s cubic-bezier(.2, 1.2, .4, 1) both; }
.entering .spark i { transform-origin: bottom; animation: growy .65s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rowin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes numpop { from { opacity: 0; transform: translateY(7px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes growy { from { transform: scaleY(0); } to { transform: none; } }
@keyframes growx { from { width: 0; } }
@keyframes dlgin { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slideout { to { opacity: 0; transform: translateX(18px); } }
@keyframes pillpop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: none; } }

/* Knöpfe, Kacheln, Karten: sanftes Anheben beim Darüberfahren, Eindrücken beim Klicken */
.btn { transition: border-color .15s, filter .15s, background .2s, box-shadow .2s, transform .16s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.primary:hover { box-shadow: 0 6px 18px rgba(var(--ac3), .38); }
.stat, .card { transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.grid.stats > .stat:hover { transform: translateY(-2px); border-color: rgba(var(--ac2), .45); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.card:hover { border-color: rgba(var(--ac2), .26); }
tbody td { transition: background .18s; }
.badge, .chip { transition: transform .18s, background .2s; }
.chip:hover { transform: translateY(-1px); }

/* Seitenleiste: Einträge rücken beim Darüberfahren ein, Gruppen-Symbole wippen, Logo und Profilbild reagieren */
.navitem { transition: background .18s, color .18s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.navitem:hover { transform: translateX(3px); }
.navitem.active:hover { transform: none; }
.navtitle > span:first-child { transition: transform .25s cubic-bezier(.2, 1.3, .4, 1); display: inline-block; }
.navtitle:hover > span:first-child { transform: scale(1.18) rotate(-6deg); }
.navgroup.unfolding .navitem { animation: slideleft .28s cubic-bezier(.2, .7, .2, 1) both; }
.navgroup.unfolding .navitem:nth-of-type(2) { animation-delay: .04s; } .navgroup.unfolding .navitem:nth-of-type(3) { animation-delay: .08s; }
.navgroup.unfolding .navitem:nth-of-type(4) { animation-delay: .12s; } .navgroup.unfolding .navitem:nth-of-type(n+5) { animation-delay: .16s; }
.sidebrand .brandlogo { transition: transform .3s cubic-bezier(.2, 1.3, .4, 1); }
.sidebrand:hover .brandlogo { transform: rotate(-7deg) scale(1.07); }
.wavatar { transition: transform .22s cubic-bezier(.2, 1.3, .4, 1), outline-color .2s; }
.whoami:hover .wavatar { transform: scale(1.07); }

/* Reiter, Meldungen, Dialoge */
.pills button.active { animation: pillpop .34s cubic-bezier(.2, 1.3, .4, 1); }
.toast.out { animation: slideout .22s ease-in forwards; }
dialog[open] { animation: dlgin .24s cubic-bezier(.2, .9, .3, 1.1) both; }
dialog[open]::backdrop { animation: wfade .24s ease-out both; }
.card.collapsible:not(.collapsed) > :not(h3) { animation: rise .28s ease-out both; }

/* Serverauswahl */
.gcard .avatar { transition: transform .26s cubic-bezier(.2, 1.3, .4, 1); }
.gcard:hover .avatar { transform: scale(1.08) rotate(-3deg); }
.pbadge { transition: transform .26s cubic-bezier(.2, 1.3, .4, 1); }
.gcard:hover .pbadge { transform: scale(1.18); }

/* ---------- Seite „Datenbank“ ---------- */
.sbar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; min-width: 80px; }
.sbar > i { display: block; height: 100%; width: var(--w, 0); border-radius: 99px; background: linear-gradient(90deg, var(--accent), #6d8cf6); animation: growx .8s cubic-bezier(.2, .8, .2, 1) both; }
.sbar.warn > i { background: linear-gradient(90deg, #f5b942, #f59e0b); }
.sbar.bad > i { background: linear-gradient(90deg, #f0566a, #ef4444); }
.stackbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .07); margin: 16px 0 8px; gap: 2px; }
.stackbar > i { display: block; height: 100%; width: var(--w); animation: growx .9s cubic-bezier(.2, .8, .2, 1) both; }
.stackbar > i:first-child { border-radius: 99px 0 0 99px; } .stackbar > i:last-child { border-radius: 0 99px 99px 0; }
.stacklegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.stacklegend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.subhead { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.botwide + .botwide { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.diskbar { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.refreshing { opacity: .55; transition: opacity .2s; }
/* ---------- Bot-Status in der Server-Auswahl (unten, klein) ---------- */
.botstatus { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 5; display: flex; justify-content: center; gap: 10px 14px; flex-wrap: wrap; padding: 0 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
.botstatus:empty { display: none; }
.bsitem { display: inline-flex; align-items: center; gap: 7px; padding: 4px 13px 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); pointer-events: auto; transition: border-color .3s; }
.bsitem.new { animation: rise .4s ease-out both; }
.bsitem b { font-weight: 600; color: var(--text); }
.bsitem em { font-style: normal; opacity: .65; }
.bsdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
/* Ampel: grün = online, orange ab 150 ms Ping, rot ab 200 ms, blau = Wartungsmodus, gelb blinkend = verbindet, grau = offline/gestoppt */
.bsitem.on .bsdot { --pc: 62, 207, 142; background: var(--ok); animation: bspulse 2.4s ease-out infinite; }
.bsitem.on b { color: var(--ok); }
.bsitem.slow .bsdot { --pc: 255, 138, 61; background: #ff8a3d; animation: bspulse 2.4s ease-out infinite; }
.bsitem.slow b, .bsitem.slow em { color: #ff8a3d; }
.bsitem.crit .bsdot { --pc: 240, 86, 106; background: var(--bad); animation: bspulse 1.6s ease-out infinite; }
.bsitem.crit b, .bsitem.crit em { color: #ff6b81; }
.bsitem.slow em, .bsitem.crit em { opacity: .9; }
.bsitem.maint .bsdot { --pc: 96, 165, 250; background: #60a5fa; animation: bspulse 3.2s ease-out infinite; }
.bsitem.maint b { color: #7ab6ff; }
.bsitem.maint em { color: #7ab6ff; opacity: .9; }
.bsitem.wait .bsdot { background: var(--warn); animation: blink 1.2s ease-in-out infinite; }
.bsitem.wait b { color: var(--warn); }
.bsitem.off .bsdot { background: #6b7090; }
.bsitem.off b { color: #8e94b3; }
.bsitem .bsdot, .bsitem b { transition: background-color .4s, color .4s; }
@keyframes bspulse { 0% { box-shadow: 0 0 0 0 rgba(var(--pc, 62, 207, 142), .55); } 70% { box-shadow: 0 0 0 7px rgba(var(--pc, 62, 207, 142), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--pc, 62, 207, 142), 0); } }
/* ---------- Diagramme (detailliert): weiche Linien mit Flächen, Achsen, Zeitmarken, Legende zum Ein-/Ausblenden, Hover-Fenster ---------- */
.chartbox { position: relative; }
.charthead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.chartlegend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lchip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 12px 3px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--muted); transition: opacity .2s, border-color .15s, background .2s, transform .15s; }
.lchip:hover { border-color: var(--line2); background: var(--panel2); transform: translateY(-1px); }
.lchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lchip.off { opacity: .42; }
.lchip.off .lname { text-decoration: line-through; }
.lchip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; align-self: center; }
.lchip b { color: var(--text); font-variant-numeric: tabular-nums; }
.lchip small { font-size: 11px; opacity: .85; }
.chartsvg .axisline { stroke: var(--line2); stroke-width: 1; }
.chartsvg .gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.chartsvg .vgrid { stroke: var(--line); stroke-width: 1; opacity: .35; }
.chartsvg .axisunit { font-size: 10px; opacity: .8; }
.chartsvg .thrlabel { font-size: 10px; font-weight: 600; }
.chartsvg .peaklabel { fill: var(--text); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: #0e1020; stroke-width: 3px; stroke-linejoin: round; }
.chartsvg .area { pointer-events: none; }
.chartsvg .area.fadein { animation: wfade .9s ease-out both; }
.chartsvg .ln.drawin { stroke-dasharray: 1; stroke-dashoffset: 1; animation: linedraw 1s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes linedraw { to { stroke-dashoffset: 0; } }
.chartsvg .halo { transform-box: fill-box; transform-origin: center; animation: halo 2s ease-out infinite; }
@keyframes halo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }
.chartsvg .hlband { fill: rgba(var(--ac2), .12); transition: opacity .12s; }
.chartsvg .night { fill: rgba(8, 10, 34, .38); }
.chartsvg .actbar.grow { transform-box: fill-box; transform-origin: 50% 100%; animation: growy .55s cubic-bezier(.2, .8, .2, 1) both; }
.chartsvg .cross { pointer-events: none; }
.charttip .tiptime { font-weight: 600; margin-bottom: 4px; color: var(--text); }
.charttip .tr { display: flex; align-items: center; gap: 7px; line-height: 1.65; }
.charttip .tr i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.charttip .tr span { color: var(--muted); }
.charttip .tr b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.charttip .tr small { font-size: 10.5px; }
.charttip .tr small.up { color: var(--warn); }
.charttip .tr small.down { color: var(--ok); }
.charttip .tr.sel span { color: var(--text); font-weight: 600; }
.charttip .tr.total { margin-top: 3px; padding-top: 3px; border-top: 1px solid var(--line); }
.actsummary { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.sumchip { display: inline-flex; gap: 8px; align-items: baseline; padding: 3px 13px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }
.sumchip b { font-variant-numeric: tabular-nums; }
.stat.pick .mini { display: block; width: 100%; height: 24px; margin-top: 8px; }
.stat.pick .share { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.pills button.tog { margin-left: 8px; }
.nightkey i { background: rgba(8, 10, 34, .9); border: 1px solid var(--line2); border-radius: 3px; }

/* ---------- Willkommensbild-Editor ---------- */
.wcgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 18px; align-items: start; margin-top: 12px; }
.wcleft { position: sticky; top: 12px; min-width: 0; }
.wcstage { position: relative; width: 100%; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line2); background: repeating-conic-gradient(#232640 0% 25%, #1a1c2b 0% 50%) 0 0 / 22px 22px; user-select: none; -webkit-user-select: none; touch-action: none; min-height: 120px; }
.wcstage.drop { outline: 2px dashed var(--accent); outline-offset: -4px; }
.wcimg { display: block; width: 100%; height: auto; pointer-events: none; }
.wcbox { position: absolute; border: 1.5px dashed rgba(255, 255, 255, .45); border-radius: 4px; cursor: move; touch-action: none; transition: border-color .12s, background .12s; }
.wcbox span { position: absolute; left: -1px; top: -19px; padding: 1px 6px; font-size: 10.5px; line-height: 16px; border-radius: 4px 4px 0 0; background: rgba(20, 22, 40, .9); color: #d9ccff; white-space: nowrap; opacity: 0; transition: opacity .12s; pointer-events: none; }
.wcbox:hover { border-color: #fff; background: rgba(var(--ac), .12); }
.wcbox:hover span, .wcbox.sel span { opacity: 1; }
.wcbox.sel { border: 2px solid var(--accent); background: rgba(var(--ac), .14); }
.wcsample { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; margin: 12px 0 8px; }
.wcright { display: grid; gap: 8px; min-width: 0; }
.wcsec { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.wcsec > summary { cursor: pointer; padding: 9px 12px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.wcsec > summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.wcsec[open] > summary::before { transform: rotate(90deg); }
.wcsec > summary::-webkit-details-marker { display: none; }
.wcbody { padding: 4px 12px 12px; display: grid; gap: 8px; }
[hidden] { display: none !important; }
.wcslider { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(80px, 1.5fr) 78px; gap: 8px; align-items: center; margin: 0; }
.wcslider span:first-child { font-size: 12.5px; color: var(--muted); }
.wcslider input[type=range] { width: 100%; accent-color: var(--accent); }
.wcval { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.wccolor { display: flex; align-items: center; gap: 8px; margin: 0; }
.wccolor span { font-size: 12.5px; color: var(--muted); }
.wccolor input[type=color] { width: 38px; height: 26px; padding: 0; border: 1px solid var(--line2); border-radius: 6px; background: none; cursor: pointer; }
.wcpair { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; }
.wccolor { justify-content: space-between; }
.wcbody > .btn, .wcbody > .row { justify-self: start; }
.wclayers { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 6px; }
.wcfonts { display: flex; gap: 6px; flex-wrap: wrap; }
.wcx { all: unset; cursor: pointer; margin-left: 6px; color: var(--muted); font-size: 11px; }
.wcx:hover { color: var(--bad); }
@media (max-width: 980px) { .wcgrid { grid-template-columns: 1fr; } .wcleft { position: static; } }

/* ---------- Vorschläge ---------- */
.sugs { display: grid; gap: 12px; }
.sugitem { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--r-sm); background: var(--panel); display: grid; gap: 8px; }
.sugitem.accepted { border-left-color: var(--ok); }
.sugitem.rejected { border-left-color: var(--bad); }
.sughead { align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.sugtext { white-space: pre-wrap; word-break: break-word; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.sugcomment { color: var(--muted); font-size: 13px; }
.sugact { gap: 6px; flex-wrap: wrap; }

/* ---------- Backups: Ordner je Server ---------- */
.bkpath { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); word-break: break-all; }

/* ============================================================
   Knöpfe im Dashboard mit Farbverlauf & Bewegung (Design 3): Hintergrund, Flächen und Login bleiben unverändert.
   Hauptknöpfe (Speichern, Bestätigen …) und aktive Auswahl bekommen denselben Violett-Verlauf wie die Login-Knöpfe.
   Dazu ein paar dezente Animationen; bei „Bewegung reduzieren“ (Betriebssystem) ist alles Animierte aus.
   ============================================================ */
:root {
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 52%, #b030d9 100%);                 /* wie die Login-Knöpfe */
  --grad-soft: linear-gradient(135deg, rgba(var(--ac), .30), rgba(176, 48, 217, .16));   /* dezente Variante (aktive Auswahl) */
}

/* Hauptknöpfe */
.btn.primary { background: var(--grad); border-color: rgba(214, 190, 255, .28); box-shadow: 0 6px 18px rgba(var(--ac), .36); position: relative; overflow: hidden; }
.btn.primary:hover { background: var(--grad); filter: brightness(1.1); box-shadow: 0 8px 22px rgba(var(--ac), .5); }

/* Aktive Auswahl */
.pills button.active { background: var(--grad-soft); border-color: rgba(190, 150, 250, .55); color: #f6efff; }
.navitem.active { background: linear-gradient(90deg, rgba(var(--ac), .26) 0%, rgba(176, 48, 217, .07) 100%); }
.menupop .btn:hover { background: var(--grad-soft); }
.soundbtn.on { background: var(--grad-soft); }

/* ---------- Bewegung (nur wenn das Betriebssystem keine Bewegungs-Reduzierung verlangt) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Seitenleiste: kleiner Auswahlbalken wächst beim Überfahren, der Eintrag rückt minimal vor */
  .navitem { position: relative; transition: background .18s, color .18s, transform .18s; }
  .navitem::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 3px; background: var(--grad); transform: scaleY(0); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  .navitem:hover::before { transform: scaleY(.5); }
  .navitem.active::before { transform: scaleY(1); }
  .navitem:hover { transform: translateX(2px); }
  .navitem.active { background-size: 200% 100%; animation: navshift 7s ease-in-out infinite alternate; }
  @keyframes navshift { from { background-position: 0 0; } to { background-position: 60% 0; } }

  /* Knöpfe: heben sich beim Überfahren leicht; die Hauptknöpfe bekommen einen Lichtstreifen */
  .btn { transition: border-color .18s, background .18s, transform .15s, box-shadow .2s, filter .18s; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px) scale(.985); }
  .btn.primary::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .26) 50%, transparent 65%); transform: translateX(-130%); }
  .btn.primary:hover::after { transform: translateX(130%); transition: transform .75s ease; }

  /* Karten und Kacheln: Rand hellt leicht auf, Kacheln heben sich */
  .card, .stat, .tile { transition: border-color .25s, box-shadow .25s, transform .25s, background .25s; }
  .card:hover { border-color: rgba(140, 150, 245, .26); }
  .stat:hover, .tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(8, 10, 38, .4); }
  .tile .ico, .stat.withicon .sico { transition: transform .25s cubic-bezier(.2, 1.3, .4, 1); }
  .tile:hover .ico, .stat.withicon:hover .sico { transform: scale(1.08) rotate(-4deg); }
  .gcard { transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .22s, box-shadow .22s; }
  .gcard:hover { transform: translateY(-4px); }
  .gcard.gsupport:hover { transform: none; }

  /* Kachel- und Statistik-Raster blenden gestaffelt ein */
  .grid.stats > *, .tilegrid > * { animation: rise .42s cubic-bezier(.2, .7, .2, 1) both; }
  .grid.stats > :nth-child(2), .tilegrid > :nth-child(2) { animation-delay: .04s; } .grid.stats > :nth-child(3), .tilegrid > :nth-child(3) { animation-delay: .08s; }
  .grid.stats > :nth-child(4), .tilegrid > :nth-child(4) { animation-delay: .12s; } .grid.stats > :nth-child(5), .tilegrid > :nth-child(5) { animation-delay: .16s; }
  .grid.stats > :nth-child(6), .tilegrid > :nth-child(6) { animation-delay: .2s; } .grid.stats > :nth-child(n+7), .tilegrid > :nth-child(n+7) { animation-delay: .24s; }

  /* Kästchen und Reiter „poppen“ beim Auswählen */
  input[type=checkbox]:checked, input[type=radio]:checked { animation: pillpop .25s ease-out; }
  .pills button.active { animation: pillpop .3s ease-out; }

  /* Hinweis-Meldung: dünner Zeitstrich unten zeigt, wie lange sie noch da ist */
  .toast { position: relative; overflow: hidden; }
  .toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: left; animation: toastbar 3s linear forwards; }
  .toast.err::after { background: var(--bad); animation-duration: 6s; }
  @keyframes toastbar { to { transform: scaleX(0); } }

  /* Laden: sanftes Pulsieren statt hartem Abdunkeln */
  .refreshing { animation: softpulse 1.2s ease-in-out infinite; }
  @keyframes softpulse { 0%, 100% { opacity: .55; } 50% { opacity: .8; } }
}

/* ---------- Bot-Check (Gesundheitscheck) ---------- */
.hhead { display: flex; gap: 20px; align-items: center; }
.hlamp { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line2); }
.hlamp i { width: 34px; height: 34px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 22px rgba(62, 207, 142, .55); }
.hhead.warn .hlamp i { background: var(--warn); box-shadow: 0 0 22px rgba(245, 185, 66, .55); }
.hhead.bad .hlamp i { background: var(--bad); box-shadow: 0 0 22px rgba(240, 86, 106, .55); }
.hsum { min-width: 0; }
.hsum h3 { margin: 0 0 4px; font-size: 18px; }
.hsum p { margin: 0 0 10px; }
.hitem { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.hitem:first-of-type { border-top: 0; padding-top: 2px; }
.hico { flex: none; width: 22px; text-align: center; }
.hbody { min-width: 0; }
.hbody b { font-size: 13.5px; }
.hdetail { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hfix { margin: 5px 0 0; font-size: 13px; line-height: 1.5; padding: 7px 10px; border-radius: var(--r-sm); background: rgba(var(--ac), .1); border-left: 3px solid var(--accent); }
.hfix span { font-weight: 600; }
.hitem.bad .hfix { background: rgba(240, 86, 106, .09); border-left-color: var(--bad); }
.hitem.warn .hfix { background: rgba(245, 185, 66, .09); border-left-color: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  .hhead.bad .hlamp i { animation: badgepulse 2.2s ease-out infinite; }
  .hitem { animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
}

/* ---------- Wachstum & Aktivität ---------- */
.chlist { display: grid; gap: 8px; }
.chrow { display: grid; grid-template-columns: 26px minmax(80px, 220px) 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.chrank { text-align: right; font-variant-numeric: tabular-nums; }
.chname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chbar .sbar { min-width: 60px; }
.chrow b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .chrow { grid-template-columns: 22px 1fr 56px; } .chbar { display: none; } }
/* ---------- Embed-Baukasten & Nachrichten-Vorschau ---------- */
.eb-lay { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.eb-left, .eb-right { min-width: 0; }
.eb-right { position: sticky; top: 12px; }
@media (max-width: 1000px) { .eb-lay { grid-template-columns: 1fr; } .eb-right { position: static; } }
.eb-item { border: 1px solid var(--line); background: var(--panel2); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 10px; }
.eb-item label { margin-bottom: 8px; }
.eb-itemhead { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.eb-itemhead .spacer { flex: 1; }
.eb-edit { border: 1px solid var(--accent); background: var(--grad-soft, rgba(var(--ac), .18)); border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
.eb-count { text-align: right; font-size: 12px; margin: 8px 0; }
.eb-count .bad { color: var(--bad); font-weight: 600; }
.eb-send { border-top: 1px solid var(--line); padding-top: 10px; }
.eb-send .row { margin-top: 8px; flex-wrap: wrap; }
.eb-tpl { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.eb-tpl:last-child { border-bottom: 0; }
.eb-tplname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); padding: 0; cursor: pointer; transition: transform .15s; }
.swatch:hover { transform: scale(1.18); }
input[type="color"] { width: 44px; height: 34px; padding: 2px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; cursor: pointer; }

/* Vorschau im Stil einer Chat-Nachricht (nur Darstellung, es wird nichts nachgeladen) */
.dcmsg { display: flex; gap: 12px; background: #1a1c27; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; font-size: 14px; line-height: 1.45; }
.dcav { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--grad, var(--accent2)); display: grid; place-items: center; font-size: 20px; }
.dcbody { min-width: 0; flex: 1; }
.dchead { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.dcbot { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.dcempty { color: var(--muted); font-style: italic; padding: 6px 0; }
.dctext, .edesc { overflow-wrap: anywhere; }
.dcmsg a { color: #7aa7ff; text-decoration: none; } .dcmsg a:hover { text-decoration: underline; }
.mdl:empty::after { content: "\200b"; }
.mdh { font-weight: 700; margin: 6px 0 2px; } .mdh1 { font-size: 20px; } .mdh2 { font-size: 17px; } .mdh3 { font-size: 15px; }
.mdli { display: flex; gap: 8px; padding-left: 6px; }
.mdquote { margin: 2px 0; padding-left: 10px; border-left: 4px solid var(--line2); }
.mdcode { background: rgba(255, 255, 255, .08); border-radius: 4px; padding: 0 4px; font-size: 13px; }
.mdpre { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin: 4px 0; overflow-x: auto; font-size: 13px; white-space: pre-wrap; }
.mdmention { background: rgba(88, 101, 242, .3); color: #c9d1ff; border-radius: 4px; padding: 0 3px; font-weight: 500; }
.mdspoil { background: #3a3d4d; color: transparent; border-radius: 4px; cursor: pointer; user-select: none; }
.mdspoil.shown { background: rgba(255, 255, 255, .1); color: inherit; user-select: auto; }
.dcembed { margin-top: 6px; max-width: 520px; background: #232634; border-left: 4px solid var(--accent); border-radius: 4px; padding: 8px 12px 12px 12px; }
.dcembed .ebody { display: flex; gap: 12px; }
.dcembed .etext { flex: 1; min-width: 0; }
.eauthor { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; margin: 4px 0; }
.eico { font-size: 12px; opacity: .7; }
.etitle { font-weight: 700; font-size: 15px; margin: 4px 0; overflow-wrap: anywhere; }
.edesc { font-size: 13.5px; margin-top: 4px; }
.efields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.efield { grid-column: span 6; min-width: 0; } .efield.inl { grid-column: span 2; }
@media (max-width: 560px) { .efield.inl { grid-column: span 3; } }
.efname { font-weight: 700; font-size: 13px; margin-bottom: 2px; overflow-wrap: anywhere; }
.efval { font-size: 13px; overflow-wrap: anywhere; }
.eph { display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--line2); border-radius: 6px; color: var(--muted); font-size: 11px; overflow: hidden; }
.eph span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }
.ethumb { flex: none; width: 80px; height: 80px; }
.eimage { margin-top: 10px; height: 150px; }
.efoot { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.dcbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dcmsg a.dcbtn { background: #4e5058; color: #fff; border-radius: 4px; padding: 6px 14px; font-size: 13px; font-weight: 500; }
.dcmsg a.dcbtn:hover { background: #6d6f78; text-decoration: none; }
.eb-inline { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.eb-inline > input, .eb-inline > select { flex: 1; min-width: 0; width: auto; }
.eb-inline > button { flex: none; }
.eb-color { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eb-color input[type="text"] { width: 110px; flex: none; }
/* ---------- Support-Anfragen ---------- */
.supcard { margin-top: 12px; }
.suptext { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0 10px; font-size: 13.5px; }
.supmeta { font-size: 12.5px; margin-top: 4px; overflow-wrap: anywhere; }
.supportreqbtn { width: 100%; }.supportrow { display: grid; gap: 6px; }
.supportrow:empty { display: none; }
.supreply { border-left: 3px solid var(--accent); background: var(--grad-soft, rgba(var(--ac), .14)); border-radius: var(--r-sm); padding: 8px 12px; margin-top: 8px; }.sidefoot .supportrow { flex: 1 1 100%; width: 100%; min-width: 0; }
.sidefoot .supportrow .btn { width: 100%; flex: none; white-space: normal; }

/* Unwetter-Karte: Warnpolygone wie beim NWS (dicke Umrandung, leichte Füllung) */
.wxk.stormpoly { fill-opacity: .13; stroke-width: 3.2; stroke-linejoin: round; cursor: pointer; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .95)); }
.wxk.stormpoly.pds { fill-opacity: .22; stroke-width: 4.2; }
.wxk.stormpoly.severe { stroke-width: 3; }
.wxk.stormpoly:hover { fill-opacity: .32; }
.wxk.stormrot { fill: rgba(255, 255, 255, .14); stroke: #fff; stroke-width: 1.2; stroke-dasharray: 3 3; cursor: default; }
.stormbox .wxsvg { height: clamp(520px, 78vh, 920px); }
.stormctl { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.stormctl-h { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
/* Meldungen von Beobachtern (Symbole auf der Karte) */
.wxmk { stroke: #0b1020; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .8)); }
.wxmk:hover { stroke: #fff; }
.wxmk.chaser { stroke: #fff; stroke-width: 2.4; }
.wxmk.chaserlive { stroke: var(--accent); stroke-width: 2.6; }
.replegend b { font-size: 13px; line-height: 1; }
.replegend b.chaserkey { color: #fff; }
.repglyph { font-style: normal; font-size: 16px; width: 16px; text-align: center; flex: none; line-height: 1; text-shadow: 0 0 2px rgba(0, 0, 0, .8); }
.stormlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.stormlegend span { display: inline-flex; align-items: center; gap: 6px; }
.stormlegend i { width: 18px; height: 12px; border: 2.5px solid; border-radius: 3px; display: inline-block; box-sizing: border-box; }
.stormlegend i.rot { width: 13px; height: 13px; border: 1.5px dashed #fff; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.stormrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.stormrow:last-of-type { border-bottom: 0; }
.stormdot { width: 14px; height: 14px; border-radius: 4px; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.stormtxt { flex: 1; min-width: 0; }
.stormtxt .muted { font-size: 12.5px; margin-top: 2px; }
@media (max-width: 640px) { .stormrow { align-items: flex-start; flex-wrap: wrap; } .stormtxt { flex-basis: calc(100% - 30px); } }

/* Protokoll: je Ereignis ein Haken und optional ein eigener Kanal */
.logrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.logrow .check { flex: 1 1 340px; margin: 0; }
.logrow select { flex: 0 1 230px; width: 230px; max-width: 100%; }

/* Reaktionsrollen-Import: Panels mit Kanal-Auswahl und Rollen-Status */
.rrx-panel { border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.rrx-panel.off { opacity: .55; }
.rrx-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rrx-head .check { flex: 1 1 240px; margin: 0; font-weight: 600; }
.rrx-head select { flex: 0 1 230px; width: 230px; max-width: 100%; }
.rrx-pairs { margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.rrx-pair { display: flex; gap: 6px; align-items: center; font-size: 13px; min-width: 0; }
.rrx-pair b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-pill.bad { background: rgba(240, 86, 106, .18); color: #f0566a; }

/* Umfragen: Balken-Diagramm der Stimmen */
.pollrow { margin: 10px 0; }
.pollhead { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 4px; }
.pollbar { height: 12px; background: var(--panel3); border-radius: 8px; overflow: hidden; }
.pollfill { height: 100%; min-width: 2px; background: var(--grad, var(--accent)); border-radius: 8px; transition: width .4s ease; }
.pollfill.best { background: var(--ok); }

/* ===== Öffentliche Startseite (vor dem Login) ===== */
.landing { position: relative; min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: hidden; }
.landing * { box-sizing: border-box; }
.lp-orb { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0; }
.lp-orb.a { width: 520px; height: 520px; background: var(--accent2); top: -160px; left: -140px; }
.lp-orb.b { width: 460px; height: 460px; background: #b030d9; top: 380px; right: -180px; opacity: .32; }
.lp-wrap { width: min(1120px, 100% - 40px); margin: 0 auto; position: relative; z-index: 1; }
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(17, 19, 30, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lp-navin { display: flex; align-items: center; gap: 18px; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.lp-brand img { width: 34px; height: 34px; border-radius: 10px; }
.lp-links { display: flex; gap: 4px; margin-left: 12px; }
.lp-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.lp-link:hover { color: var(--text); background: var(--panel2); }
.lp-navr { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; padding: 13px 22px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; color: #fff; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn img { width: 20px; height: 20px; }
.lp-btn-login { padding: 9px 20px; background: var(--grad, linear-gradient(135deg, var(--accent), var(--accent2))); box-shadow: 0 6px 18px rgba(var(--ac3), .35); }
.lp-btn-fluxer { background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 55%, #b030d9 100%); box-shadow: 0 10px 28px rgba(var(--ac3), .4); }
.lp-btn-discord { background: #5865f2; box-shadow: 0 10px 28px rgba(88, 101, 242, .38); }
.lp-btn-ghost { background: var(--panel2); border: 1px solid var(--line2); color: var(--text); }
.lp-btn-ghost:hover { background: var(--panel3); }
.lp-hero { padding: 72px 0 56px; }
.lp-herogrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lp-pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(var(--ac), .16); border: 1px solid rgba(var(--ac), .4); color: #cdbbff; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.lp-hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.07; margin: 0 0 18px; letter-spacing: -.02em; }
.lp-grad { background: linear-gradient(135deg, var(--accent-l), #e879f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-center { justify-content: center; }
.lp-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.lp-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 22px; min-width: 130px; }
.lp-stat b { display: block; font-size: 26px; line-height: 1.15; }
.lp-stat b.on { color: var(--ok); } .lp-stat b.off { color: var(--bad); }
.lp-stat span { color: var(--muted); font-size: 13px; }
.lp-heroart { position: relative; }
.lp-glow { position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, rgba(var(--ac), .55), transparent 70%); filter: blur(30px); }
.lp-chat { position: relative; background: #2b2d3f; border: 1px solid var(--line2); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 20px; }
.lp-msg { display: flex; gap: 12px; }
.lp-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #b030d9); display: grid; place-items: center; font-size: 20px; }
.lp-who { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.lp-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 4px; vertical-align: middle; }
.lp-txt { font-size: 14.5px; color: #dcdff3; line-height: 1.5; }
.lp-ment { background: rgba(var(--ac), .28); color: #d8c8ff; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.lp-embed { border-left: 4px solid #3498db; background: #222539; border-radius: 6px; padding: 12px 14px; min-width: 250px; }
.lp-et { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.lp-row { margin-top: 8px; }
.lp-rl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; color: #dcdff3; }
.lp-bar { height: 8px; background: #33375a; border-radius: 6px; overflow: hidden; }
.lp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #c084fc); border-radius: 6px; }
.lp-sec { padding: 72px 0; position: relative; z-index: 1; }
.lp-alt { background: rgba(26, 28, 43, .72); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-sec h2 { text-align: center; font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; letter-spacing: -.01em; }
.lp-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 620px; font-size: 16px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.lp-card:hover { transform: translateY(-4px); border-color: rgba(var(--ac), .55); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.lp-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, rgba(var(--ac), .3), rgba(176, 48, 217, .16)); margin-bottom: 14px; }
.lp-card h3 { margin: 0 0 8px; font-size: 17px; }
.lp-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lp-log { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.lp-entry { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lp-entry summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.lp-entry summary::-webkit-details-marker { display: none; }
.lp-entry[open] summary { border-bottom: 1px solid var(--line); background: var(--panel2); }
.lp-ver { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.lp-etitle { font-weight: 600; flex: 1; min-width: 200px; }
.lp-date { color: var(--muted); font-size: 13px; }
.lp-entry ul { list-style: none; margin: 0; padding: 14px 20px 18px; display: grid; gap: 12px; }
.lp-entry li { display: flex; gap: 12px; align-items: flex-start; color: #cfd3ee; font-size: 14.5px; line-height: 1.55; }
.lp-kind { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; margin-top: 2px; }
.lp-kind.new { background: rgba(62, 207, 142, .16); color: var(--ok); }
.lp-kind.improved { background: rgba(var(--ac), .2); color: #c4b0ff; }
.lp-kind.fixed { background: rgba(245, 185, 66, .16); color: var(--warn); }
.lp-kind.security { background: rgba(240, 86, 106, .16); color: var(--bad); }
.lp-more { display: flex; margin: 8px auto 0; }
.lp-status { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.lp-bot { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; }
.lp-bot > img { width: 38px; height: 38px; }
.lp-botinfo { flex: 1; display: grid; }
.lp-botinfo span { color: var(--muted); font-size: 13px; }
.lp-botnum { text-align: right; display: grid; }
.lp-botnum b { font-size: 22px; line-height: 1.1; } .lp-botnum span { color: var(--muted); font-size: 12px; }
.lp-state { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; min-width: 104px; justify-content: center; }
.lp-state i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.lp-state.on { background: rgba(62, 207, 142, .14); color: var(--ok); } .lp-state.on i { box-shadow: 0 0 0 4px rgba(62, 207, 142, .22); }
.lp-state.off { background: rgba(240, 86, 106, .14); color: var(--bad); }
.lp-final { text-align: center; background: radial-gradient(closest-side at 50% 0, rgba(var(--ac), .22), transparent 75%); }
.lp-final .lp-sub { margin-bottom: 28px; }
.lp-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.lp-footrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-footlinks { display: flex; gap: 6px; }
.langcorner .backhome, .backhome { position: absolute; top: 18px; left: 18px; }
@media (max-width: 900px) {
  .lp-herogrid { grid-template-columns: 1fr; }
  .lp-heroart { order: 2; }
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-links { display: none; }
}
@media (max-width: 600px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 44px; }
  .lp-navin { gap: 10px; }
  .lp-brand span { display: none; }
  .lp-bot { flex-wrap: wrap; }
  .lp-btn { width: 100%; }
  .lp-btn-login { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .lp-btn, .lp-card { transition: none; } .lp-btn:hover, .lp-card:hover { transform: none; } }
.backhome { position: absolute; top: 18px; left: 18px; z-index: 5; background: var(--panel2); border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.backhome:hover { background: var(--panel3); }
.lp-notice { position: relative; z-index: 2; background: rgba(245, 185, 66, .12); border-bottom: 1px solid rgba(245, 185, 66, .38); color: #f3d596; font-size: 14.5px; }
.lp-noticein { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 0; text-align: center; line-height: 1.45; }
.lp-noticeic { flex: none; }
.lp-noticein b { color: #ffe3a6; }
.lp-footnote { margin: 0 0 12px; text-align: center; font-size: 13.5px; }

/* ============================================================
   Feinschliff (2.23): Schnellzugriff mit Favoriten, Befehlspalette, Begrüßung und Animationen
   ============================================================ */
kbd { font: 600 10.5px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line2); color: var(--muted); }
/* Kopf der Übersicht: sanft wandernde Farbflächen, Begrüßung und „Heute“-Zeile */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: aurora 18s ease-in-out infinite; }
.hero::before { background: var(--accent2); top: -200px; left: -90px; opacity: .3; }
.hero::after { background: var(--accent-end); bottom: -240px; right: 8%; opacity: .22; animation-delay: -8s; }
@keyframes aurora { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70px, 36px) scale(1.18); } }
.herobody { min-width: 0; }
.greet { font-size: 13px; color: var(--muted); margin-bottom: 3px; animation: rise .5s ease-out both; }
.todaystrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.todaylabel { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-xl); margin-right: 2px; }
.todaychip { padding: 4px 11px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); font-size: 12.5px; animation: chipin .5s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i, 0) * 90ms + .25s); }
@keyframes chipin { from { opacity: 0; transform: translateY(7px) scale(.88); } to { opacity: 1; transform: none; } }
/* Schnellzugriff */
.quickbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 30px 0 14px; }
.quickbar .sectiontitle { margin: 0; flex: 1 1 auto; }
.quicksearch { flex: 0 1 250px; min-width: 150px; padding: 8px 12px 8px 34px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239a9fbf' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l4 4'/%3E%3C/svg%3E") no-repeat 11px 50%; color: var(--text); font: inherit; font-size: 13px; transition: border-color .15s, box-shadow .15s, flex-basis .25s; }
.quicksearch:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--ac), .22); flex-basis: 320px; }
.tile { position: relative; overflow: hidden; }
.entering .tilegrid .tile { animation: tilein .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 22ms + .1s); }
@keyframes tilein { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .08) 48%, transparent 66%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.tile:hover::after { transform: translateX(120%); }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.tile .ico { transition: transform .28s cubic-bezier(.2, 1.5, .4, 1), background .2s; }
.tile:hover .ico { transform: scale(1.15) rotate(-7deg); }
.tile.locked:hover .ico { transform: none; }
.tilestar { position: absolute; top: 5px; right: 7px; padding: 2px 3px; font-size: 15px; line-height: 1; color: var(--muted); opacity: 0; cursor: pointer; transition: opacity .15s, transform .2s cubic-bezier(.2, 1.6, .4, 1), color .15s; }
.tile:hover .tilestar, .tile:focus-visible .tilestar, .tilestar.on { opacity: 1; }
.tilestar:hover { transform: scale(1.3); color: #fbbf24; }
.tilestar.on { color: #fbbf24; animation: starpop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes starpop { 0% { transform: scale(.4) rotate(-35deg); } 60% { transform: scale(1.55) rotate(10deg); } 100% { transform: none; } }
.favgroup .tile { border-color: rgba(251, 191, 36, .3); background: linear-gradient(160deg, rgba(251, 191, 36, .08), transparent 60%), var(--panel); }
.favhint { margin: 0 0 16px 2px; }
.nores { padding: 8px 2px; }
/* Suche in der Seitenleiste */
.sidesearch { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; margin: 2px 12px 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.sidesearch:hover, .sidesearch:focus-visible { border-color: rgba(var(--ac2), .55); background: rgba(var(--ac), .1); color: var(--text); }
.sidesearchtxt { flex: 1; }
/* Befehlspalette */
.palback { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(8, 9, 16, .62); backdrop-filter: blur(6px); animation: wfade .16s ease-out both; }
.palback.out { animation: wout .16s ease-in forwards; }
.palette { width: min(620px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(var(--ac), .18); overflow: hidden; animation: palin .22s cubic-bezier(.2, 1.1, .3, 1) both; }
@keyframes palin { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
.palhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.palmag { opacity: .7; }
.palinput { all: unset; box-sizing: border-box; flex: 1; font-size: 16px; color: var(--text); }
.palinput::placeholder { color: var(--muted); }
.pallist { overflow-y: auto; padding: 6px; }
.palitem { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; animation: rise .22s ease-out both; animation-delay: calc(var(--i, 0) * 14ms); }
.palitem.sel { background: linear-gradient(90deg, rgba(var(--ac), .26), rgba(var(--ac), .1)); box-shadow: inset 3px 0 0 var(--accent); }
.palico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; background: var(--panel2); border: 1px solid var(--line); flex: none; }
.palbody { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.palbody b { font-size: 14px; font-weight: 600; }
.palbody mark { background: none; color: var(--accent-xl); text-decoration: underline; text-decoration-color: rgba(196, 181, 253, .5); text-underline-offset: 3px; }
.palsub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palstar { color: #fbbf24; font-size: 14px; }
.palenter { opacity: 0; transition: opacity .12s; }
.palitem.sel .palenter { opacity: 1; }
.palnone { padding: 22px; text-align: center; color: var(--muted); }
.palfoot { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.palfoot kbd { margin-right: 3px; }
.palfav { margin-left: auto; }
/* Klick-Welle und Einblenden beim Scrollen */
.btn, .pills button { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .22); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.reveal { animation: none !important; opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
/* Karten heben sich beim Darüberfahren leicht an */
.card { transition: border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.card:hover { border-color: rgba(var(--ac2), .28); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
/* Toast: dünner Balken zeigt die Restzeit */
.toast { position: relative; overflow: hidden; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ok); transform-origin: left; animation: toastbar 3s linear forwards; opacity: .7; }
.toast.err::after { background: var(--bad); animation-duration: 6s; }
@keyframes toastbar { to { transform: scaleX(0); } }
@media (max-width: 760px) { .sidesearch kbd, .palfav { display: none; } .quicksearch { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after, .todaychip, .palette, .palitem, .ripple { animation: none !important; } .reveal { opacity: 1; transform: none; } }
/* ---------- Farbwelten (2.23): Die Akzentfarbe kommt aus Variablen; der Browser merkt sich die Wahl ---------- */
html[data-accent="blue"] { --accent: #3b82f6; --accent2: #2563eb; --accent-l: #60a5fa; --accent-xl: #bfdbfe; --accent-end: #06b6d4; --ac: 59, 130, 246; --ac2: 96, 165, 250; --ac3: 37, 99, 235; --accent-end-rgb: 6, 182, 212; }
html[data-accent="green"] { --accent: #10b981; --accent2: #059669; --accent-l: #34d399; --accent-xl: #a7f3d0; --accent-end: #84cc16; --ac: 16, 185, 129; --ac2: 52, 211, 153; --ac3: 5, 150, 105; --accent-end-rgb: 132, 204, 22; }
html[data-accent="rose"] { --accent: #ec4899; --accent2: #db2777; --accent-l: #f472b6; --accent-xl: #fbcfe8; --accent-end: #f97316; --ac: 236, 72, 153; --ac2: 244, 114, 182; --ac3: 219, 39, 119; --accent-end-rgb: 249, 115, 22; }
html[data-accent="orange"] { --accent: #f97316; --accent2: #ea580c; --accent-l: #fb923c; --accent-xl: #fed7aa; --accent-end: #ef4444; --ac: 249, 115, 22; --ac2: 251, 146, 60; --ac3: 234, 88, 12; --accent-end-rgb: 239, 68, 68; }
html[data-accent="cyan"] { --accent: #06b6d4; --accent2: #0891b2; --accent-l: #22d3ee; --accent-xl: #a5f3fc; --accent-end: #6366f1; --ac: 6, 182, 212; --ac2: 34, 211, 238; --ac3: 8, 145, 178; --accent-end-rgb: 99, 102, 241; }
html { transition: background-color .4s; }
body * { transition-property: background-color, border-color, color, box-shadow, transform, opacity, filter; }
.accentrow { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 2px 0 4px; }
.sidefoot .accentrow { order: -1; flex: 1 1 100%; }
.swatch { all: unset; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .2s cubic-bezier(.2, 1.6, .4, 1), box-shadow .2s; }
.swatch:hover { transform: scale(1.25); }
.swatch:focus-visible { box-shadow: 0 0 0 2px #fff; }
.swatch.on { transform: scale(1.12); border-color: var(--bg); box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(var(--ac), .7); }
/* Spotlight: ein Lichtfleck folgt der Maus über Kacheln und den Kopf der Übersicht */
.tile::before, .hero .spot { content: ''; position: absolute; inset: 0; background: radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--ac2), .24), transparent 70%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.tile:hover::before { opacity: 1; }
.hero .spot { z-index: -1; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--ac2), .16), transparent 70%); }
.hero:hover .spot { opacity: 1; }
/* Favoriten: Rand mit umlaufendem Lichtstreifen */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.favgroup .tile { border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, conic-gradient(from var(--ang), rgba(251, 191, 36, .75), rgba(var(--ac2), .55), rgba(251, 191, 36, .12) 55%, rgba(251, 191, 36, .75)) border-box; }
.entering .favgroup .tile { animation: tilein .5s cubic-bezier(.2, .8, .2, 1) both, spinang 7s linear infinite; animation-delay: calc(var(--i, 0) * 22ms + .1s), 0s; }
@keyframes spinang { to { --ang: 360deg; } }
/* Funken beim Merken eines Favoriten */
.spark { position: fixed; z-index: 120; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c, #fbbf24); box-shadow: 0 0 8px var(--c, #fbbf24); pointer-events: none; animation: sparkfly .75s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes sparkfly { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
/* Lese-Fortschritt und „Nach oben“ */
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--accent2), var(--accent-l), var(--accent-end)); box-shadow: 0 0 10px rgba(var(--ac), .6); pointer-events: none; transition: transform .08s linear; }
.totop { all: unset; box-sizing: border-box; position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--accent-l), var(--accent2)); box-shadow: 0 8px 24px rgba(var(--ac), .45); transform: translateY(20px) scale(.6); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), opacity .2s, filter .15s; }
.totop.show { transform: none; opacity: 1; pointer-events: auto; }
.totop:hover { filter: brightness(1.15); transform: translateY(-3px); }
/* Laden: schimmernde Platzhalter statt leerer Fläche */
.loading { padding: 28px 0; }
.loading::before, .loading::after { content: ''; flex: 1 1 100%; border-radius: 14px; background: linear-gradient(100deg, var(--panel) 35%, var(--panel2) 50%, var(--panel) 65%) 0 0 / 220% 100%; animation: shimmer 1.3s linear infinite; }
.loading::before { height: 96px; order: 5; margin-top: 10px; }
.loading::after { height: 230px; order: 6; }
@keyframes shimmer { to { background-position: -220% 0; } }
.palitem .palico { transition: transform .2s cubic-bezier(.2, 1.5, .4, 1); }
.palitem.sel .palico { transform: scale(1.1) rotate(-5deg); }
@media (prefers-reduced-motion: reduce) { .spark, .loading::before, .loading::after, .scrollbar { animation: none !important; } .totop { transition: none; } }

/* ---------- Änderungsprotokoll zum Ausklappen (2.23) ---------- */
details.clentry { padding: 0; overflow: hidden; transition: border-color .2s, box-shadow .25s; }
details.clentry:hover { border-color: rgba(var(--ac2), .4); }
details.clentry[open] { border-color: rgba(var(--ac2), .45); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
details.clentry > summary.clhead { list-style: none; cursor: pointer; padding: 14px 16px 14px 40px; position: relative; row-gap: 4px; }
details.clentry > summary.clhead::-webkit-details-marker { display: none; }
details.clentry > summary.clhead::before { content: '▸'; position: absolute; left: 16px; top: 15px; color: var(--muted); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), color .2s; }
details.clentry[open] > summary.clhead::before { transform: rotate(90deg); color: var(--accent-l); }
details.clentry > summary.clhead h4 { flex: 1 1 100%; margin: 2px 0 0; }
.clmore { margin-left: auto; font-size: 11.5px; color: var(--muted); padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.clbody { padding: 2px 16px 16px 40px; animation: rise .3s ease-out both; }
.clhint { margin: 0 0 10px; }
.clgroups { display: flex; flex-direction: column; gap: 8px; }
.clgroup { border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s; }
.clgroup[open] { background: rgba(var(--ac), .06); border-color: rgba(var(--ac2), .3); }
.clgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-weight: 600; font-size: 13.5px; }
.clgroup > summary::-webkit-details-marker { display: none; }
.clgroup > summary::before { content: '▸'; color: var(--muted); font-size: 12px; transition: transform .22s cubic-bezier(.2, 1.4, .4, 1); }
.clgroup[open] > summary::before { transform: rotate(90deg); color: var(--accent-l); }
.cltitle { flex: 1; }
.clcount { font-size: 11px; color: var(--muted); padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.clgroup > .clitems { padding: 2px 14px 12px 34px; animation: rise .25s ease-out both; }
.lp-groups { padding: 12px 16px 16px; display: grid; gap: 8px; }
.lp-group { border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.lp-group > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 600; }
.lp-group > summary::-webkit-details-marker { display: none; }
.lp-group > summary::before { content: '▸'; color: var(--muted); transition: transform .22s cubic-bezier(.2, 1.4, .4, 1); }
.lp-group[open] > summary::before { transform: rotate(90deg); color: var(--accent-l); }
.lp-group > summary span:first-of-type { flex: 1; }
.lp-gcount { font-size: 11px; color: var(--muted); padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.lp-group ul { padding: 4px 16px 14px 36px; }

/* Protokoll: Ereignis-Karten wie bei Carl-bot */
.logcards { margin: 14px 0; align-items: start; }
.logchecks .check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.logchecks .check:last-child { border-bottom: 0; }
.logchecks { border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.12); }
.logchecks .check:hover { background: rgba(255,255,255,.04); }
.logadv { margin: 0 0 14px; }
.logadv > summary { cursor: pointer; font-weight: 600; }
.logadv .logrow { padding: 4px 0; }
.logname { flex: 1 1 320px; }

.card > .hint + label { margin-top: 10px; }

/* ============================================================
   Design „Nebula“ (2.23): Lila mit Blau, Glas-Oberflächen mit leuchtendem Rand, Sternenhimmel, Schalter statt Häkchen
   Alles baut auf den Farb-Variablen auf – die Farbwelten funktionieren weiter (Lila → Blau ist nur die Standard-Welt).
   ============================================================ */
:root {
  --bg: #0a0918; --panel: #15132c; --panel2: #1f1c40; --panel3: #2b2859;
  --line: rgba(160, 150, 255, .15); --line2: rgba(160, 150, 255, .28);
  --text: #f0f1ff; --muted: #a7aad0;
  --accent-end: #4f82ff; --accent-end-rgb: 79, 130, 255;
  --glass: linear-gradient(165deg, rgba(30, 28, 62, .58) 0%, rgba(15, 14, 36, .56) 100%);
  --rim: linear-gradient(140deg, rgba(var(--ac2), .3) 0%, rgba(var(--accent-end-rgb), .12) 38%, rgba(var(--ac2), .04) 68%, rgba(var(--accent-end-rgb), .16) 100%);
  --shadow: 0 16px 44px rgba(3, 2, 22, .5);
}
* { scrollbar-color: rgba(var(--ac2), .3) transparent; }

/* Hintergrund: wandernde Nebel in Lila und Blau, darüber ein leise funkelnder Sternenhimmel */
body::before { content: ''; position: fixed; inset: -12%; z-index: -2; pointer-events: none; will-change: transform;
  background: radial-gradient(56vmax 48vmax at 10% -6%, rgba(var(--ac3), .22), transparent 62%), radial-gradient(52vmax 44vmax at 104% 12%, rgba(var(--accent-end-rgb), .16), transparent 64%), radial-gradient(64vmax 50vmax at 46% 114%, rgba(var(--ac), .12), transparent 62%);
  animation: nebula 56s ease-in-out infinite alternate; }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(1.4px 1.4px at 38px 54px, rgba(255, 255, 255, .95), transparent 70%), radial-gradient(1px 1px at 210px 120px, rgba(190, 205, 255, .9), transparent 70%), radial-gradient(1.2px 1.2px at 120px 250px, rgba(255, 255, 255, .8), transparent 70%), radial-gradient(1px 1px at 300px 300px, rgba(205, 185, 255, .85), transparent 70%);
  background-size: 340px 340px, 410px 410px, 530px 530px, 290px 290px; animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes nebula { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.09); } }
@keyframes twinkle { from { opacity: .22; } to { opacity: .5; } }

/* Leuchtender Rand für Glas-Flächen (nur der 1-Pixel-Rand ist sichtbar) */
.sidebar::before, .card::before, .stat::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--rim); pointer-events: none; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* Seitenleiste: schwebende Glas-Fläche */
.sidebar { border: 1px solid transparent; border-right-color: transparent; background: linear-gradient(185deg, rgba(30, 28, 62, .72) 0%, rgba(12, 11, 30, .86) 100%); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06); }
@media (min-width: 861px) { .sidebar { top: 12px; height: calc(100vh - 24px); margin: 12px 0 12px 12px; border-radius: 22px; } }
@media (max-width: 860px) { .sidebar { border-radius: 0 22px 22px 0; } }
.sidefoot { border-top-color: var(--line); }
.brandlogo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 6px 20px rgba(var(--ac), .28); }
.whoami { background: linear-gradient(160deg, rgba(var(--ac), .12), rgba(var(--accent-end-rgb), .05)); border-color: var(--line2); }
.wavatar { background: linear-gradient(135deg, var(--accent-l), var(--accent2) 60%, var(--accent-end)); box-shadow: 0 0 12px rgba(var(--ac), .22); }
.navtitle { color: #8f93c9; }
.navitem:hover { background: linear-gradient(90deg, rgba(var(--ac), .18), rgba(var(--ac), .02)); }
.navitem.active { background: linear-gradient(120deg, rgba(var(--ac), .96) 0%, rgba(var(--ac3), .92) 55%, rgba(var(--accent-end-rgb), .9) 100%); box-shadow: 0 4px 14px rgba(var(--ac3), .28), inset 0 1px 0 rgba(255, 255, 255, .2); }
.sidesearch { background: rgba(255, 255, 255, .05); border-color: var(--line2); }

/* Karten, Kennzahlen, Banner */
.card { position: relative; border: 1px solid transparent; border-radius: 18px; padding: 20px 22px; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 10px 34px rgba(3, 2, 22, .3), inset 0 1px 0 rgba(255, 255, 255, .05); }
.card:hover { border-color: transparent; box-shadow: 0 14px 40px rgba(var(--ac3), .1), inset 0 1px 0 rgba(255, 255, 255, .06); }
.card > h3 { font-size: 16px; color: #f4f1ff; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--ac2), .055), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::after { opacity: 1; }
.stat { position: relative; border: 1px solid transparent; border-radius: 16px; background: var(--glass); box-shadow: 0 8px 26px rgba(3, 2, 22, .28), inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.stat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(var(--ac3), .12), inset 0 1px 0 rgba(255, 255, 255, .06); }
.stat b:not(.ok):not(.warn):not(.bad) { background: linear-gradient(180deg, #ffffff 15%, var(--accent-xl) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.withicon .sico { background: linear-gradient(135deg, rgba(var(--ac2), .26), rgba(var(--accent-end-rgb), .16)); box-shadow: 0 0 14px rgba(var(--ac), .12), inset 0 1px 0 rgba(255, 255, 255, .12); }
.banner { background: var(--glass); border-color: var(--line2); }
.clentry, .console { background: rgba(255, 255, 255, .04); }

/* Überschriften mit sanftem Farbverlauf */
.main > h2, .topbar h2 { font-size: 27px; letter-spacing: -.02em; width: fit-content; background: linear-gradient(90deg, #ffffff 5%, var(--accent-xl) 58%, #a9c6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pagedesc { color: #aeb1d6; }

/* Kopf der Übersicht */
.hero { border: 1px solid rgba(var(--ac2), .2); border-radius: 26px; padding: 30px 32px;
  background: radial-gradient(110% 150% at 0% 0%, rgba(var(--ac), .22) 0%, transparent 58%), radial-gradient(90% 130% at 100% 100%, rgba(var(--accent-end-rgb), .14) 0%, transparent 62%), linear-gradient(165deg, #191638 0%, #0e0d26 100%);
  box-shadow: 0 22px 60px rgba(var(--ac3), .1), inset 0 1px 0 rgba(255, 255, 255, .07); }
.hero::before { background: var(--ac3-solid, var(--accent2)); opacity: .2; }
.hero::after { background: var(--accent-end); opacity: .14; }
.hero h2 { font-size: 32px; letter-spacing: -.02em; background: linear-gradient(90deg, #ffffff 8%, var(--accent-xl) 55%, #a9c6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .avatar.big { width: 78px; height: 78px; border-radius: 22px; background: linear-gradient(135deg, var(--accent-l), var(--accent2) 55%, var(--accent-end)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), 0 0 28px rgba(var(--ac), .3); }
.greet { color: #bdb9f0; }
.todaychip { background: rgba(255, 255, 255, .07); border-color: var(--line2); backdrop-filter: blur(6px); }

/* Kacheln im Schnellzugriff */
.tile { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(165deg, rgba(32, 29, 66, .5), rgba(17, 15, 40, .46)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.tile:hover { border-color: rgba(var(--ac2), .4); filter: none; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--ac3), .13), 0 0 0 1px rgba(var(--ac2), .1), inset 0 1px 0 rgba(255, 255, 255, .07); }
.tile .ico { border-radius: 13px; background: linear-gradient(135deg, rgba(var(--ac2), .28), rgba(var(--accent-end-rgb), .16)); box-shadow: 0 0 12px rgba(var(--ac), .1), inset 0 1px 0 rgba(255, 255, 255, .12); }
.quicksearch { background-color: rgba(255, 255, 255, .06); }

/* Knöpfe */
.btn { border-radius: 11px; border-color: var(--line2); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn:hover { filter: none; border-color: rgba(var(--ac2), .78); background: linear-gradient(180deg, rgba(var(--ac), .26), rgba(var(--ac), .1)); box-shadow: 0 6px 20px rgba(var(--ac3), .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.primary { border-color: rgba(255, 255, 255, .24); background: linear-gradient(120deg, var(--accent-l) 0%, var(--accent) 38%, var(--accent-end) 100%); background-size: 170% 100%; background-position: 0 0;
  box-shadow: 0 8px 24px rgba(var(--ac3), .46), 0 0 30px rgba(var(--accent-end-rgb), .2), inset 0 1px 0 rgba(255, 255, 255, .32); transition: background-position .5s ease, transform .15s, box-shadow .2s, border-color .15s; }
.btn.primary:hover { filter: none; background-position: 100% 0; transform: translateY(-1px); border-color: rgba(255, 255, 255, .4); box-shadow: 0 12px 30px rgba(var(--ac3), .55), 0 0 40px rgba(var(--accent-end-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .38); }
.btn.primary:active { transform: translateY(0); }
.pills button { background: rgba(255, 255, 255, .05); border-color: var(--line2); }
.pills button:hover { border-color: rgba(var(--ac2), .75); background: rgba(var(--ac), .14); }
.pills button.active { color: #fff; border-color: rgba(var(--ac2), .75); background: linear-gradient(120deg, rgba(var(--ac), .55), rgba(var(--accent-end-rgb), .42)); box-shadow: 0 0 22px rgba(var(--ac), .3), inset 0 1px 0 rgba(255, 255, 255, .16); }
.langbtn.active { background: linear-gradient(135deg, var(--accent-l), var(--accent2) 60%, var(--accent-end)); }

/* Eingabefelder */
input, select, textarea { background: rgba(7, 6, 24, .55); border-color: var(--line2); border-radius: 11px; }
input:hover, select:hover, textarea:hover { border-color: rgba(var(--ac2), .5); }
input:focus, select:focus, textarea:focus { border-color: rgba(var(--ac2), .9); box-shadow: 0 0 0 3px rgba(var(--ac), .2); }
.checkgrid { background: rgba(7, 6, 24, .45); border-color: var(--line2); }

/* Schalter statt Häkchen */
input[type=checkbox] { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 38px; height: 22px; padding: 0; margin: 0; border-radius: 99px; cursor: pointer; vertical-align: middle;
  background: rgba(255, 255, 255, .09); border: 1px solid var(--line2); transition: background .25s, border-color .25s, box-shadow .25s; }
input[type=checkbox]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #c9ccf0; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); transition: transform .28s cubic-bezier(.3, 1.5, .5, 1), background .2s; }
input[type=checkbox]:hover { border-color: rgba(var(--ac2), .6); }
input[type=checkbox]:checked { border-color: transparent; background: linear-gradient(120deg, var(--accent), var(--accent-end)); box-shadow: 0 0 10px rgba(var(--ac), .22); }
input[type=checkbox]:checked::after { transform: translateX(16px); background: #fff; }
input[type=checkbox]:focus-visible { box-shadow: 0 0 0 3px rgba(var(--ac), .35); }
input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }
.palette input[type=checkbox] { display: none; }

/* Tabellen */
th { color: #9a9de0; }
td { border-top-color: var(--line); }
tbody tr:hover td { background: linear-gradient(90deg, rgba(var(--ac), .08), rgba(var(--accent-end-rgb), .03)); }
.chip { background: rgba(255, 255, 255, .06); border-color: var(--line2); }
.badge { background: rgba(255, 255, 255, .1); }

/* Dialoge, Palette, Hinweise */
dialog { background: linear-gradient(165deg, rgba(28, 26, 60, .97), rgba(14, 12, 34, .98)); border: 1px solid rgba(var(--ac2), .22); border-radius: 22px; box-shadow: 0 30px 90px rgba(3, 2, 22, .72), 0 0 60px rgba(var(--ac), .07); }
dialog::backdrop { background: radial-gradient(circle at 50% 28%, rgba(var(--ac3), .12), rgba(5, 4, 18, .8) 70%); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.palette { background: linear-gradient(170deg, rgba(28, 26, 60, .97), rgba(14, 12, 34, .98)); border-color: rgba(var(--ac2), .24); box-shadow: 0 28px 80px rgba(3, 2, 22, .7), 0 0 60px rgba(var(--ac), .08); }
.palback { background: radial-gradient(circle at 50% 22%, rgba(var(--ac3), .12), rgba(6, 5, 20, .78) 70%); }
.palico { background: rgba(255, 255, 255, .07); }
.toast { background: rgba(28, 26, 60, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: var(--line2); border-radius: 14px; box-shadow: 0 12px 36px rgba(3, 2, 22, .6), 0 0 20px rgba(var(--ac), .05); }
.totop { background: linear-gradient(135deg, var(--accent-l), var(--accent) 50%, var(--accent-end)); }
.scrollbar { background: linear-gradient(90deg, var(--accent2), var(--accent-l), var(--accent-end)); }

/* Anmeldung */
.loginpage { background: radial-gradient(1200px 700px at 15% 5%, rgba(var(--ac3), .24) 0%, transparent 60%), radial-gradient(900px 600px at 95% 95%, rgba(var(--accent-end-rgb), .16) 0%, transparent 55%), #080716; }
.logincard { background: linear-gradient(165deg, rgba(28, 26, 60, .66), rgba(14, 12, 34, .7)); border-color: rgba(var(--ac2), .22); box-shadow: 0 24px 70px rgba(3, 2, 22, .6), 0 0 60px rgba(var(--ac), .08); }
.logo { box-shadow: 0 0 26px rgba(var(--ac), .26); }
.loginbtn { background: linear-gradient(120deg, var(--accent-l), var(--accent) 40%, var(--accent-end)); }

@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none !important; } .btn.primary { transition: none; } }
@media (max-width: 860px) { .card { -webkit-backdrop-filter: none; backdrop-filter: none; } .sidebar { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(185deg, #221d54 0%, #0d0b23 100%); } .hero { padding: 22px 18px; } }

/* Öffentliche Startseite im Nebula-Stil */
.landing { background: transparent; }
.lp-orb.a { background: var(--ac3-solid, var(--accent2)); opacity: .22; }
.lp-orb.b { background: var(--accent-end); opacity: .14; }
.lp-nav { background: rgba(13, 11, 34, .62); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--line2); }
.lp-link:hover { background: rgba(var(--ac), .16); }
.lp-btn-login { background: linear-gradient(120deg, var(--accent-l), var(--accent) 45%, var(--accent-end)); box-shadow: 0 8px 24px rgba(var(--ac3), .45), 0 0 26px rgba(var(--accent-end-rgb), .2), inset 0 1px 0 rgba(255, 255, 255, .3); }
.lp-btn-fluxer { background: linear-gradient(120deg, var(--accent-l) 0%, var(--accent) 45%, var(--accent-end) 100%); box-shadow: 0 12px 32px rgba(var(--ac3), .5), 0 0 40px rgba(var(--accent-end-rgb), .22), inset 0 1px 0 rgba(255, 255, 255, .3); }
.lp-btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); }
.lp-btn-ghost:hover { background: rgba(var(--ac), .2); }
.lp-pill { background: rgba(var(--ac), .12); border-color: rgba(var(--ac2), .34); color: #d9ccff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lp-hero h1 { background: linear-gradient(180deg, #ffffff 30%, #cfc7ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-grad { background: linear-gradient(120deg, var(--accent-l) 0%, var(--accent) 45%, var(--accent-end) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(var(--ac), .18)); }
.lp-stat, .lp-card, .lp-entry, .lp-bot { background: var(--glass); border-color: var(--line2); box-shadow: 0 10px 34px rgba(3, 2, 22, .3), inset 0 1px 0 rgba(255, 255, 255, .05); }
.lp-card, .lp-entry, .lp-bot { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lp-card:hover { border-color: rgba(var(--ac2), .4); box-shadow: 0 16px 40px rgba(var(--ac3), .12), inset 0 1px 0 rgba(255, 255, 255, .06); }
.lp-ic { background: linear-gradient(135deg, rgba(var(--ac2), .28), rgba(var(--accent-end-rgb), .16)); box-shadow: 0 0 12px rgba(var(--ac), .1), inset 0 1px 0 rgba(255, 255, 255, .12); }
.lp-stat b:not(.on):not(.off) { background: linear-gradient(180deg, #fff 20%, var(--accent-xl)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-chat { background: linear-gradient(165deg, rgba(30, 28, 62, .78), rgba(16, 14, 38, .8)); border-color: rgba(var(--ac2), .26); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 70px rgba(3, 2, 22, .55), 0 0 50px rgba(var(--ac), .07); }
.lp-glow { background: radial-gradient(closest-side, rgba(var(--ac), .3), rgba(var(--accent-end-rgb), .12) 60%, transparent 78%); }
.lp-av { background: linear-gradient(135deg, var(--accent), var(--accent-end)); box-shadow: 0 0 12px rgba(var(--ac), .22); }
.lp-embed { background: rgba(10, 9, 30, .5); border-left-color: var(--accent-end); }
.lp-bar { background: rgba(255, 255, 255, .1); }
.lp-bar i { background: linear-gradient(90deg, var(--accent), var(--accent-end)); box-shadow: 0 0 8px rgba(var(--ac), .25); }
.lp-alt { background: rgba(18, 16, 44, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: var(--line); }
.lp-sec h2 { background: linear-gradient(90deg, #fff 10%, var(--accent-xl) 60%, #a9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-ver { background: linear-gradient(120deg, var(--accent), var(--accent-end)); box-shadow: 0 0 10px rgba(var(--ac), .2); }
.lp-entry[open] summary { background: rgba(var(--ac), .1); }
.lp-final { background: radial-gradient(closest-side at 50% 0, rgba(var(--ac), .16), rgba(var(--accent-end-rgb), .05) 60%, transparent 78%); }
.lp-footer { border-top-color: var(--line2); background: rgba(8, 7, 24, .4); }
.backhome { background: rgba(255, 255, 255, .07); border-color: var(--line2); }

/* Ban-Datenbank: Verlauf */
.gbhist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.gbhist li { line-height: 1.5; }

/* ---------- Overlay „Verdächtige Konten“ (nur Master-Zugang) ---------- */
.spfab { all: unset; box-sizing: border-box; position: fixed; right: 22px; bottom: 76px; z-index: 71; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; font-size: 21px;
  background: linear-gradient(160deg, rgba(36, 31, 80, .92), rgba(15, 13, 38, .94)); border: 1px solid var(--line2); box-shadow: 0 10px 28px rgba(3, 2, 22, .5); transition: transform .2s cubic-bezier(.2, 1.4, .4, 1), border-color .2s, box-shadow .2s; }
.spfab[hidden] { display: none; }
.spfab:hover, .spfab:focus-visible { transform: translateY(-2px) scale(1.06); border-color: rgba(var(--ac2), .7); box-shadow: 0 12px 30px rgba(var(--ac3), .3); }
.spfab.has { border-color: rgba(var(--bad-rgb, 240, 86, 106), .7); }
.spfab.ping { animation: spping 1.1s ease-out 2; }
@keyframes spping { 0% { box-shadow: 0 0 0 0 rgba(240, 86, 106, .6), 0 10px 28px rgba(3, 2, 22, .5); } 100% { box-shadow: 0 0 0 16px rgba(240, 86, 106, 0), 0 10px 28px rgba(3, 2, 22, .5); } }
.spbadge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff7a8c, #ef4444); box-shadow: 0 2px 8px rgba(239, 68, 68, .5); }
.spbadge[hidden] { display: none; }
.spback { position: fixed; inset: 0; z-index: 95; display: flex; justify-content: flex-end; background: radial-gradient(circle at 80% 30%, rgba(var(--ac3), .12), rgba(5, 4, 18, .7) 70%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.spback.in { opacity: 1; }
.sppanel { width: min(500px, 100vw); height: 100%; overflow-y: auto; padding: 22px 20px 30px; background: linear-gradient(170deg, rgba(30, 27, 64, .98), rgba(13, 12, 32, .99)); border-left: 1px solid rgba(var(--ac2), .26); box-shadow: -24px 0 70px rgba(3, 2, 22, .6); transform: translateX(40px); transition: transform .26s cubic-bezier(.2, .9, .3, 1); }
.spback.in .sppanel { transform: none; }
.sptop { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sptop h2 { margin: 0 0 3px; font-size: 21px; }
.spsub { font-size: 12px; }
.spcfg { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.sptabs { margin-bottom: 14px; }
.sptabs button { position: relative; }
.navbadge.calm { background: rgba(255, 255, 255, .16); box-shadow: none; animation: none; }
.splist { display: grid; gap: 12px; }
.spitem { padding: 14px 15px; border: 1px solid var(--line2); border-radius: 14px; background: linear-gradient(165deg, rgba(40, 35, 88, .45), rgba(17, 15, 43, .5)); display: grid; gap: 10px; }
.spitem.new { border-color: rgba(245, 185, 66, .45); }
.spitem.attn { border-color: rgba(240, 86, 106, .6); }
.spitem.banned, .spitem.false { opacity: .72; }
.sphead { display: flex; gap: 11px; align-items: center; }
.spav { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--accent-l), var(--accent2) 60%, var(--accent-end)); }
.spwho { flex: 1; min-width: 0; }
.spwho b, .spwho .spsub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spmeta { text-align: right; flex: none; }
.spreasons { display: flex; flex-wrap: wrap; gap: 6px; }
.spchip { padding: 2px 10px; border-radius: 99px; font-size: 12.5px; background: rgba(245, 185, 66, .12); border: 1px solid rgba(245, 185, 66, .3); color: #f6d58a; }
.spwatch { font-size: 12.5px; color: var(--muted); }
.spactions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .spfab { bottom: 70px; right: 14px; } }
@media (prefers-reduced-motion: reduce) { .spfab.ping { animation: none; } .sppanel { transition: none; } }

/* Kontenwächter: Sammelaktionen, Verlauf, Wort-Regeln */
.spbulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.splog { list-style: none; margin: 4px 0 0; padding: 10px 12px; max-height: 280px; overflow-y: auto; display: grid; gap: 6px; font-size: 12.5px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.splog li { line-height: 1.45; word-break: break-word; }
.splog li.autoban, .splog li.trigger, .splog li.error { color: #ff9aa8; }
.spchip.auto { background: rgba(var(--ac), .14); border-color: rgba(var(--ac2), .35); color: var(--accent-xl); }
.spitem.fresh { border-color: rgba(var(--ac2), .5); }
.spdone { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sptrigs { display: grid; gap: 10px; margin: 6px 0; }
.sptrig { padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.sptrig textarea { width: 100%; }
.sptrig .row select { width: auto; }
.spcfg .spacer { flex: 1; }

/* Ban-Datenbank: Fortschritt der öffentlichen Liste */
.spprog { margin: 8px 0 4px; }
.spprogbar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 6px; }
.spprogbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-end)); transition: width .4s; }

/* ---------- Entbannungsanträge: öffentliche Antragsseite, Master-Seite, Hinweis im Overlay ---------- */
.appealcard { width: min(480px, 100%); text-align: left; }
.appealcard .logo { width: 64px; height: 64px; border-radius: 18px; }
.appealcard h1, .appealcard .sub { text-align: center; }
.appealcard .sub { font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.appealcard .foot { margin-top: 14px; }
.appealcard .loginerr { text-align: left; }
.appealcard .loginbtn { text-align: center; }
.aptips { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .28); }
.apwho { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; background: rgba(62, 207, 142, .1); border: 1px solid rgba(62, 207, 142, .3); }
.apnote { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0 0 10px; }
.apcount { text-align: right; font-size: 11.5px; color: var(--muted); margin: 3px 2px 10px; }
.apcap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 8px; border-radius: 12px; background: rgba(10, 7, 19, .55); border: 1px solid #3a2d5e; }
.apcapimg { display: block; max-width: 100%; height: auto; min-height: 48px; border-radius: 8px; background: #fff; }
.appealcard > select { margin-bottom: 10px; }
.appealcard > input { margin-bottom: 10px; width: 100%; }
.aplist { display: grid; gap: 12px; margin: 14px 0 18px; }
.apitem { padding: 14px 16px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line2); border-left-width: 3px; }
.apitem.pending { border-left-color: var(--accent-l); }
.apitem.accepted { border-left-color: var(--ok); }
.apitem.rejected { border-left-color: #ff8da1; }
.aphead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.apmeta { text-align: right; flex-shrink: 0; }
.apmsg { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.aphints { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; }
.spappeal { all: unset; box-sizing: border-box; display: block; width: 100%; margin: 0 0 14px; cursor: pointer; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; background: rgba(var(--ac), .14); border: 1px solid rgba(var(--ac2), .38); transition: filter .15s; }
.spappeal:hover { filter: brightness(1.15); }

/* ---------- Entbannungsanträge: Einschätzung des Prüf-Dienstes ---------- */
.aprev { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); }
.aprev.none { color: var(--muted); font-size: 12.5px; }
.aprev.v-owner { border-color: rgba(62, 207, 142, .45); background: rgba(62, 207, 142, .07); }
.aprev.v-unclear { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .07); }
.aprev.v-attacker { border-color: rgba(255, 141, 161, .5); background: rgba(255, 141, 161, .08); }
.aprev.done { padding: 6px 10px; font-size: 12.5px; }
.aprevhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.apverdict { font-weight: 600; }
.apbar { position: relative; flex: 1 1 120px; min-width: 100px; max-width: 220px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, #3ecf8e 0%, #fbbf24 50%, #ff8da1 100%); }
.apbar i { position: absolute; top: -3px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px rgba(10, 7, 19, .85); }
.apnum { min-width: 28px; text-align: right; }
.aprev details { margin-top: 8px; }
.aprev summary { cursor: pointer; font-size: 12.5px; color: var(--accent-xl); }
.apsig { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.apsig li { display: flex; gap: 8px; align-items: baseline; }
.apsig li b { flex: 0 0 34px; text-align: right; }
.apsig li.pos b { color: #ff8da1; }
.apsig li.neg b { color: #3ecf8e; }

/* ---------- Master-Bereich: Kacheln auf der Server-Auswahl und Auswahl „Gilt für“ ---------- */
.mster { margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.mstertitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.mstertitle h3 { margin: 0; font-size: 18px; }
.mstertitle .muted { font-size: 13px; }
.mtile { position: relative; }
.mtbadge { position: absolute; top: 8px; right: 10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff6b8b, #e11d48); box-shadow: 0 0 0 2px rgba(10, 7, 19, .85); }
.mtbadge[hidden] { display: none; }
.mctx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: rgba(var(--ac), .09); border: 1px solid rgba(var(--ac2), .32); }
.mctx label { display: flex; align-items: center; gap: 10px; margin: 0; }
.mctxlabel { font-weight: 600; white-space: nowrap; }
.mctx select { width: auto; min-width: 230px; max-width: 100%; }
.mctxhint { flex: 1 1 260px; font-size: 12.5px; line-height: 1.45; }
.mastershell .sidefoot > .btn.primary { margin-bottom: 4px; }

/* Master-Bereich: einklappbare Überschrift, Kennzahlen unter den Kachel-Titeln */
.mstertoggle { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 2px 8px 2px 4px; margin-left: -4px; border-radius: 10px; }
.mstertoggle:hover { background: rgba(255, 255, 255, .05); }
.mstertoggle:focus-visible { box-shadow: 0 0 0 3px rgba(var(--ac), .35); }
.mstertoggle h3 { margin: 0; font-size: 18px; }
.mstershield { font-size: 18px; }
.mstertotal { padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff6b8b, #e11d48); }
.mstertotal[hidden] { display: none; }
.mstercaret { width: 8px; height: 8px; margin-left: 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.mster.folded .mstercaret { transform: rotate(-45deg); }
.mster.folded .tilegroup { display: none; }
.mster.folded { margin-bottom: 0; }
.mtfact { margin-top: 3px; font-size: 11.5px !important; line-height: 1.35; color: var(--muted); }
.mtfact[hidden] { display: none; }
.mtfact.ok { color: #3ecf8e; }
.mtfact.warn { color: #fbbf24; }

/* ---------- Nachtruhe ---------- */
.nmstatus { margin: 0 0 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); }
.nmstatus.on { border-color: rgba(var(--ac2), .5); background: linear-gradient(160deg, rgba(var(--ac), .2), rgba(24, 24, 60, .55)); }
.nmstatus.day { border-color: rgba(251, 191, 36, .35); background: linear-gradient(160deg, rgba(251, 191, 36, .1), rgba(24, 24, 40, .4)); }
.nmstatus.busy { border-color: rgba(96, 165, 250, .45); }
.nmstatus-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; }
.nmstatus-h b { font-size: 18px; }
.nmstatus p { margin: 8px 0 0; }
.nmclock { font-size: 12.5px; }
.nmerrs { margin-top: 8px; font-size: 13px; }
.nmerrs ul { margin: 6px 0 0; padding-left: 20px; }
.nmday { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; border-radius: 10px; }
.nmday:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.nmday.off { opacity: .55; }
.nmday input[type=time] { width: auto; min-width: 118px; }
.nmdayname { min-width: 130px; font-weight: 600; margin: 0; }
.nmhint { font-size: 12.5px; margin-left: 4px; }
.nmdates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nmchip { display: inline-flex; align-items: center; gap: 6px; }
.nmx { all: unset; cursor: pointer; padding: 0 4px; opacity: .7; }
.nmx:hover { opacity: 1; color: #ff8da1; }
.nmpicker { margin: 4px 0 12px; }
.nmsearch { max-width: 280px; }
.nmcount { font-size: 12.5px; }
.nmlist { max-height: 230px; overflow: auto; margin-top: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(10, 7, 19, .35); display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; }
.nmgroup { grid-column: 1 / -1; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nmgroup:first-child { margin-top: 2px; }
.nmitem { margin: 0; padding: 2px 0; }
.nmh { margin: 16px 0 6px; font-size: 14px; }
.nmsum { margin: 4px 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(var(--ac), .1); border: 1px solid rgba(var(--ac2), .28); font-size: 13.5px; }
.nmdet { margin: 8px 0; }
.nmdet summary { cursor: pointer; color: var(--accent-xl); font-size: 13.5px; }
.nmann { margin: 12px 0; }
.nmann textarea { width: 100%; margin-top: 6px; }
.nmup { margin: 0; padding-left: 18px; line-height: 1.9; }
.nmprob { display: block; margin: 0 0 8px; white-space: normal; }
.nmsave { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 -8px 24px rgba(3, 2, 22, .5); }
.nmsave.dirty { border-color: rgba(251, 191, 36, .5); }
.nmdirty { color: #fbbf24; font-weight: 600; }

/* ---------- Heute zu tun & Nutzer-Akte ---------- */
dialog.dossier { width: min(980px, 96vw); max-width: 96vw; }
.dosbody { display: flex; flex-direction: column; gap: 14px; }
.dosbody .card { margin-bottom: 0; }
.doshead { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.doshead .dosname { flex: 1 1 260px; min-width: 0; }
.doshead h3 { margin: 0 0 2px; font-size: 22px; overflow-wrap: anywhere; }
.dosbadges { gap: 6px; align-items: center; }
.dosgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dosfacts { width: 100%; border-collapse: collapse; }
.dosfacts td { padding: 4px 10px 4px 0; vertical-align: top; }
.dosstats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dostile { padding: 10px 12px; }
.dostile b { font-size: 20px; }
.dosactions { gap: 8px; flex-wrap: wrap; }
.dossg { margin-top: 12px; }
.dosreco { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.dosbig { font-size: 20px; font-weight: 700; }
.dosladder { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.dosstep { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font-size: 13px; transition: color .18s, border-color .18s, background .18s; }
.dosstep:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.dosstep.reco { border-color: rgba(var(--ac2), .6); }
.dosstep.on { background: linear-gradient(135deg, rgba(var(--ac2), .34), rgba(90, 98, 232, .26)); color: #f1ebff; border-color: rgba(var(--ac2), .75); }
.dosstep:disabled { opacity: .4; cursor: not-allowed; }
.dosstep:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dosrec { font-size: 10.5px; padding: 0 6px; border-radius: 6px; background: rgba(62, 207, 142, .18); color: var(--ok); }
.dosfactors { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 4px; }
.dosfactors b { display: inline-block; min-width: 42px; font-variant-numeric: tabular-nums; }
.dosfactors b.bad { color: var(--bad); }
.dosfactors b.good { color: var(--ok); }
.dossay { margin-top: 10px; }
.dossay summary { cursor: pointer; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .dosgrid { grid-template-columns: minmax(0, 1fr); } .dosstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Team-Statistik, Vorlagen, Einstellungen (Heute zu tun) ---------- */
.tplrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.tplchip { cursor: pointer; font: inherit; font-size: 12px; color: inherit; }
.tplchip:hover { border-color: var(--accent); }
.tpls { display: grid; gap: 10px; margin-bottom: 10px; }
.tplitem { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel2); }
.tplline { display: grid; grid-template-columns: minmax(90px, 130px) minmax(100px, 1fr) minmax(100px, 130px) minmax(70px, 90px) minmax(120px, 190px) auto; gap: 6px; align-items: center; }
.tplline input.tplgone { visibility: hidden; }
.tschart { margin-bottom: 4px; }
.tsbars { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 4px 2px; border-bottom: 1px solid var(--line); }
.tsday { flex: 1 1 0; min-width: 2px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.tsday i { display: block; width: 100%; min-height: 0; }
.tsc, .tskey.tsc { background: rgba(var(--ac2), .85); }
.tsr, .tskey.tsr { background: #f5b942; }
.tskey { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 12px; }
.tsbest { color: var(--ok); font-weight: 700; }
@media (max-width: 760px) { .tplline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Mitglieder-Seiten (Einspruch, Bewertung), Einsprüche, Zeitzonen ---------- */
.mpcard { max-width: 560px; }
.mpcase { display: grid; gap: 6px; padding: 12px 14px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel2); text-align: left; font-size: 14px; }
.mprow { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.mprow > .muted { min-width: 74px; font-size: 12px; }
.mpbadge { width: 64px; height: 64px; margin: 14px auto; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--panel3); animation: mppop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.mpbadge.ok { background: rgba(62, 207, 142, .18); color: var(--ok); }
@keyframes mppop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.mpstars { display: flex; justify-content: center; gap: 6px; margin: 8px 0 12px; }
.mpstar { all: unset; cursor: pointer; font-size: 38px; line-height: 1; color: var(--line); transition: transform .15s, color .15s; }
.mpstar.on { color: #f5b942; transform: scale(1.12); }
.mpstar:hover { transform: scale(1.25) rotate(-8deg); }
.mpstar:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.pa { display: grid; gap: 8px; }
.pahead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.patext { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--panel2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.dosrevoked { opacity: .55; }
.dosrevoked td:first-child { text-decoration: line-through; }
.tzbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.tzgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tzcard { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); padding: 36px 16px 12px; background: linear-gradient(180deg, #1c1e2f 0%, #161828 100%); animation: tzin .5s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 60ms); transition: border-color .25s, transform .25s; }
.tzcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.tzcard.home { border-color: rgba(var(--ac2), .6); }
.tzcard.out { animation: tzout .25s ease forwards; }
@keyframes tzin { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tzout { to { opacity: 0; transform: scale(.9); } }
.tzsky { position: absolute; inset: 0 0 auto 0; height: 80px; opacity: .55; pointer-events: none; transition: background 1s; }
.tzsun { position: absolute; top: 7px; width: 22px; height: 22px; line-height: 22px; font-size: 17px; text-align: center; border-radius: 50%; transition: left 1s cubic-bezier(.4, 0, .2, 1), background 1s, box-shadow 1s; }
.tzhead { position: relative; display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.tzhead h4 { margin: 0; font-size: 16px; }
.tzx { all: unset; cursor: pointer; color: var(--muted); padding: 0 4px; border-radius: 6px; opacity: 0; transition: opacity .2s, color .2s; }
.tzcard:hover .tzx, .tzx:focus-visible { opacity: 1; }
.tzx:hover { color: var(--bad); }
.tzmid { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.tzclock { width: 84px; height: 84px; flex: none; }
.tzclock circle.face { fill: rgba(255, 255, 255, .03); stroke: var(--line); stroke-width: 2; }
.tzclock .tick { stroke: var(--muted); stroke-width: 1.5; }
.tzclock .hand { stroke-linecap: round; transform-origin: 50px 50px; transition: transform .6s cubic-bezier(.4, 2.1, .55, .9); }
.tzclock .hh, .tzclock .mm { stroke: var(--text); }
.tzclock .ss { stroke: var(--accent); transition: transform .3s cubic-bezier(.4, 2.1, .55, .9); }
.tzclock .nofade { transition: none !important; }
.tzdig { font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 700; letter-spacing: .5px; line-height: 1.1; display: flex; }
.tzdig .tzd { display: inline-block; min-width: .6em; text-align: center; }
.tzdig .tzd.roll { animation: tzroll .35s ease; }
.tzdig .tzsep { opacity: .6; }
.tzdig .tzsec { font-size: 18px; align-self: flex-end; margin-left: 4px; color: var(--muted); }
@keyframes tzroll { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
.tzmeta { font-size: 12px; margin-top: 2px; }
.tzstat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; position: relative; }
.tzline { margin-top: 10px; display: flex; height: 10px; border-radius: 6px; overflow: hidden; position: relative; background: var(--panel2); }
.tzline i { flex: 1 1 0; transition: background .4s; }
.tzline i.w { background: #3ecf8e; } .tzline i.o { background: rgba(110, 168, 255, .55); } .tzline i.n { background: rgba(120, 100, 200, .28); } .tzline i.s { background: rgba(255, 255, 255, .06); }
.tzline .tzmark { position: absolute; top: -2px; bottom: -2px; width: 3px; background: #fff; border-radius: 2px; box-shadow: 0 0 8px #fff; transition: left .5s cubic-bezier(.4, 0, .2, 1); }
.tzplan { display: grid; gap: 6px; margin: 4px 0 10px; }
.tzpmark { position: absolute; top: -2px; bottom: -2px; width: 3px; background: #fff; border-radius: 2px; box-shadow: 0 0 8px #fff; transition: left .5s cubic-bezier(.4, 0, .2, 1); }
@media (max-width: 760px) { .tzover { display: none; } }
.tzrow { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.tzconv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.tzbest { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tzbest .badge { animation: tzin .4s ease both; }
.tzpulse { animation: tzpulse .9s ease 2; }
@keyframes tzpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--ac2), 0); } 50% { box-shadow: 0 0 0 8px rgba(var(--ac2), .25); } }
.tzdiff { display: inline-block; padding: 0 7px; border-radius: 99px; font-size: 11px; background: var(--panel3); }
@media (prefers-reduced-motion: reduce) { .tzcard, .tzdig .tzd.roll, .mpbadge, .tzbest .badge, .tzpulse { animation: none !important; } .tzclock .hand, .tzsun, .tzline .tzmark, .tzpmark, .mpstar { transition: none !important; } }
@media (max-width: 760px) { .tzrow { grid-template-columns: 1fr; } }
/* Wetter in der Zeitzonen-Karte: Symbol an der Stelle der Sonne, Himmels-Ebene mit einzelnen Regentropfen / Schneeflocken (von timezones.js erzeugt), Nebel, Wolken, Blitz; Abzeichen mit Temperatur */
.tzwx { position: absolute; inset: 0 0 auto 0; height: 80px; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .8s; -webkit-mask-image: linear-gradient(#000 55%, transparent 100%); mask-image: linear-gradient(#000 55%, transparent 100%); }
.tzwx.rain, .tzwx.storm, .tzwx.snow, .tzwx.fog, .tzwx.cloud { opacity: 1; }
.tzwx.rain, .tzwx.storm { background: linear-gradient(180deg, rgba(22, 32, 56, .55), rgba(22, 32, 56, .14) 75%, transparent); }
.tzwx.snow { background: linear-gradient(180deg, rgba(236, 243, 255, .17), transparent 85%); }
.tzwx.fog { background: linear-gradient(180deg, rgba(210, 220, 235, 0), rgba(210, 220, 235, .4) 55%, rgba(210, 220, 235, .12)); }
.tzwx.cloud { background: radial-gradient(110px 30px at 20% 28%, rgba(255, 255, 255, .2), transparent 100%), radial-gradient(130px 34px at 74% 52%, rgba(255, 255, 255, .15), transparent 100%), radial-gradient(90px 26px at 48% 10%, rgba(255, 255, 255, .12), transparent 100%); }
.tzwx .dr { position: absolute; left: var(--x); top: var(--y); width: 1.7px; height: var(--h); border-radius: 1px; background: linear-gradient(180deg, rgba(205, 228, 255, 0), rgba(215, 235, 255, 1)); opacity: var(--o); transform: rotate(14deg); }
.tzwx .fl { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); }
.tzwx .fl b { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, #fff 0 42%, rgba(255, 255, 255, .55) 68%, rgba(255, 255, 255, 0) 100%); opacity: var(--o); box-shadow: 0 0 5px rgba(255, 255, 255, .75); }
.tzwx.storm::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .75); opacity: 0; }
.tzwxb { max-width: 100%; }
.tzattr { margin: 6px 2px 0; font-size: 12px; }
.tzattr a { color: inherit; text-decoration: underline; text-decoration-style: dotted; }
@media (prefers-reduced-motion: no-preference) {
  .tzwx .dr { animation: tzdrop var(--d) linear infinite; animation-delay: var(--dl); }
  .tzwx .fl { animation: tzflake var(--d) linear infinite; animation-delay: var(--dl); }
  .tzwx .fl b { animation: tzsway calc(var(--d) * .4) ease-in-out infinite alternate; animation-delay: var(--dl); }
  .tzwx.fog { animation: tzfog 9s ease-in-out infinite alternate; }
  .tzwx.cloud { animation: tzcloud 24s ease-in-out infinite alternate; }
  .tzwx.storm::after { animation: tzflash 7s ease-in-out infinite; }
}
@keyframes tzdrop { from { transform: translate(0, calc(-1 * var(--y) - 18px)) rotate(14deg); } to { transform: translate(24px, calc(98px - var(--y))) rotate(14deg); } }
@keyframes tzflake { from { transform: translateY(calc(-1 * var(--y) - 8px)); } to { transform: translateY(calc(92px - var(--y))); } }
@keyframes tzsway { from { transform: translateX(calc(var(--w) * -.5)); } to { transform: translateX(calc(var(--w) * .5)); } }
@keyframes tzfog { from { opacity: .65; } to { opacity: 1; } }
@keyframes tzcloud { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
@keyframes tzflash { 0%, 91%, 100% { opacity: 0; } 93% { opacity: .55; } 95% { opacity: 0; } 96.5% { opacity: .35; } }

/* ---------- Seitenleiste aufgeräumt (2.29.0): Favoriten, Zuletzt besucht, Stern an jeder Seite ---------- */
.navitem { position: relative; }
.navitem.quick { padding-left: 12px; gap: 9px; }
.navitem.quick .qico { width: 18px; flex: none; text-align: center; font-size: 13px; }
.navitem.quick.here { color: var(--accent-xl); }
.navquick .navtitle { padding-top: 8px; padding-bottom: 4px; }
.navquick + .navgroup:not(.navquick) { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.navstar { margin-left: auto; padding: 0 2px; font-size: 14px; line-height: 1; color: var(--muted); opacity: 0; cursor: pointer; transition: opacity .15s, transform .2s cubic-bezier(.2, 1.6, .4, 1), color .15s; }
.navitem > .navbadge ~ .navstar, .navitem > .newchip ~ .navstar { margin-left: 6px; }
.navitem:hover .navstar, .navitem:focus-visible .navstar, .navstar.on { opacity: .9; }
.navstar:hover { transform: scale(1.3); color: #fbbf24; opacity: 1; }
.navstar.on { color: #fbbf24; }
.navitem.active .navstar { color: rgba(255, 255, 255, .85); }
.navitem.active .navstar.on { color: #fde68a; }
@media (hover: none) { .navstar { opacity: .5; } .navstar.on { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .navstar { transition: none; } }

/* ---------- Mehrere Rollen erwähnen (2.29.0): gewählte Rollen als Chips, darunter „+ Rolle hinzufügen“ ---------- */
.rolepick { display: grid; gap: 8px; }
.rpchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; }
.chip.rm { display: inline-flex; align-items: center; gap: 6px; padding-right: 4px; }
.rpx { all: unset; box-sizing: border-box; cursor: pointer; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; font-size: 11px; color: var(--muted); transition: background .15s, color .15s; }
.rpx:hover, .rpx:focus-visible { background: rgba(240, 86, 106, .22); color: #ffb3bd; }
.rpnone { font-size: 13px; }
.rpadd:disabled { opacity: .55; }

/* ---------- Mein Konto (2.30.0): Zwei-Faktor einrichten, Wiederherstellungs-Codes ---------- */
.tfsteps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 14px; }
.tfkey { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.tfkey code { font-size: 18px; letter-spacing: .08em; padding: 8px 12px; border-radius: var(--r-sm); background: var(--panel2); border: 1px solid var(--line); }
.tfcodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tfcodes code { font-size: 16px; letter-spacing: .06em; padding: 9px 12px; border-radius: var(--r-sm); background: var(--panel2); border: 1px solid var(--line); text-align: center; user-select: all; }

/* ---------- Automatisierung (2.30.0): Regeln als Sätze, Editor mit Bausteinen ---------- */
.ausent { display: grid; gap: 6px; margin: 10px 0 6px; }
.ausrow { display: flex; gap: 10px; align-items: baseline; }
.austx { min-width: 0; overflow-wrap: anywhere; }
.aulab { flex: none; min-width: 74px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--panel3); color: var(--accent-xl); }
.aulab.if { background: rgba(var(--ac), .24); color: var(--accent-xl); }
.aulab.and { background: rgba(245, 185, 66, .16); color: var(--warn); }
.aulab.then { background: rgba(62, 207, 142, .16); color: var(--ok); }
.aulab.opt { background: var(--panel3); color: var(--muted); }
.aurule.off { opacity: .72; }
.auswitch { min-width: 74px; font-weight: 700; }
.auswitch.on { background: rgba(62, 207, 142, .18); border-color: rgba(62, 207, 142, .5); color: var(--ok); }
.ausec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ausec > .row { margin-bottom: 10px; }
.aublock { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel2); padding: 10px 12px; margin-bottom: 8px; }
.auhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aunum { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--panel3); color: var(--accent-xl); }
.aufields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 14px; margin-top: 10px; }
.aufld { display: grid; gap: 4px; align-content: start; min-width: 0; }
.aufld.wide { grid-column: 1 / -1; }
.aulab2 { font-size: 12px; color: var(--muted); }
.auph { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.auph .btn { font-size: 11px; padding: 2px 7px; }
.auday { padding-right: 8px; }
.auadd { max-width: 100%; margin-top: 2px; }
.autpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.autplc { margin: 0; }
.autest { margin-top: 12px; }
.autest .verdict { font-weight: 700; padding: 8px 12px; border-radius: var(--r-sm); margin-bottom: 8px; background: var(--panel2); }
.autest .verdict.ok { color: var(--ok); }
.autest .verdict.no { color: var(--warn); }
@media (max-width: 640px) { .ausrow { flex-direction: column; gap: 3px; } .aulab { align-self: flex-start; } }
/* ---------- Bewerbungen und Formulare (2.30.0): öffentliche Formularseite, Team-Ansicht ---------- */
.fmcard { width: min(640px, 100%); max-width: 640px; }
.fmdesc { margin: 0 0 14px; white-space: pre-wrap; font-size: 14px; line-height: 1.5; color: var(--text); }
.fmq { margin: 0 0 16px; text-align: left; }
.fmlab { display: block; font-weight: 600; margin-bottom: 4px; }
.fmreq { color: var(--bad); }
.fmq input[type=text], .fmq input[type=number], .fmq textarea { width: 100%; }
.fmq .hint { margin: 0 0 6px; }
.fmopts { display: grid; gap: 6px; }
.fmerr { min-height: 0; margin-top: 4px; font-size: 13px; }
.fmerr:empty { display: none; }
.fmfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 14px; margin-top: 6px; }
.fmfact { display: grid; gap: 2px; font-size: 14px; }
.fmfact .muted { font-size: 12px; }
.fmanswers { display: grid; gap: 12px; }
.fmql { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.fmaa { white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 12px; border-radius: var(--r-sm); background: var(--panel2); border: 1px solid var(--line); }
.fmtally { white-space: nowrap; font-size: 13px; }
.fmvotes, .fmnotes { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.fmnote { white-space: pre-wrap; overflow-wrap: anywhere; }
.fmrow td { vertical-align: middle; }.aufld select, .aufld input[type=text], .aufld textarea { width: 100%; }
.aufld .rolepick { width: 100%; }
.fmlab > span { display: inline; margin: 0; font-size: inherit; color: var(--text); font-weight: 600; }
.fmlab > .fmreq { color: var(--bad); }
.fmlab > .muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.fmopts .check { text-align: left; margin-bottom: 4px; }
.fmopts .check > span { display: inline; margin: 0; font-size: 14px; color: var(--text); font-weight: 500; }
.fmopts input[type=radio] { -webkit-appearance: radio; appearance: auto; width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
/* ---------- Brücke (2.30.0) ---------- */
.brline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.brend { padding: 6px 12px; border-radius: var(--r-sm); background: var(--panel2); border: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.brarrow { font-size: 20px; color: var(--accent-xl); }
.brcode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 0; }
.brcode code { font-size: 24px; letter-spacing: .14em; padding: 8px 16px; border-radius: var(--r-sm); background: var(--panel2); border: 1px solid var(--line2); user-select: all; }
/* ---------- Werbe-Schutz (2.31.0) ---------- */
.autest { margin-top: 12px; display: grid; gap: 8px; }
.verdict { padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; border: 1px solid var(--line2); background: var(--panel2); }
.verdict.no { border-color: var(--bad); background: rgba(240, 86, 106, .12); color: #ff9fae; }
.verdict.ok { border-color: var(--ok); background: rgba(62, 207, 142, .12); color: var(--ok); }
.adbar { position: relative; height: 10px; border-radius: 6px; background: var(--panel3); overflow: visible; margin: 2px 0 6px; }
.adbar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ok), var(--warn) 60%, var(--bad)); max-width: 100%; }
.adbar > b { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--text); border-radius: 1px; box-shadow: 0 0 0 1px var(--bg); }
.adhit { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.adhit:last-child { border-bottom: 0; }
.adhit .badge { min-width: 40px; text-align: center; }
.capprev:not(:empty) { margin: 10px 0 18px; }
.capimg { display: block; max-width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line2); }
.adcell { max-width: 200px; }
/* ---------- Tutorial: wichtige Hinweise hervorgehoben (2.31.0) ---------- */
.tutimp { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--warn); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(245, 185, 66, .10); font-size: 14px; line-height: 1.5; }
.tutimp > b { color: var(--warn); }
.tutitem.tutkey { border-left: 3px solid var(--warn); padding-left: 12px; background: linear-gradient(90deg, rgba(245, 185, 66, .07), transparent 60%); }
.adwarn { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--warn); background: rgba(245, 185, 66, .10); color: var(--text); }
.adwarn > b { color: var(--warn); }

/* Beweise und Fall-Assistent (2.34.0) */
.evsaved { margin-top: 12px; }
.evsaved summary { cursor: pointer; font-weight: 600; }
.evlist { display: grid; gap: 6px; margin: 6px 0 10px; }
.evmsg { border-left: 3px solid var(--line2); background: var(--panel2); border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.evmsg.target { border-left-color: var(--accent-l); }
.evmsg.hit { border-left-color: var(--warn); }
.evmsg .bmeta { font-size: 12.5px; color: var(--muted); }
.asslines { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.asslines li.ass-bad { color: var(--bad); }
.asslines li.ass-good { color: var(--ok); }
.asslines .assico { display: inline-block; min-width: 22px; }
.adfull summary { cursor: pointer; }
.adfull .btext { white-space: pre-wrap; margin-top: 4px; }
td.adfullcell { white-space: normal; }

/* Rollen-Studio (2.36.0) */
.rslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rsrow { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
.rsrow.mv { cursor: grab; }
.rsrow.fixed { opacity: .65; }
.rsrow.drag { opacity: .4; }
.rsrow.over { border-color: var(--accent-l); box-shadow: 0 0 0 2px rgba(var(--ac), .35); }
.rsgrip { width: 18px; text-align: center; color: var(--muted); user-select: none; flex: none; }
.rsdot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rsjob { padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel2); }

/* Master-Knopf „Bot entfernen“ auf der Server-Auswahl (2.38.0) */
.leaverow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.guilds:not(.manage) .leaverow { display: none; } /* „Entfernen“/„Ausschließen“ erscheinen erst nach dem Schalter „Server verwalten“ */
.leavebtn { width: 100%; padding-left: 6px; padding-right: 6px; border-color: var(--bad); color: var(--bad); opacity: .85; font-size: 12.5px; }
.leavebtn:hover { background: rgba(240, 86, 106, .12); border-color: var(--bad); opacity: 1; }

.blklist { display: grid; gap: 6px; margin-bottom: 10px; }
.blkrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
.blkrow .blkname { flex: 1; min-width: 140px; }
.blkadd { flex-wrap: wrap; }
.blkadd input { min-width: 200px; }

/* Änderungsverlauf (sethistory.js) */
.histrec { margin-top: 10px; }
.histhead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.histwhat { margin: 2px 0 8px; }
.histitem { padding: 8px 0; border-top: 1px solid var(--line); }
.histitem:first-of-type { border-top: 0; padding-top: 0; }
.histpath { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.histpath .spacer { flex: 1; }
.histlines { margin-top: 4px; display: grid; gap: 2px; font-size: 13px; }
.histline { overflow-wrap: anywhere; }
.histkey { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }

/* Medien-Scanner (mediascan.js) */
.mslist { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.mslist input[type=text] { flex: 1 1 220px; min-width: 160px; }
.mscage { margin: 10px 0 4px; }
.mscage .badge { min-width: 22px; text-align: center; }
/* Schutz-Zentrale (shield.js): Schild-Knopf, Live-Fenster, Messgerät, Kacheln, Ticker */
.shfab { all: unset; box-sizing: border-box; position: fixed; right: 22px; bottom: 130px; z-index: 71; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; font-size: 21px; background: rgba(20, 18, 46, .92); border: 2px solid rgba(52, 211, 153, .7); animation: shbreath 3.2s ease-in-out infinite; transition: transform .15s; }
.shfab[hidden] { display: none; }
.shfab:hover, .shfab:focus-visible { transform: translateY(-2px) scale(1.06); }
.shfab[data-level="warn"] { border-color: rgba(250, 204, 21, .85); animation-name: shbreathw; }
.shfab[data-level="alert"] { border-color: rgba(240, 86, 106, .95); animation: shalert 1.1s ease-in-out infinite; }
.shfab .shscore { position: absolute; right: -7px; bottom: -6px; min-width: 22px; padding: 1px 5px; border-radius: 10px; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; background: rgba(52, 211, 153, .95); color: #05261b; }
.shfab[data-level="warn"] .shscore { background: rgba(250, 204, 21, .95); color: #2b2400; }
.shfab[data-level="alert"] .shscore { background: rgba(240, 86, 106, .95); color: #fff; }
.shfab.shping::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(240, 86, 106, .8); animation: shring 1.1s ease-out 2; }
@keyframes shbreath { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .4); } 50% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } }
@keyframes shbreathw { 0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, .45); } 50% { box-shadow: 0 0 0 9px rgba(250, 204, 21, 0); } }
@keyframes shalert { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 86, 106, .65); } 50% { box-shadow: 0 0 0 12px rgba(240, 86, 106, 0); } }
@keyframes shring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.shback { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 50% 30%, rgba(var(--ac3), .14), rgba(5, 4, 18, .78) 70%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .2s; }
.shback.in { opacity: 1; }
.shpanel { --lv: 52, 211, 153; width: min(1100px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border-radius: 20px; padding: 18px 20px 14px; background: linear-gradient(170deg, rgba(30, 27, 64, .98), rgba(13, 12, 32, .99)); border: 1px solid rgba(var(--lv), .4); box-shadow: 0 30px 90px rgba(3, 2, 22, .7), 0 0 60px rgba(var(--lv), .12); transform: translateY(14px) scale(.985); transition: transform .26s cubic-bezier(.2, .9, .3, 1), border-color .4s; }
.shback.in .shpanel { transform: none; }
.shpanel[data-level="warn"] { --lv: 250, 204, 21; }
.shpanel[data-level="alert"] { --lv: 240, 86, 106; animation: shpanelalert 1.4s ease-in-out infinite; }
@keyframes shpanelalert { 0%, 100% { box-shadow: 0 30px 90px rgba(3, 2, 22, .7), 0 0 40px rgba(240, 86, 106, .18); } 50% { box-shadow: 0 30px 90px rgba(3, 2, 22, .7), 0 0 80px rgba(240, 86, 106, .38); } }
.shhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shhead h2 { margin: 0; font-size: 20px; }
.shgrow { flex: 1; }
.shlive { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: rgb(var(--lv)); }
.shlive i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--lv)); animation: shblink 1.2s ease-in-out infinite; }
@keyframes shblink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.shhero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 14px 0 10px; }
.shgauge { position: relative; width: 176px; height: 176px; flex: 0 0 auto; }
.shgauge svg { width: 100%; height: 100%; display: block; }
.shtrack { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 8; }
.shprog { fill: none; stroke: rgb(var(--lv)); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .9, .3, 1), stroke .4s; filter: drop-shadow(0 0 6px rgba(var(--lv), .55)); }
.shsweep { position: absolute; inset: 14px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--lv), 0) 0deg 270deg, rgba(var(--lv), .22) 360deg); animation: shsweep 4s linear infinite; pointer-events: none; }
@keyframes shsweep { to { transform: rotate(360deg); } }
.shnum { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.shnum b { font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.shnum span { font-size: 16px; opacity: .65; margin-top: 12px; }
.shinfo { flex: 1 1 320px; min-width: 260px; }
.shheadline { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: rgb(var(--lv)); transition: color .4s; }
.shpulselab { margin-top: 14px; font-size: 12px; }
.shpulse { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin-top: 4px; }
.shpulse i { flex: 1; min-width: 4px; height: 6%; border-radius: 3px 3px 0 0; background: rgba(255, 255, 255, .12); transition: height .7s cubic-bezier(.2, .9, .3, 1), background .3s; }
.shpulse i.on { background: rgba(var(--lv), .85); }
.shbody { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 6px; }
.shgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; align-content: start; }
.shtile { all: unset; box-sizing: border-box; cursor: pointer; display: block; padding: 12px 13px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: transform .15s, border-color .2s, background .2s; }
.shtile:hover, .shtile:focus-visible { transform: translateY(-2px); border-color: rgba(var(--ac2), .6); background: rgba(255, 255, 255, .07); }
.shtile[data-state="ok"] { border-color: rgba(52, 211, 153, .35); }
.shtile[data-state="warn"] { border-color: rgba(250, 204, 21, .55); }
.shtile[data-state="alert"] { border-color: rgba(240, 86, 106, .7); animation: shalerttile 1s ease-in-out infinite; }
.shtile[data-on="0"] { opacity: .68; }
.shtop { display: flex; align-items: center; gap: 8px; }
.shtico { font-size: 18px; }
.shname { font-size: 14px; }
.shdot { --dc: 255, 255, 255; width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--dc), .25); }
.shtile[data-state="ok"] .shdot { --dc: 52, 211, 153; background: rgb(var(--dc)); animation: shdot 2.4s ease-in-out infinite; }
.shtile[data-state="warn"] .shdot { --dc: 250, 204, 21; background: rgb(var(--dc)); animation: shdot 1.4s ease-in-out infinite; }
.shtile[data-state="alert"] .shdot { --dc: 240, 86, 106; background: rgb(var(--dc)); animation: shdot .7s ease-in-out infinite; }
@keyframes shdot { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--dc), .55); } 50% { box-shadow: 0 0 0 7px rgba(var(--dc), 0); } }
.shchip { display: inline-block; margin: 8px 0 4px; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .08); }
.shtile[data-state="ok"] .shchip { background: rgba(52, 211, 153, .16); color: #7ee8bb; }
.shtile[data-state="warn"] .shchip { background: rgba(250, 204, 21, .16); color: #f6dc6c; }
.shtile[data-state="alert"] .shchip { background: rgba(240, 86, 106, .2); color: #ff9aa8; }
.shstat { font-size: 13px; }
.shdesc { font-size: 11.5px; margin-top: 2px; }
.shtile.flash { animation: shflash 1.2s ease-out; }
@keyframes shflash { 0% { box-shadow: 0 0 0 0 rgba(var(--lv), .9); background: rgba(var(--lv), .22); } 100% { box-shadow: 0 0 0 14px rgba(var(--lv), 0); background: rgba(255, 255, 255, .04); } }
@keyframes shalerttile { 0%, 100% { background: rgba(240, 86, 106, .08); } 50% { background: rgba(240, 86, 106, .2); } }
.shticker { border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); padding: 10px 12px; min-height: 160px; display: flex; flex-direction: column; }
.shticker h3 { margin: 0 0 8px; font-size: 14px; }
.shlist { overflow-y: auto; max-height: 340px; display: flex; flex-direction: column; gap: 4px; }
.shev { display: flex; gap: 8px; align-items: baseline; padding: 5px 8px; border-radius: 8px; font-size: 13px; background: rgba(255, 255, 255, .03); }
.shev.new { animation: shin .5s cubic-bezier(.2, .9, .3, 1), shglow 2.6s ease-out; }
@keyframes shin { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes shglow { 0% { background: rgba(var(--lv), .3); } 100% { background: rgba(255, 255, 255, .03); } }
.shevt { font-size: 11px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.shevx { word-break: break-word; }
.shempty { margin: 6px 0; font-size: 12.5px; }
.shfoot { margin: 10px 0 0; font-size: 11.5px; text-align: center; }
@media (max-width: 860px) { .shbody { grid-template-columns: 1fr; } .shgauge { width: 140px; height: 140px; } .shnum b { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .shfab, .shpanel, .shlive i, .shsweep, .shdot, .shtile, .shev.new, .shfab.shping::after { animation: none !important; } .shprog, .shpulse i, .shback, .shpanel { transition: none !important; } }
/* Gewitter-Zugbahn (features.js, Unwetter-Karte): Prognose-Kegel, Unsicherheitskreis, Zellen-Pfeile */
.wxk.stormcone { fill: #ffd166; fill-opacity: .11; stroke: #ffd166; stroke-width: 1.4; stroke-dasharray: 5 4; stroke-linejoin: round; cursor: pointer; }
.wxk.stormunc { fill: rgba(255, 209, 102, .14); stroke: #ffd166; stroke-width: 1.7; cursor: pointer; }
.sttm { min-width: 110px; font-variant-numeric: tabular-nums; }
.stormcell { filter: drop-shadow(0 0 2px rgba(0, 0, 0, .9)); }
/* Team-Verwaltung (staffhub.js) */
.shiftrow { margin: 3px 0; font-size: 13px; }
td.shtoday, th.shtoday { background: rgba(var(--ac2), .1); }

/* Werkstatt (devpanel.js) */
.dvb { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); margin-left: 4px; font-weight: 500; vertical-align: middle; }
.dvb.ok { color: var(--ok); border-color: rgba(62, 207, 142, .45); background: rgba(62, 207, 142, .1); }
.dvb.warn { color: var(--warn); border-color: rgba(245, 185, 66, .45); background: rgba(245, 185, 66, .1); }
.dvb.bad { color: #ff8da1; border-color: rgba(240, 86, 106, .5); background: rgba(240, 86, 106, .1); }
.dvsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.dvstep { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, transform .12s; }
.dvstep:hover { border-color: var(--accent); transform: translateY(-1px); }
.dvstep:focus-visible { box-shadow: 0 0 0 3px rgba(var(--ac), .35); }
.dvstep .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(var(--ac2), .28); }
.dvstep b { display: block; margin-bottom: 2px; }
.dvsd { display: block; font-size: 12.5px; line-height: 1.4; }
.dvbots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
.dvbots > .card { margin-bottom: 0; }
.dvfacts { display: grid; grid-template-columns: max-content 1fr; gap: 5px 14px; font-size: 13px; margin: 6px 0 14px; }
.dvself { margin-top: 12px; display: grid; gap: 6px; }
.dvissue { padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel2); font-size: 13px; line-height: 1.4; }
.dvissue.bad { border-color: rgba(240, 86, 106, .55); } .dvissue.warn { border-color: rgba(245, 185, 66, .55); }
.dvjobs { display: grid; gap: 6px; }
.dvjobrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.dvjob { display: grid; gap: 4px; margin: 6px 0 10px; }
.dvstepline { display: flex; gap: 10px; font-size: 13px; padding: 4px 0; } .dvstepline .ico { width: 16px; text-align: center; color: var(--muted); }
.dvstepline.ok .ico { color: var(--ok); } .dvstepline.bad .ico { color: var(--bad); } .dvstepline.bad { color: #ff8da1; }
.dvfiles { display: grid; gap: 6px; }
.dvfile { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.dvfile .row { gap: 10px; }
.dvcodewrap { position: relative; }
.dvcopy { position: absolute; top: 6px; right: 8px; opacity: .75; } .dvcodewrap:hover .dvcopy { opacity: 1; }
.dvcode { margin: 8px 0; padding: 10px 12px; max-height: 340px; overflow: auto; background: #0a0b13; border: 1px solid var(--line); border-radius: var(--r-sm); font: 12.5px/1.5 Consolas, 'Cascadia Mono', 'SF Mono', monospace; white-space: pre; color: #d8dcf3; tab-size: 2; }
.dvdiff { margin: 8px 0; max-height: 420px; overflow: auto; background: #0a0b13; border: 1px solid var(--line); border-radius: var(--r-sm); font: 12.5px/1.45 Consolas, 'Cascadia Mono', monospace; }
.dvdiff .dl { white-space: pre-wrap; word-break: break-all; padding: 0 10px 0 4px; display: flex; gap: 8px; }
.dvdiff .dl .sg { flex: none; width: 12px; color: var(--muted); user-select: none; }
.dvdiff .dl.add { background: rgba(62, 207, 142, .13); } .dvdiff .dl.add .sg { color: var(--ok); }
.dvdiff .dl.del { background: rgba(240, 86, 106, .13); } .dvdiff .dl.del .sg { color: var(--bad); }
.dvdiff .dl.fold { color: var(--muted); justify-content: center; font-style: italic; background: rgba(255, 255, 255, .03); }
.dvarea { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.dvarea > summary { cursor: pointer; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.dvarea > summary::-webkit-details-marker { display: none; }
.dvarea[open] > summary { border-bottom: 1px solid var(--line); }
.dvas { font-size: 12.5px; }
.dvrow { border-top: 1px solid var(--line); } .dvarea > summary + .dvrow { border-top: 0; }
.dvrowhead { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; width: 100%; }
.dvrowhead:hover { background: rgba(var(--ac2), .08); } .dvrowhead:focus-visible { box-shadow: inset 0 0 0 2px rgba(var(--ac), .45); }
.dvrs { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dvgroup { margin: 14px 0 0; display: grid; gap: 6px; } .dvgroup > h4 { margin: 0 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dvsd2 { font-size: 12px; margin-top: 3px; line-height: 1.4; word-break: break-word; }
.dvokrows { margin-top: 2px; } .dvokrows > summary { cursor: pointer; padding: 4px 0; } .dvokrows > .dvissue { margin-top: 6px; }
.dvlink { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 5px 8px; border-radius: 6px; font-size: 13px; width: 100%; } .dvlink:hover { background: rgba(var(--ac2), .12); } .dvlink:focus-visible { box-shadow: 0 0 0 2px rgba(var(--ac), .45); }
.dvrow.open .dvrs { display: none; }
.dvdetail { padding: 6px 14px 12px; display: grid; gap: 4px; font-size: 13px; }
.dvchip { cursor: pointer; font: inherit; font-size: 12px; color: inherit; } .dvchip:hover { border-color: var(--accent); }
.dvhits { display: grid; gap: 3px; margin-top: 10px; max-height: 340px; overflow: auto; }
.dvhit { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; padding: 4px 8px; border-radius: 6px; font-size: 12.5px; }
.dvhit:hover { background: rgba(var(--ac2), .12); } .dvhp { flex: none; color: var(--accent); } .dvht { white-space: pre; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-family: Consolas, 'Cascadia Mono', monospace; }
.dvview { width: min(1000px, 96vw); }
.dvsrc { max-height: 68vh; overflow: auto; margin-top: 10px; background: #0a0b13; border: 1px solid var(--line); border-radius: var(--r-sm); font: 12.5px/1.5 Consolas, 'Cascadia Mono', monospace; padding: 6px 0; }
.dvsrc .dsl { white-space: pre; padding: 0 12px 0 0; display: flex; } .dvsrc .dsl.hit { background: rgba(245, 185, 66, .2); }
.dvsrc .ln { flex: none; width: 52px; text-align: right; padding-right: 12px; color: var(--muted); user-select: none; }
.dvsrc > .btn { margin: 6px 12px; }
.dvrecipes { display: grid; gap: 8px; margin-bottom: 16px; }
.dvrecipe { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.dvrecipe > summary { cursor: pointer; padding: 11px 14px; display: flex; gap: 10px; align-items: baseline; list-style: none; } .dvrecipe > summary::-webkit-details-marker { display: none; }
.dvrecipe[open] > summary { border-bottom: 1px solid var(--line); }
.dvrecipe .ico { font-size: 18px; }
.dvlead { margin: 10px 14px 4px; color: var(--muted); }
.dvsteplist { margin: 6px 14px 14px; padding-left: 22px; display: grid; gap: 12px; } .dvsteplist li > div { margin-top: 2px; line-height: 1.5; }
.dvwords { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; } .dvwords dt { font-weight: 600; } .dvwords dd { margin: 0; color: var(--muted); }
.dvlog { height: 52vh; min-height: 260px; overflow: auto; padding: 8px 10px; background: #0a0b13; border: 1px solid var(--line); border-radius: var(--r-sm); font: 12px/1.45 Consolas, 'Cascadia Mono', monospace; }
.dvlog .dll { white-space: pre-wrap; word-break: break-all; } .dvlog .dll.bad { color: #ff8da1; }
.dvtable { width: 100%; border-collapse: collapse; font-size: 13px; } .dvtable th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 10px; border-bottom: 1px solid var(--line); } .dvtable td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 700px) { .dvfacts { grid-template-columns: 1fr 1fr; } .dvwords { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dvstep { transition: none; } .dvstep:hover { transform: none; } }
