/* Team-Panel Altenbrunn – Dunkles Design wie im Mockup */
:root {
  --accent: #2b59ff;
  --bg: #0d0f13; --panel: #161920; --raised: #2a2f3b; --line: #262b35; --line2: #22262f; --btnline: #323845; --field: #12151b; --soft: #1d2129;
  --text: #eef1f6; --text2: #d6dbe3; --text3: #c9d0db; --muted: #b2bac6; --muted2: #a6afbd; --faint: #959eac;
  --ok: #7fdcae; --okbg: #143325; --okline: #24563d; --warn: #ffbf73; --warnbg: #3b2a12; --bad: #ff9a90; --badbg: #3d1d1c; --info: #9db4ff; --infobg: #1c2a55; --violet: #c4a8ff; --violetbg: #2c1f4f;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: #9db4ff; } a:hover { color: #c6d4ff; }
input, textarea, select, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .faint { color: var(--muted2); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ Navigation */
.topnav { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topnav .in { max-width: 1280px; margin: 0 auto; padding: 10px clamp(16px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: 10px; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--raised); display: grid; place-items: center; overflow: hidden; }
.brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.brand b { font-weight: 800; font-size: 16px; letter-spacing: -.01em; } .brand b span { color: var(--muted2); font-weight: 600; }
.brand:hover { color: var(--text); }
.tabs { display: flex; flex-wrap: wrap; gap: 0; flex: 1 1 520px; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 12px; color: #b3bbc8; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tab:hover { background: var(--line); color: var(--text); }
.tab.on { background: var(--raised); color: #fff; }
.tab .tag { margin-left: 6px; height: 20px; background: var(--accent); color: #fff; }
.me { position: relative; }
.me > button { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; display: block; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--btnline); border-radius: 14px; padding: 6px; min-width: 230px; z-index: 40; }
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line2); margin-bottom: 4px; }
.menu .who b { display: block; } .menu .who small { color: var(--muted2); }
.menu a, .menu button.mi { display: flex; width: 100%; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text3); text-decoration: none; border: 0; background: none; font: 600 14px var(--font); cursor: pointer; text-align: left; }
.menu a:hover, .menu button.mi:hover { background: var(--soft); color: #fff; }
.banner { background: var(--warnbg); color: var(--warn); text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.banner.bad { background: var(--badbg); color: var(--bad); }

/* ------------------------------------------------------------------ Seite */
.page { max-width: 1280px; margin: 0 auto; padding: 30px clamp(16px, 3vw, 32px) 56px; display: flex; flex-direction: column; gap: 22px; }
.page.wide { max-width: 1360px; }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.ph .t { flex: 1 1 360px; min-width: 0; }
.ph .kicker { font-size: 14px; color: var(--muted); font-weight: 600; }
.ph .kicker a { color: var(--muted2); text-decoration: none; } .ph .kicker a:hover { color: var(--text); }
.ph h1 { margin: 4px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.ph h1.sm { font-size: 32px; }
.ph .desc { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.cols { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.col-side { flex: 1 1 340px; max-width: 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.col-side.w460 { flex-basis: 380px; max-width: 460px; }
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* ------------------------------------------------------------------ Kästen */
.box { background: var(--panel); border-radius: 20px; border: 1px solid var(--line); min-width: 0; }
.box.dark { background: var(--raised); border-color: var(--raised); color: #fff; }
.bh { display: flex; align-items: center; gap: 10px; padding: 20px 22px 8px; flex-wrap: wrap; }
.bh h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.box.dark .bh h2 { color: #fff; }
.bh .sub { margin-left: auto; font-size: 13px; color: var(--muted); }
.box.dark .bh .sub { color: #aab2c0; }
.bh small.d { display: block; width: 100%; font-size: 13px; font-weight: 500; color: var(--muted2); margin-top: -4px; }
.bd { padding: 10px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.tile { padding: 18px 20px; text-decoration: none; color: inherit; display: block; }
.tile .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile .n { font-size: 30px; font-weight: 800; margin-top: 4px; }
.tile .s { font-size: 13px; color: var(--muted); }
.tile:hover { border-color: var(--btnline); }
.tile.dark { background: var(--raised); border-color: var(--raised); color: #fff; } .tile.dark .k, .tile.dark .s { color: #aab2c0; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line2); min-width: 0; }
.li.top { align-items: flex-start; }
.li .grow { flex: 1; min-width: 0; }
.li b { font-size: 14.5px; } .li .meta { font-size: 13px; color: var(--muted); }
a.li { color: inherit; text-decoration: none; } a.li:hover { background: #1a1d25; }
.empty { padding: 22px; color: var(--muted2); font-size: 14px; text-align: center; }
.empty.left { text-align: left; }

/* ------------------------------------------------------------------ Knöpfe & Marken */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--btnline); background: var(--panel); color: var(--text); font: 600 14px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #20242d; color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { filter: brightness(1.08); }
.btn.ok { background: var(--okbg); border-color: var(--okline); color: var(--ok); }
.btn.green { background: #0f9d6e; border-color: #0f9d6e; color: #fff; }
.btn.redfill, .btn.danger-fill { background: #d6453b; border-color: #d6453b; color: #fff; }
.btn.danger { color: var(--bad); border-color: #4a2626; }
.btn.sel { background: var(--raised); border-color: var(--raised); color: #fff; }
.btn.ghost { color: var(--muted); }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.btn.xs { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 10px; }
.btn.icon { width: 44px; padding: 0; }
.btn.icon.sm { width: 36px; min-height: 36px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.t-bad { background: var(--badbg); color: var(--bad); } .t-warn { background: var(--warnbg); color: var(--warn); } .t-info { background: var(--infobg); color: var(--info); }
.t-ok { background: var(--okbg); color: var(--ok); } .t-violet { background: var(--violetbg); color: var(--violet); } .t-dim { background: var(--bg); color: #b3bbc8; } .t-soft { background: var(--soft); color: var(--text3); } .t-white { background: var(--raised); color: #fff; }
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #14161a; flex: none; object-fit: cover; }
.avs { display: flex; } .avs .av { border: 2px solid var(--panel); } .avs .av + .av { margin-left: -8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--text3); max-width: 100%; }
.chip.x { padding-right: 6px; }
.chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--raised); color: var(--text3); cursor: pointer; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.chip button:hover { background: #3a4050; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

/* ------------------------------------------------------------------ Formulare */
.lbl { display: block; font-size: 13px; font-weight: 700; color: var(--text3); margin-bottom: 8px; }
.hint { font-size: 12.5px; color: var(--muted2); margin-top: 6px; line-height: 1.45; }
.inp { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--btnline); background: var(--field); color: var(--text); font: 14px var(--font); }
textarea.inp { padding: 10px 12px; line-height: 1.5; resize: vertical; min-height: 90px; }
select.inp { padding-right: 8px; }
.inp:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.inp.num { width: 76px; text-align: center; }
.inp.auto { width: auto; }
.toggle { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.toggle .t { flex: 1; min-width: 0; } .toggle b { display: block; font-size: 14.5px; } .toggle small { display: block; font-size: 12.5px; color: var(--muted2); margin-top: 2px; line-height: 1.4; }
.sw { position: relative; width: 48px; height: 28px; border-radius: 999px; border: 0; cursor: pointer; flex: none; background: var(--btnline); padding: 0; }
.sw span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw.on { background: var(--accent); } .sw.on span { left: 23px; }
.sw:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.gap12 { gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.sep { border-top: 1px solid var(--line2); padding-top: 14px; }
.checkrow { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.checkrow input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.daybtn { min-width: 52px; min-height: 44px; border-radius: 12px; cursor: pointer; font: 700 14px var(--font); border: 1px solid var(--line); background: #0d0f14; color: #9aa3b2; }
.daybtn.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.swatch { width: 36px; height: 36px; border-radius: 10px; cursor: pointer; border: 1px solid var(--btnline); }
.swatch.on { border: 3px solid #fff; }
.swatch.round { border-radius: 50%; border: 3px solid var(--panel); } .swatch.round.on { border-color: #fff; }
.seg { display: inline-flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; cursor: pointer; font: 600 13.5px var(--font); color: var(--muted); background: transparent; }
.seg button.on { background: var(--raised); color: #fff; }

/* ------------------------------------------------------------------ Tabellen */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl-list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted2); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl-list td { padding: 12px 16px; border-top: 1px solid var(--line2); vertical-align: middle; }
.matrix th { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.matrix td { padding: 8px; border-bottom: 1px solid var(--line2); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; padding-left: 22px; }
.cell { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font: 800 15px var(--font); border: 1px solid var(--btnline); background: var(--panel); color: #fff; }
.cell.on { border-color: var(--accent); background: var(--accent); }
.cell.lock { cursor: not-allowed; background: #14161a; }
.cell.changed { border: 2px dashed var(--accent); }
.scroll-x { overflow-x: auto; }

/* ------------------------------------------------------------------ Team */
.person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--soft); min-width: 0; text-decoration: none; color: inherit; border: 1px solid transparent; }
a.person:hover { border-color: var(--btnline); color: inherit; }
.person .nm { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .rl { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rankrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rankrow .rn { width: 170px; flex: none; }
.rankrow .ppl { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > div { height: 100%; border-radius: 3px; background: var(--accent); }

/* ------------------------------------------------------------------ Bewerbungen */
.item { width: 100%; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; border-top: 1px solid var(--line2); padding: 14px 20px; display: flex; gap: 12px; align-items: center; cursor: pointer; text-decoration: none; }
.item:hover { background: var(--soft); color: inherit; }
.item.sel { background: #1a2340; box-shadow: inset 3px 0 0 var(--accent); }
.steps5 { display: flex; gap: 3px; margin-top: 8px; } .steps5 span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); } .steps5 span.on { background: var(--accent); }
.stepper { padding: 18px 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; border-bottom: 1px solid var(--line2); }
.stepper .b { height: 6px; border-radius: 3px; background: var(--line); } .stepper .on .b { background: var(--accent); }
.stepper .n { font-size: 12.5px; margin-top: 8px; font-weight: 600; color: #7d8696; } .stepper .on .n { color: var(--text3); } .stepper .cur .n { font-weight: 800; color: #fff; }
.bubble { background: var(--soft); border-radius: 4px 14px 14px 14px; padding: 10px 14px; font-size: 14px; line-height: 1.5; flex: 1; min-width: 0; word-wrap: break-word; }
.bubble.sys { background: transparent; border: 1px dashed var(--btnline); color: var(--muted); font-size: 13px; padding: 6px 12px; }
.rate { width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font: 700 12.5px var(--font); border: 1px solid var(--btnline); background: var(--panel); color: #7d8696; }
.rate.on { border-color: var(--accent); background: var(--accent); color: var(--panel); }
.vbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); }
.answer { font-size: 15px; line-height: 1.6; color: #d3d9e2; margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.aside-dark { background: var(--field); border-left: 1px solid var(--line2); }

/* ------------------------------------------------------------------ Aufgaben */
.kanban { min-width: 980px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kcol { background: var(--field); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.kcol.drop { outline: 2px dashed var(--accent); outline-offset: -4px; }
.kcol .kh { display: flex; align-items: center; gap: 8px; padding: 4px 6px; color: var(--muted); }
.card { background: var(--panel); border-radius: 16px; border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.card:hover { border-color: var(--btnline); }
.card.dragging { opacity: .4; }
.card .ttl { font-size: 14.5px; line-height: 1.35; color: var(--text); font-weight: 700; }
.mv { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--btnline); cursor: pointer; font-weight: 800; color: var(--text); background: #3a4050; flex: none; }
.mv:hover { background: var(--accent); }
.proj { text-align: left; padding: 18px 20px; font: inherit; color: inherit; cursor: pointer; }
.proj.on { border: 2px solid var(--pc); padding: 17px 19px; }

/* ------------------------------------------------------------------ Besprechungen */
.mhead { background: var(--raised); color: #fff; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-radius: 20px 20px 0 0; }
.cal { width: 64px; text-align: center; background: var(--accent); border-radius: 14px; padding: 8px 0; flex: none; }
.cal b { display: block; font-size: 26px; font-weight: 800; line-height: 1; } .cal span { font-size: 12px; font-weight: 700; }
.pollopt { position: relative; display: block; width: 100%; text-align: left; min-height: 46px; margin-bottom: 8px; padding: 0 14px; border-radius: 12px; border: 1px solid #3a3f4a; background: #1d2027; color: #fff; font: 600 14px var(--font); cursor: pointer; overflow: hidden; }
.pollopt.mine { border-color: var(--accent); }
.pollopt .fill { position: absolute; left: 0; top: 0; bottom: 0; background: #2a2e37; border-radius: 12px; }
.pollopt.mine .fill { background: var(--accent); }
.pollopt .lab { position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 46px; }
.pollopt:disabled { cursor: default; }

/* ------------------------------------------------------------------ Discord-Vorschau */
.dc-wrap { background: #313338; border-radius: 16px; padding: 18px; font-family: var(--font); }
.dc-msg { display: flex; gap: 12px; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; background: #5865f2; flex: none; display: grid; place-items: center; overflow: hidden; }
.dc-av img { width: 100%; height: 100%; object-fit: cover; }
.dc-name { color: #f2f3f5; font-size: 15px; font-weight: 700; }
.dc-app { background: #5865f2; color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.dc-time { color: #a3a6aa; font-size: 12px; margin-left: 6px; }
.dc-embed { margin-top: 6px; background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 6px; padding: 12px 14px; max-width: 520px; }
.dc-et { color: #f2f3f5; font-weight: 700; font-size: 15px; }
.dc-ed { color: #dbdee1; font-size: 14px; line-height: 1.55; margin-top: 6px; white-space: pre-line; word-wrap: break-word; }
.dc-foot { color: #b5bac1; font-size: 12px; margin-top: 10px; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 4px; font-size: 14px; font-weight: 600; color: #fff; background: #4e5058; }
.dc-btn.s1 { background: #5865f2; } .dc-btn.s2 { background: #4e5058; } .dc-btn.s3 { background: #248046; } .dc-btn.s4 { background: #da373c; } .dc-btn.link { background: #4e5058; }
.dc-mention { background: #3c4270; color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dc-label { font-size: 13px; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: .05em; }
.dc-select { margin-top: 8px; background: #1e1f22; border-radius: 6px; overflow: hidden; }
.dc-select .h { padding: 10px 12px; color: #b5bac1; font-size: 14px; display: flex; justify-content: space-between; }
.dc-select .o { padding: 9px 12px; border-top: 1px solid #2b2d31; color: #dbdee1; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dc-voice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #2b2d31; width: fit-content; max-width: 100%; color: #dbdee1; font-size: 14.5px; font-weight: 600; }
.dc-code { background: #1e1f22; color: #b5bac1; border-radius: 4px; padding: 6px 8px; margin-top: 8px; font-size: 13px; font-family: var(--mono); }
.dc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.dc-fields .fk { color: #b5bac1; font-size: 12px; font-weight: 700; } .dc-fields .fv { color: #dbdee1; font-size: 14.5px; }
.dc-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.dc-bars .bt { height: 8px; border-radius: 4px; background: #1e1f22; margin-top: 4px; } .dc-bars .bt div { height: 8px; border-radius: 4px; background: var(--accent); }

/* ------------------------------------------------------------------ Bot */
.botcard { padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.boticon { width: 64px; height: 64px; border-radius: 18px; background: #5865f2; display: grid; place-items: center; position: relative; flex: none; }
.boticon img { width: 100%; height: 100%; border-radius: 18px; object-fit: cover; }
.boticon .st { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--panel); background: #3ccf8e; }
.boticon .st.off { background: #6b7280; } .boticon .st.starting { background: #f5a524; } .boticon .st.error { background: #ef4444; }
.kv .k { font-size: 12.5px; color: var(--muted2); font-weight: 600; } .kv .v { font-size: 18px; margin-top: 4px; font-family: var(--mono); }
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.mods .box { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mods p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); min-height: 42px; }
.var { height: 26px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--btnline); background: var(--soft); color: var(--text3); font: 12px var(--mono); cursor: pointer; }
.logrow { display: flex; align-items: flex-start; gap: 14px; padding: 13px 22px; border-top: 1px solid var(--line2); }
.logrow:first-child { border-top: 0; }
.logrow .tm { font-size: 12.5px; color: var(--muted2); width: 92px; flex: none; font-family: var(--mono); padding-top: 3px; }
.logrow .tx { font-size: 14px; color: #dfe3ea; min-width: 0; word-wrap: break-word; }

/* ------------------------------------------------------------------ Wiki */
.wiki-side { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.wcat { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; border: 0; background: transparent; color: var(--text); cursor: pointer; padding: 0 8px; border-radius: 10px; font: 700 14px var(--font); }
.wcat:hover { background: #1a1d25; }
.wcat .arr { display: inline-block; width: 12px; color: var(--muted2); transition: transform .15s; } .wcat.open .arr { transform: rotate(90deg); }
.wpage { display: block; width: 100%; text-align: left; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 9px; cursor: pointer; font: 500 14px var(--font); color: var(--muted); background: transparent; text-decoration: none; }
.wpage:hover { background: #1a1d25; color: var(--text); } .wpage.on { background: var(--raised); color: #fff; }
.vis { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.vis.public { background: var(--okbg); color: var(--ok); } .vis.team { background: #1b2030; color: var(--info); } .vis.lead { background: #3a1d20; color: #ff8f93; }
.art { font-size: 15.5px; line-height: 1.7; color: var(--text2); word-wrap: break-word; }
.art h2 { font-size: 21px; margin: 30px 0 8px; color: var(--text); scroll-margin-top: 80px; } .art h3 { font-size: 17px; margin: 22px 0 6px; color: var(--text); scroll-margin-top: 80px; }
.art p { margin: 0 0 12px; } .art ul, .art ol { margin: 0 0 12px; padding-left: 24px; } .art li { margin-bottom: 6px; }
.art table { margin: 6px 0 14px; } .art th, .art td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.art th { color: var(--muted2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.art .tbl { overflow-x: auto; }
.art img { max-width: 100%; border-radius: 12px; }
.art code { background: var(--field); border-radius: 6px; padding: 2px 6px; font: 13.5px var(--mono); }
.art pre { background: var(--field); border-radius: 12px; padding: 12px 14px; overflow-x: auto; } .art pre code { background: none; padding: 0; }
.art blockquote { margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--btnline); color: var(--muted); }
.art hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.call { border-radius: 14px; padding: 14px 16px; margin: 14px 0; font-size: 14.5px; }
.call.info { background: #1b2030; border: 1px solid #2b3a66; } .call.info b:first-child { color: var(--info); }
.call.warn { background: #2a2412; border: 1px solid #5a4718; } .call.warn b:first-child { color: #f5c46b; }
.call.tip { background: #10261b; border: 1px solid #1e4a33; } .call.tip b:first-child { color: var(--ok); }
.wl-missing { color: var(--bad); text-decoration: underline dotted; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.toc a:hover { background: #20242d; color: var(--text); }
.tool { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--text3); cursor: pointer; font: 700 14px var(--font); }
.tool:hover { background: var(--line); }
.diff { font: 13px/1.8 var(--mono); background: var(--field); border-radius: 12px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.diff .p { background: #143325; color: #a6eac8; } .diff .m { background: #3a1d20; color: #ffb3b6; } .diff .c { color: var(--muted2); } .diff .g { color: #6b7484; text-align: center; }

/* ------------------------------------------------------------------ Einstellungen */
.setnav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; }
.setnav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none; font: 600 14.5px var(--font); color: #b3bbc8; }
.setnav a:hover { background: var(--line); color: var(--text); }
.setnav a.on { background: var(--raised); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.setnav a small { margin-left: auto; font-size: 12px; color: var(--muted2); }
.danger-box { border-color: #4a2427; } .danger-box .bh h2 { color: #ff8f93; }

/* ------------------------------------------------------------------ Dialoge, Meldungen, Suche */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 6, 9, .72); z-index: 100; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 540px; background: var(--panel); border: 1px solid var(--btnline); border-radius: 20px; display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 20px 22px 6px; }
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 800; flex: 1; }
.modal .x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.modal .x:hover { background: var(--line); color: #fff; }
.modal-body { padding: 12px 22px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.modal-text { margin: 0; line-height: 1.55; color: var(--text3); }
.modal-err { margin: 0 22px; padding: 10px 14px; border-radius: 12px; background: var(--badbg); color: var(--bad); font-size: 14px; font-weight: 600; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 14px 22px 20px; flex-wrap: wrap; }
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--raised); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; border-left: 4px solid var(--ok); transition: opacity .3s, transform .3s; }
.toast.err { border-left-color: #ef4444; background: #3a1f22; }
.toast.out { opacity: 0; transform: translateY(8px); }
.search-pop { position: fixed; inset: 0; background: rgba(5, 6, 9, .72); z-index: 90; display: flex; justify-content: center; padding: 80px 16px 16px; }
.search-box { width: 100%; max-width: 620px; background: var(--panel); border: 1px solid var(--btnline); border-radius: 20px; overflow: hidden; align-self: flex-start; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.search-box input { border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: 17px var(--font); padding: 18px 20px; outline: none; }
.search-box .res { overflow-y: auto; }
.search-box a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: inherit; text-decoration: none; border-top: 1px solid var(--line2); }
.search-box a:hover, .search-box a.on { background: var(--soft); }
.loading { display: grid; place-items: center; min-height: 240px; color: var(--muted2); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-page { max-width: 560px; margin: 60px auto; text-align: center; padding: 0 16px; }
.err-page h1 { font-size: 26px; margin: 0 0 10px; } .err-page p { color: var(--muted); line-height: 1.55; }

@media (max-width: 700px) {
  .ph h1 { font-size: 27px; }
  .stepper { padding: 14px 16px; }
  .stepper .n { font-size: 11px; }
  .logrow .tm { width: 70px; }
  .tabs { flex-basis: 100%; order: 3; overflow-x: auto; flex-wrap: nowrap; }
}
@media print {
  .topnav, .wiki-side, .no-print, #toasts { display: none !important; }
  body, html { background: #fff; color: #000; }
  .box { border: 0; background: #fff; }
  .art, .art h2, .art h3 { color: #000; }
  .page { padding: 0; }
}
