
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("/assets/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("/assets/chakra-petch-700.woff2") format("woff2"); }
:root {
  --bg: #0c0a14; --bg-soft: #110e1c; --surface: #171327; --surface-2: #1b1630; --field: #0f0c19;
  --line: #2b2542; --line-soft: #221c38; --line-strong: #40376a;
  --text: #edeaf6; --text-2: #cfc9e2; --muted: #aaa4c0; --faint: #8f89a8;
  --pink: #dd638a; --red: #ee6e6b; --orange: #f5a056; --on-grad: #1b0d16;
  --grad: linear-gradient(90deg, var(--pink), var(--red) 50%, var(--orange));
  --ok: #86e3b6; --ok-bg: rgba(95,211,154,.13); --warn: #f7bb85; --warn-bg: rgba(245,160,86,.15);
  --err: #ffa3a3; --err-bg: rgba(255,120,120,.14);
  --display: "Chakra Petch", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; flex: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: #ffc08a; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0; }
code { background: var(--field); padding: 1px 6px; border-radius: 0; font-size: 13.5px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; }
.sub { color: var(--muted); margin-top: 6px; max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Gerüst ---------- */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 256px; max-width: 100%; background: var(--bg-soft); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 900px) { .side { max-width: 280px; position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { width: 46px; height: auto; }
.brand b { font-family: var(--display); letter-spacing: .12em; font-size: 18px; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }

.switch { position: relative; }
.switch summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0; cursor: pointer; }
.switch summary::-webkit-details-marker { display: none; }
.switch summary:hover { border-color: var(--red); }
.switch summary .t { flex: 1; min-width: 0; }
.switch summary b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch summary small { color: var(--muted); font-size: 12px; }
.switch summary > svg { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.switch[open] summary svg { transform: rotate(180deg); }
.mini svg { width: 15px; height: 15px; }
.srvlist { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0; padding: 6px; max-height: 60vh; overflow: auto; }
.srv { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px; line-height: 1.3; border-radius: 0; color: var(--text-2); font-size: 14px; }
.srv:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.srv.on { background: rgba(238,110,107,.14); color: #fff; font-weight: 600; }
.sicon { width: 34px; height: 34px; border-radius: 0; background: linear-gradient(135deg, var(--pink), var(--orange)); color: var(--on-grad); display: grid; place-items: center; font: 700 13px var(--display); flex: none; }
.mini { width: 26px; height: 26px; border-radius: 0; background: var(--line); color: var(--orange); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }

.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navlabel { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 10px; border-radius: 0; color: var(--text-2); font-size: 14.5px; }
.nav:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.nav.on { background: rgba(238,110,107,.14); color: #fff; font-weight: 600; }
.nav.on svg { color: var(--orange); }
.nav svg { width: 19px; height: 19px; flex: none; }
.navcount { margin-left: auto; min-width: 22px; padding: 1px 7px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); }
.step > b { font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step .btn { align-self: flex-start; margin-top: auto; }
.step .hint { margin-top: auto; }
.stephead { display: flex; gap: 6px; flex-wrap: wrap; }
.badge.err { background: rgba(242,63,67,.15); color: #ff8a8c; }
.user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.user .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.av { width: 34px; height: 34px; border-radius: 0; background: var(--line); display: grid; place-items: center; font-weight: 700; color: var(--orange); flex: none; font-size: 13px; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.big { width: 56px; height: 56px; font-size: 20px; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 32px; border-bottom: 1px solid var(--line); }
.crumb { color: var(--muted); font-size: 14px; flex: 1 1 220px; }
.crumb b { color: var(--text); font-weight: 600; }
.searchwrap { position: relative; flex: 0 1 460px; min-width: 240px; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0; color: var(--muted); }
.search:focus-within { border-color: var(--orange); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); font: inherit; font-size: 14.5px; }
.search input::placeholder { color: var(--faint); }
kbd { font: 12px ui-monospace, Consolas, monospace; border: 1px solid var(--line-strong); border-radius: 0; padding: 1px 6px; color: var(--muted); }
.results { position: absolute; left: 0; right: 0; top: 50px; z-index: 5; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 0; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.results[hidden] { display: none; }
.res { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 0; color: var(--text); }
.res:hover, .res.sel { background: rgba(238,110,107,.14); text-decoration: none; color: #fff; }
.res small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 0; background: #5fd39a; }

.content { padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 24px; max-width: 1200px; width: 100%; }
@media (max-width: 600px) { .top, .content { padding-left: 16px; padding-right: 16px; } }

/* ---------- Bausteine ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cardhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.cardhead p { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 680px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.tasks, .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.task { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; color: var(--text); min-height: 140px; }
.task:hover { border-color: var(--red); text-decoration: none; color: var(--text); background: var(--surface-2); }
.task b { font-family: var(--display); font-size: 17px; }
.task span { color: var(--muted); font-size: 14px; }
.ticon { width: 42px; height: 42px; border-radius: 0; background: rgba(238,110,107,.14); color: var(--orange); display: grid; place-items: center; }
.ticon svg { width: 22px; height: 22px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; color: var(--text); }
.tile:hover { border-color: var(--red); text-decoration: none; color: var(--text); }
.tile b { font-weight: 600; }
.srvtile { flex-direction: row; align-items: center; gap: 12px; }
.srvtile .tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sicon, .mini { overflow: hidden; }
.sicon.pic, .mini.pic { background: var(--line); }
.sicon img, .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sicon.all, .mini.all { background: var(--bg); border: 1px solid var(--line); }
.sicon.all img, .mini.all img { object-fit: contain; padding: 3px; }
.tile span { color: var(--muted); font-size: 13.5px; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.row:first-of-type { border-top: 0; padding-top: 0; }
.row .l { flex: 1 1 200px; min-width: 0; }
.row .l b { display: block; font-weight: 600; }
.row .l span { color: var(--muted); font-size: 13.5px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px; border-radius: 0; background: var(--line-soft); color: var(--text-2); font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn, .badge.glob { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.src { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.mention { background: rgba(221,99,138,.16); color: #f2a7bf; padding: 0 5px; border-radius: 0; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 0; font-size: 14px; }
.notice.info { background: var(--warn-bg); color: #f3cfa9; }
.result { padding: 14px 16px; border-radius: 0; background: var(--ok-bg); color: #d7f5e6; border: 1px solid rgba(95,211,154,.3); }
.result.error { background: var(--err-bg); color: #ffd6d6; border-color: rgba(255,120,120,.35); }
.result ul { margin: 8px 0 0; padding-left: 18px; }

/* ---------- Formulare ---------- */
form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .lab { font-weight: 600; font-size: 14px; }
label.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
input[type=text], input[type=number], input[type=url], input[type=search], textarea, select {
  width: 100%; min-height: 44px; background: var(--field); border: 1px solid var(--line); border-radius: 0; color: var(--text); padding: 9px 12px; font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
select[multiple] { min-height: 160px; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline > input, .inline > select { flex: 1 1 220px; width: auto; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 0; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 14.5px var(--display); letter-spacing: .02em; cursor: pointer; white-space: nowrap; }
.btn:hover, button:hover { border-color: var(--red); text-decoration: none; color: var(--text); }
.btn.primary, button.primary { background: var(--grad); color: var(--on-grad); border-color: transparent; }
.btn.primary:hover, button.primary:hover { filter: brightness(1.08); color: var(--on-grad); }
button.danger, .btn.danger { border-color: #7a3443; color: var(--err); }
button.danger:hover { background: rgba(255,120,120,.08); }
button.link { border: 0; padding: 0 8px; min-height: 36px; color: var(--err); font: inherit; font-size: 14px; }
button.small, .btn.small { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--field); border: 1px solid var(--line); border-radius: 0; }
.seg label { flex: 1 1 160px; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 0; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; padding: 0 10px; }
.seg input:checked + span { background: #2b2342; color: #fff; box-shadow: inset 0 0 0 1px var(--red); }
.seg input:focus-visible + span { outline: 2px solid var(--orange); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches label { position: relative; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 36px; height: 36px; border-radius: 0; border: 2px solid transparent; cursor: pointer; }
.swatches input:checked + span { border-color: #fff; box-shadow: inset 0 0 0 2px var(--field); }
.swatches input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.postform:has(input[name=art][value=text]:checked) .embed-only { display: none; }
.toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.track { width: 48px; height: 28px; border-radius: 0; background: var(--line); position: relative; flex: none; transition: background .15s; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 0; background: #fff; transition: left .15s; }
.toggle input:checked + .track { background: var(--red); }
.toggle input:checked + .track::after { left: 23px; }
.toggle input:focus-visible + .track { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Tabellen und Listen ---------- */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .06em; }
td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 14.5px; }
td small { display: block; color: var(--muted); font-size: 12.5px; }
.act { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.act:first-of-type { border-top: 0; }
.act .txt { flex: 1 1 300px; min-width: 0; overflow-wrap: anywhere; }
.act .meta { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; }
.mem { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 0; border: 1px solid transparent; color: var(--text); }
.mem:hover { background: rgba(255,255,255,.05); text-decoration: none; color: var(--text); }
.mem.on { background: rgba(238,110,107,.12); border-color: #5a3550; }
.mem small { display: block; color: var(--muted); font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 4px 0 12px; border-radius: 0; background: var(--line-soft); font-size: 13.5px; }
.chip button { min-height: 26px; width: 26px; padding: 0; border: 0; border-radius: 0; color: var(--muted); font: 16px/1 sans-serif; }
.chip button:hover { background: rgba(255,255,255,.08); color: #fff; }
.rdot { width: 9px; height: 9px; border-radius: 0; background: var(--faint); }
.sect { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chiplink { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 0; border: 1px solid var(--line-strong); color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.chiplink:hover { text-decoration: none; color: #fff; border-color: var(--red); }
.chiplink.on { background: var(--red); border-color: var(--red); color: var(--on-grad); }

/* ---------- Rechte-Tabelle ---------- */
.matrix { min-width: 860px; }
.matrix th { text-align: center; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text-2); vertical-align: bottom; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix td { text-align: center; padding: 10px 8px; }
.cell { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 0; border: 1.5px solid var(--line-strong); color: transparent; }
.cell:hover { border-color: var(--red); color: var(--faint); }
.cell.on { background: var(--red); border-color: var(--red); color: var(--on-grad); }
.cell.lock { background: var(--line); border-color: var(--line); color: var(--muted); cursor: default; display: inline-grid; place-items: center; }
.who { display: flex; align-items: center; gap: 10px; }
.who small { display: block; color: var(--muted); font-size: 12.5px; }
.groupcard { background: #120f1f; border: 1px solid var(--line); border-radius: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.groupcard ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.groupcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 6px 18px; }

/* ---------- Discord-Vorschau ---------- */
.dc { background: #313338; border-radius: 0; padding: 18px; color: #dbdee1; font-family: "gg sans", "Noto Sans", ui-sans-serif, system-ui, sans-serif; }
.dcmsg { display: flex; gap: 14px; }
.dcav { width: 42px; height: 42px; border-radius: 0; overflow: hidden; flex: none; background: linear-gradient(135deg, var(--pink), var(--orange)); }
.dcav img { width: 100%; height: 100%; object-fit: cover; }
.bot { background: #5865f2; color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 0; margin-left: 6px; vertical-align: 2px; }
.embed { margin-top: 6px; background: #2b2d31; border-radius: 0; padding: 12px 16px 14px; max-width: 440px; border-left: 4px solid var(--red); }
.embed b { display: block; color: #fff; margin-bottom: 4px; }
.embed img { display: block; max-width: 100%; border-radius: 0; margin-top: 12px; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.msgline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.msgline:first-of-type { border-top: 0; }
.msgline .txt { flex: 1 1 320px; min-width: 0; }
.msgline .txt span { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Anmeldung ---------- */
.loginwrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(52rem 30rem at 10% -10%, rgba(221,99,138,.18), transparent 62%), radial-gradient(56rem 32rem at 100% 10%, rgba(245,160,86,.12), transparent 60%), var(--bg); }
.login { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.login img { width: 110px; height: auto; }
.login h1 { font-size: 34px; letter-spacing: .12em; }
.login .card { width: 100%; }
.login .btn { width: 100%; min-height: 52px; font-size: 16px; }
