/* Sweatlezz Roleplay – gemeinsames Theme für Webseite und Panel (Werte aus THEME.md des Server-Repositorys) */
:root {
  --accent: #e0652d; --accent-hover: #f07a45; --accent-dark: #8a2f10; --accent-glow: rgba(224, 101, 45, 0.35);
  --bg: #0f0f12; --bg-deep: #0a0a0d; --surface: #16161b; --raised: #1e1e25; --raised-2: #26262f;
  --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f4; --muted: rgba(255, 255, 255, 0.58); --faint: rgba(255, 255, 255, 0.38);
  --ok: #3fb950; --warn: #e3b341; --bad: #e5484d; --info: #4aa3ff;
  --r-card: 12px; --r-field: 8px;
  --f-head: "Montserrat", "Segoe UI", system-ui, sans-serif; --f-body: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --sw-motion: 1;
  --sw-dur-fast: calc(120ms * var(--sw-motion)); --sw-dur: calc(220ms * var(--sw-motion)); --sw-dur-slow: calc(300ms * var(--sw-motion));
  --sw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sw-tr-fast: color var(--sw-dur-fast) linear, background-color var(--sw-dur-fast) linear, border-color var(--sw-dur-fast) linear, box-shadow var(--sw-dur-fast) linear, opacity var(--sw-dur-fast) linear, transform var(--sw-dur-fast) var(--sw-ease);
}
@media (prefers-reduced-motion: reduce) { :root { --sw-motion: 0; } html { scroll-behavior: auto !important; } }
@keyframes sw-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sw-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; }
h3 { font-weight: 700; font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* Buttons: abgeschrägte Ecke wie im Logo */
.btn, button.btn {
  --cut: 10px; display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; cursor: pointer;
  font: 700 .9rem/1 var(--f-head); letter-spacing: .04em; text-transform: uppercase; padding: 14px 22px; color: #fff;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); transition: var(--sw-tr-fast); white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: linear-gradient(180deg, var(--accent-hover), var(--accent)); box-shadow: 0 0 0 0 var(--accent-glow); }
.btn--primary:hover { background: linear-gradient(180deg, #ff8a55, var(--accent-hover)); transform: translateY(-1px); }
.btn--ghost { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn--ghost:hover { background: var(--raised-2); }
.btn--danger { background: var(--bad); } .btn--ok { background: var(--ok); color: #05150a; }
.btn--sm { padding: 10px 16px; font-size: .78rem; --cut: 7px; }
.btn:active { transform: scale(.97); } .btn[disabled] { opacity: .5; pointer-events: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; position: relative; }
.card::before { content: ""; position: absolute; left: 20px; top: -1px; width: 52px; height: 2px; background: var(--accent); border-radius: 2px; }
.card--glow { background: radial-gradient(120% 140% at 0% 0%, rgba(224, 101, 45, .14), transparent 55%), var(--surface); border-color: rgba(224, 101, 45, .28); }
.badge { display: inline-block; font: 700 .68rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: #fff; vertical-align: middle; }
.badge--outline { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border-strong); }
.badge--ok { background: rgba(63, 185, 80, .16); color: var(--ok); } .badge--warn { background: rgba(227, 179, 65, .16); color: var(--warn); }
.badge--bad { background: rgba(229, 72, 77, .16); color: var(--bad); } .badge--info { background: rgba(74, 163, 255, .16); color: var(--info); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 8px; box-shadow: 0 0 10px var(--bad); animation: sw-pulse 1.6s infinite; vertical-align: middle; }
.dot--ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: none; } .dot--off { background: var(--faint); box-shadow: none; animation: none; }

/* Formulare */
label.field { display: block; margin-bottom: 18px; }
label.field > span, .lbl { display: block; font: 600 .85rem var(--f-body); color: var(--muted); margin-bottom: 6px; }
label.field small { display: block; color: var(--faint); margin-top: 4px; }
input, select, textarea {
  width: 100%; background: var(--raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-field);
  padding: 11px 13px; font: inherit; transition: var(--sw-tr-fast);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.err { color: var(--bad); font-size: .85rem; margin-top: 5px; }
.notice { background: rgba(227, 179, 65, .1); border: 1px solid rgba(227, 179, 65, .35); color: #f3dfa0; border-radius: var(--r-field); padding: 12px 16px; margin: 0 0 18px; font-size: .92rem; }
.notice--ok { background: rgba(63, 185, 80, .1); border-color: rgba(63, 185, 80, .35); color: #a6e3b0; }
.notice--bad { background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .35); color: #f4a3a6; }
.notice--info { background: rgba(74, 163, 255, .1); border-color: rgba(74, 163, 255, .35); color: #b4d6ff; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); display: inline-grid; place-items: center; font: 800 1rem var(--f-head); color: #fff; object-fit: cover; flex: none; }
.avatar--xl { width: 96px; height: 96px; font-size: 1.8rem; } .avatar--sm { width: 32px; height: 32px; font-size: .75rem; }
.codebox { display: block; background: var(--bg-deep); border: 1px dashed var(--border-strong); border-radius: var(--r-field); padding: 12px 14px; color: #ffb48f; margin: 10px 0; user-select: all; overflow-wrap: anywhere; }
