/* =====================================================================
   District Gaming – Design (Schwarz/Blau). Farben kommen live aus den
   Einstellungen (--accent, --accent-2, --bg, --panel, --r).
   ===================================================================== */
:root {
    --accent: #3fb6ff; --accent-rgb: 63, 182, 255; --accent-2: #1f6fd1;
    --bg: #05070c; --panel: #0b111c; --r: 14px;
    --panel-2: color-mix(in srgb, var(--panel) 80%, #fff 4%);
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .13);
    --line-accent: rgba(var(--accent-rgb), .28);
    --text: #e9eef7; --muted: #8b95aa; --dim: #5d677c;
    --ok: #34d399; --warn: #fbbf24; --err: #fb7185;
    --head: 'Chakra Petch', 'Inter', sans-serif;
    --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
    --glow: 0 0 0 1px rgba(var(--accent-rgb), .35), 0 8px 30px -8px rgba(var(--accent-rgb), .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
    font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(var(--accent-rgb), .13), transparent 60%),
        radial-gradient(700px 400px at -10% 30%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 60%),
        linear-gradient(var(--bg), var(--bg)); }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 5vw, 54px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.ico { width: 18px; height: 18px; flex: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; }
.section { padding: 64px 0; }
.section-sm { padding: 36px 0; }
.hide { display: none !important; }

/* ---------- Kopfzeile ---------- */
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font-size: 13px; font-weight: 500;
    background: linear-gradient(90deg, var(--accent-2), var(--accent)); color: #fff; text-align: center; }
.announce .ico { width: 15px; height: 15px; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(5, 7, 12, .72); backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--head); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand img { height: 38px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; font-size: 15px; letter-spacing: 0; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); box-shadow: var(--glow); }
.mainnav { display: flex; gap: 2px; flex: 1; }
.mainnav a { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 14px; position: relative; }
.mainnav a .ico { width: 16px; height: 16px; opacity: .7; }
.mainnav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.mainnav a.active { color: #fff; }
.mainnav a.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: -14px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.mainnav a.active .ico { color: var(--accent); opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger { display: none; background: none; border: 1px solid var(--line-2); color: #fff; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; place-items: center; }

.usermenu { position: relative; }
.usermenu-btn { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: #fff;
    padding: 4px 14px 4px 4px; border-radius: 999px; cursor: pointer; font: 600 14px var(--body); }
.usermenu-btn:hover { border-color: var(--line-accent); }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
    padding: 6px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease); }
[data-dropdown].open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; color: var(--text);
    font: 500 14px var(--body); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: rgba(var(--accent-rgb), .1); color: #fff; }
.dropdown .ico { width: 16px; height: 16px; color: var(--muted); }
.dropdown form { margin: 0; }

/* ---------- Avatare & Tags ---------- */
.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line-2); flex: none; }
.av-sm { width: 32px; height: 32px; }
.av-xs { width: 24px; height: 24px; }
.av-lg { width: 96px; height: 96px; }
.av-xl { width: 128px; height: 128px; border-width: 2px; border-color: var(--line-accent); box-shadow: var(--glow); }
.role-tag { --rc: #8d96ab; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 6px; font: 600 11px/1.6 var(--body);
    text-transform: uppercase; letter-spacing: .06em; color: var(--rc); background: color-mix(in srgb, var(--rc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent); }
.uname { font-weight: 600; color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    background: rgba(var(--accent-rgb), .12); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .25); }
.badge .ico { width: 12px; height: 12px; }
.badge-warn { color: var(--warn); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .25); }
.badge-err { color: var(--err); background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .25); }
.badge-ok { color: var(--ok); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .25); }

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
    font: 600 14px var(--body); letter-spacing: .02em; cursor: pointer; white-space: nowrap; transition: .18s var(--ease); color: #fff; text-decoration: none; }
.btn .ico { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 26px -10px rgba(var(--accent-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(var(--accent-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-accent); color: #fff; background: rgba(var(--accent-rgb), .08); }
.btn-discord { background: #5865f2; box-shadow: 0 8px 26px -10px rgba(88, 101, 242, .9); }
.btn-discord:hover { background: #4752c4; color: #fff; }
.btn-danger { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .35); color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; gap: 6px; }
.btn-xs .ico { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: #fff; border-color: var(--line-2); background: rgba(255, 255, 255, .04); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: #c9d2e3; }
.field .help { font-size: 12.5px; color: var(--dim); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=url],
.field input[type=datetime-local], .field select, .field textarea, textarea.input {
    width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); padding: 11px 14px;
    font: 14px var(--body); transition: border-color .15s, box-shadow .15s; outline: none; }
.field textarea, textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--panel); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); user-select: none; }
.check input { appearance: none; width: 20px; height: 20px; flex: none; margin: 1px 0 0; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(0, 0, 0, .35); cursor: pointer; display: grid; place-items: center; transition: .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 5px; height: 10px; border: solid #04121f; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 44px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: .2s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #c9d2e3; transition: .2s var(--ease); }
.switch input:checked { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), .5); }
.switch input:checked::after { left: 22px; background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.alert .ico { margin-top: 2px; }
.alert-error { color: #ffd0d8; background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .3); }
.alert-info { color: #d4ecff; background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .25); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 84px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow);
    font-size: 14px; animation: toastIn .35s var(--ease); }
.toast .ico { margin-top: 1px; }
.toast-success .ico { color: var(--ok); } .toast-error .ico { color: var(--err); } .toast-info .ico { color: var(--accent); }
.toast-success { border-left: 3px solid var(--ok); } .toast-error { border-left: 3px solid var(--err); } .toast-info { border-left: 3px solid var(--accent); }
.toast.out { opacity: 0; transform: translateX(20px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

/* ---------- Karten / Panels ---------- */
.card { background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, #fff 3%), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.card-head h2 .ico, .card-head h3 .ico { color: var(--accent); }
.card-hover { transition: .22s var(--ease); }
.card-hover:hover { border-color: var(--line-accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; text-transform: uppercase; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .ico { width: 34px; height: 34px; color: var(--dim); margin: 0 auto 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 15%, transparent 75%), linear-gradient(0deg, var(--bg), transparent 45%); }
.hero-grid { position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(var(--accent-rgb), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb), .07) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); }
.hero-glow { position: absolute; width: 620px; height: 620px; right: -120px; top: -160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), .28), transparent 65%); filter: blur(20px); animation: pulse 8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }
.hero-in { position: relative; padding: 110px 0 120px; max-width: 760px; }
.hero h1 { font-size: clamp(38px, 7vw, 78px); text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 22px; }
.hero h1 .hl { color: transparent; background: linear-gradient(100deg, #fff 10%, var(--accent) 60%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
.hero-text { font-size: 18px; color: #b8c2d6; max-width: 600px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }

/* ---------- Statistik-Leiste ---------- */
.statbar { margin-top: -46px; position: relative; z-index: 2; }
.statbar-in { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(11, 17, 28, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: 22px 24px; display: flex; align-items: center; gap: 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .1); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .2); flex: none; }
.stat-ico .ico { width: 22px; height: 22px; }
.stat-val { font: 700 26px/1 var(--head); color: #fff; }
.stat-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 5px; }

/* ---------- Server-Karten ---------- */
.server { display: flex; flex-direction: column; overflow: hidden; }
.server-img { height: 150px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .25), color-mix(in srgb, var(--accent-2) 20%, transparent)), var(--panel-2); background-size: cover; background-position: center; position: relative; }
.server-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel), transparent 70%); }
.server-img .ico-big { position: absolute; right: 18px; top: 16px; width: 54px; height: 54px; color: rgba(255, 255, 255, .12); }
.server-body { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; position: relative; z-index: 1; margin-top: -30px; }
.server-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.server-game { font: 600 11px var(--head); text-transform: uppercase; letter-spacing: .18em; color: var(--accent); }
.server h3 { font-size: 22px; margin: 0; text-transform: uppercase; }
.server p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.server-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.status.online { color: var(--ok); } .status.online::before { background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; }
.status.offline { color: var(--err); } .status.offline::before { background: var(--err); }
.status.maintenance, .status.soon { color: var(--warn); } .status.maintenance::before, .status.soon::before { background: var(--warn); }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.players { font: 700 18px var(--head); color: #fff; }
.players small { color: var(--muted); font: 500 12px var(--body); margin-left: 4px; }
.pbar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 6px; width: 120px; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); width: 0; transition: width .6s var(--ease); }
.copy { cursor: pointer; font: 500 12px ui-monospace, monospace; color: var(--muted); background: rgba(0, 0, 0, .35); border: 1px dashed var(--line-2); border-radius: 7px; padding: 4px 9px; }
.copy:hover { color: #fff; border-color: var(--accent); }

/* ---------- Features ---------- */
.feature { padding: 26px; }
.feature-ico { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; color: var(--accent);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .04)); border: 1px solid rgba(var(--accent-rgb), .25);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.feature-ico .ico { width: 24px; height: 24px; }
.feature h3 { text-transform: uppercase; letter-spacing: .04em; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); }
.news-card:hover { color: var(--text); }
.news-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(var(--accent-rgb), .3), color-mix(in srgb, var(--accent-2) 25%, var(--bg))); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.news-cover .ico { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; color: rgba(255, 255, 255, .25); }
.news-card:hover .news-cover { filter: brightness(1.12); }
.news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.news-card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.news-card p { color: var(--muted); font-size: 14px; margin: 0; }
.news-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 13px; }
.news-more .ico { width: 15px; height: 15px; transition: transform .2s; }
.news-card:hover .news-more .ico { transform: translateX(4px); }
.article-cover { aspect-ratio: 21 / 9; border-radius: var(--r); background-size: cover; background-position: center; margin-bottom: 30px; border: 1px solid var(--line); }
.page-head { padding: 54px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 36px; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent 60%); }
.page-head h1 { text-transform: uppercase; margin-bottom: 8px; }
.page-head p { color: var(--muted); margin: 0; font-size: 16px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: #fff; }
.crumbs .ico { width: 13px; height: 13px; color: var(--dim); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; font-weight: 500; }
.chip:hover { color: #fff; border-color: var(--line-accent); }
.chip.active { background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .4); color: #fff; }

/* ---------- Fließtext (Markdown) ---------- */
.prose { font-size: 15.5px; line-height: 1.75; color: #d3dae7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; } .prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3 { color: #fff; margin: 1.6em 0 .6em; }
.prose h2 { font-size: 24px; } .prose h3 { font-size: 19px; }
.prose a { text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .4); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; } .prose li { margin: .3em 0; } .prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: rgba(var(--accent-rgb), .06); border-radius: 0 10px 10px 0; color: #b9c4d8; }
.prose code { font: 13.5px ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #9ed8ff; }
.prose pre { background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: #d3dae7; }
.prose img { border-radius: 10px; margin: 1em 0; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 8px 12px; text-align: left; }
.prose th { background: rgba(255, 255, 255, .03); }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2em 0; }

/* ---------- Pagination ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 13px; }
.pager a:hover { color: #fff; border-color: var(--line-accent); }
.pager .cur { background: var(--accent); border-color: var(--accent); color: #04121f; }

/* ---------- Discord-Box ---------- */
.discord-box { padding: 28px; display: flex; align-items: center; gap: 24px; overflow: hidden;
    background: linear-gradient(120deg, rgba(88, 101, 242, .22), rgba(88, 101, 242, .04) 60%), var(--panel); border-color: rgba(88, 101, 242, .35); }
.discord-box > .ico { width: 64px; height: 64px; color: #8b95ff; flex: none; }
.discord-box h3 { font-size: 22px; margin-bottom: 4px; text-transform: uppercase; }
.discord-box p { margin: 0; color: #b9c0e8; }
.discord-box .btn { margin-left: auto; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - 68px - 200px); display: grid; place-items: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; }
.auth-card h1 { font-size: 28px; text-transform: uppercase; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin: 22px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 13.5px; }

/* ---------- Forum ---------- */
.forum-cat { overflow: hidden; }
.forum-cat + .forum-cat { margin-top: 22px; }
.board { display: grid; grid-template-columns: 52px minmax(0, 1fr) 120px 260px; gap: 18px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); transition: background .15s; }
.board:first-of-type { border-top: 0; }
.board:hover { background: rgba(var(--accent-rgb), .03); }
.board-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .09); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .18); }
.board-ico .ico { width: 21px; height: 21px; }
.board-title { font: 600 16px var(--body); color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.board-title:hover { color: var(--accent); }
.board-desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.board-stats { font-size: 13px; color: var(--muted); line-height: 1.5; }
.board-stats b { color: #fff; font-weight: 600; }
.last { display: flex; gap: 10px; align-items: center; min-width: 0; }
.last-info { min-width: 0; font-size: 13px; line-height: 1.45; }
.last-info a.t { color: var(--text); font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.last-info a.t:hover { color: var(--accent); }
.last-info .m { color: var(--muted); font-size: 12px; }
.thread-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 210px; gap: 16px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.thread-row:hover { background: rgba(var(--accent-rgb), .03); }
.thread-row.pinned { background: linear-gradient(90deg, rgba(var(--accent-rgb), .06), transparent 40%); }
.thread-title { color: #fff; font-weight: 600; font-size: 15px; }
.thread-title:hover { color: var(--accent); }
.thread-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.thread-tags { display: inline-flex; gap: 6px; margin-right: 6px; vertical-align: 2px; }
.post { display: grid; grid-template-columns: 210px minmax(0, 1fr); overflow: hidden; scroll-margin-top: 90px; }
.post + .post { margin-top: 16px; }
.post:target { border-color: var(--accent); box-shadow: var(--glow); }
.post-side { padding: 24px 18px; border-right: 1px solid var(--line); background: rgba(0, 0, 0, .18); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.post-side .uname { font-size: 15px; }
.post-side .meta { font-size: 12px; color: var(--muted); line-height: 1.6; }
.post-main { display: flex; flex-direction: column; min-width: 0; }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.post-head a { color: var(--muted); } .post-head a:hover { color: #fff; }
.post-body { padding: 22px; flex: 1; }
.post-edited { font-size: 12px; color: var(--dim); font-style: italic; padding: 0 22px 14px; }
.post-sig { margin: 0 22px; padding: 14px 0 18px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.post-sig.prose { font-size: 13px; }
.post-actions { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); justify-content: flex-end; flex-wrap: wrap; }
.post-actions form { margin: 0; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); display: inline-block; }
.toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .02); }
.toolbar button { background: none; border: 0; color: var(--muted); height: 30px; min-width: 30px; padding: 0 8px; border-radius: 7px; cursor: pointer; font: 600 13px var(--body); }
.toolbar button:hover { color: #fff; background: rgba(var(--accent-rgb), .12); }
.toolbar .sep { width: 1px; background: var(--line-2); margin: 4px 4px; }
.toolbar .tab { margin-left: auto; }
.toolbar .tab.on { color: var(--accent); }
.editor textarea { border-radius: 0 0 10px 10px !important; min-height: 220px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.editor-preview { border: 1px solid var(--line-2); border-radius: 0 0 10px 10px; padding: 16px; min-height: 220px; background: rgba(0, 0, 0, .25); }
.mod-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border: 1px dashed rgba(251, 191, 36, .35); border-radius: 12px; background: rgba(251, 191, 36, .04); margin-bottom: 18px; }
.mod-bar form { margin: 0; display: flex; gap: 8px; align-items: center; }
.mod-bar select { background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; height: 30px; padding: 0 8px; font-size: 12px; }
.sidebox { padding: 20px; }
.sidebox h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sidebox h3 .ico { color: var(--accent); width: 16px; height: 16px; }
.mini-list { display: flex; flex-direction: column; gap: 12px; }
.mini-item { display: flex; gap: 10px; align-items: center; min-width: 0; font-size: 13px; }
.mini-item .t { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mini-item .t:hover { color: var(--accent); }
.mini-item .m { color: var(--muted); font-size: 12px; }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border: 0; } .kv span { color: var(--muted); } .kv b { color: #fff; }
.online-list { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }

/* ---------- Profil ---------- */
.profile-head { padding: 34px; display: flex; gap: 28px; align-items: center; overflow: hidden; }
.profile-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 0 0, rgba(var(--accent-rgb), .15), transparent); pointer-events: none; }
.profile-head h1 { font-size: 34px; margin: 0 0 8px; }
.profile-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 12px; }
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta .ico { width: 15px; height: 15px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.team-card { padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text); }
.team-card .av { width: 84px; height: 84px; }
.team-role-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 16px; font-size: 18px; text-transform: uppercase; letter-spacing: .1em; }
.team-role-title::before { content: ''; width: 4px; height: 22px; border-radius: 2px; background: var(--rc); box-shadow: 0 0 12px var(--rc); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(var(--accent-rgb), .03); }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--accent-rgb), .03), transparent 60%); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 50px 20px 36px; }
.footer-brand p { max-width: 420px; margin: 16px 0; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: 14px; } .footer-col a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); }
.socials a:hover { color: #fff; border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 20px; font-size: 13px; color: var(--dim); }

/* ---------- Fehler/Wartung ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-code { font: 700 clamp(90px, 18vw, 180px)/1 var(--head); color: transparent; -webkit-text-stroke: 2px rgba(var(--accent-rgb), .55); text-shadow: 0 0 60px rgba(var(--accent-rgb), .35); }

/* ---------- Animation beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .g4 { grid-template-columns: repeat(2, 1fr); }
    .layout-side { grid-template-columns: 1fr; }
    .board { grid-template-columns: 52px minmax(0, 1fr) 200px; } .board .board-stats { display: none; }
    .thread-row { grid-template-columns: 40px minmax(0, 1fr) 180px; } .thread-row .board-stats { display: none; }
}
@media (max-width: 900px) {
    .burger { display: grid; }
    .mainnav { position: fixed; left: 0; right: 0; top: 68px; flex-direction: column; padding: 12px; background: rgba(5, 7, 12, .97); border-bottom: 1px solid var(--line);
        transform: translateY(-120%); transition: transform .3s var(--ease); z-index: -1; }
    .mainnav.open { transform: none; }
    .mainnav a { padding: 13px 14px; }
    .mainnav a.active::after { display: none; }
    .mainnav a.active { background: rgba(var(--accent-rgb), .1); }
    .g3 { grid-template-columns: repeat(2, 1fr); }
    .statbar-in { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .post { grid-template-columns: 1fr; }
    .post-side { flex-direction: row; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
    .post-side .av { width: 44px; height: 44px; }
    .post-side .meta { display: none; }
    .footer-in { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; }
    .usermenu-name { display: none; } .usermenu-btn { padding: 4px; }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .wrap { padding: 0 16px; }
    .g2, .g3, .g4, .form-row { grid-template-columns: 1fr; }
    .hide-sm { display: none; }
    .section { padding: 46px 0; }
    .hero-in { padding: 70px 0 90px; }
    .hero-text { font-size: 16px; }
    .stat { padding: 16px; gap: 12px; } .stat-ico { width: 38px; height: 38px; } .stat-val { font-size: 21px; }
    .board { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; gap: 14px; } .board .last { display: none; }
    .board-ico { width: 42px; height: 42px; }
    .thread-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; } .thread-row > .av, .thread-row .last { display: none; }
    .discord-box { flex-direction: column; text-align: center; } .discord-box .btn { margin: 0; }
    .profile-head { flex-direction: column; text-align: center; padding: 26px; } .profile-meta { justify-content: center; }
    .auth-card { padding: 26px 20px; }
    .card-pad { padding: 18px; }
    .brand-text { font-size: 16px; }
    .footer-in { grid-template-columns: 1fr; gap: 26px; }
    .toasts { top: 76px; right: 16px; left: 16px; max-width: none; }
}

/* ---------- Scrollbars (dunkel/blau statt Windows-Standard) ---------- */
html { scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb), .3) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), .25); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), .5); }

/* ---------- Themen-Präfixe & Unterforen ---------- */
.prefix { --pc: var(--accent); display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; font: 600 11.5px/1.7 var(--body); letter-spacing: .02em;
    color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); vertical-align: 2px; margin-right: 6px; white-space: nowrap; }
a.prefix:hover { color: #fff; background: color-mix(in srgb, var(--pc) 35%, transparent); }
.subboards { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; }
.subboards a { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.subboards a:hover { color: var(--accent); }
.subboards .ico { width: 13px; height: 13px; }
.board.is-link .board-ico { background: rgba(251, 191, 36, .08); color: var(--warn); border-color: rgba(251, 191, 36, .2); }

/* ---------- Bereichs-Schild in der Kopfzeile (Admin-Panel, Team-Board) ---------- */
.admin-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; font: 600 12px var(--head);
    text-transform: uppercase; letter-spacing: .14em; color: var(--accent); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .25); }
.admin-badge .ico { width: 15px; height: 15px; }
@media (max-width: 640px) { .admin-badge { display: none; } }
a.admin-badge:hover { color: #fff; border-color: var(--accent); }

/* ---------- Editor überall gleich (Forum, Konversationen, Admin) ---------- */
.editor { width: 100%; }
.editor textarea { display: block; width: 100%; min-height: 240px; resize: vertical; margin: 0; background: rgba(0, 0, 0, .35); color: var(--text);
    border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 10px 10px; padding: 12px 14px; outline: none;
    font: 14px/1.6 ui-monospace, Consolas, monospace; transition: border-color .15s, box-shadow .15s; }
.editor textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.editor textarea::placeholder { color: var(--dim); font-family: var(--body); }
.editor .toolbar { background: rgba(255, 255, 255, .03); }
.editor-preview { border-top: 0; }

/* Seite breiter */
.wrap { max-width: min(1680px, 94vw); }
@media (max-width: 640px) { .wrap { max-width: none; } }

/* Kopfzeile überall gleich breit – unabhängig von der Breite der jeweiligen Seite */
.topbar .topbar-in, body.hub .topbar .topbar-in, body.admin .topbar .topbar-in { max-width: min(1680px, 94vw); padding-left: 20px; padding-right: 20px; }
@media (max-width: 640px) { .topbar .topbar-in, body.hub .topbar .topbar-in, body.admin .topbar .topbar-in { max-width: none; padding-left: 16px; padding-right: 16px; } }
/* Platz für die Scrollleiste immer freihalten, damit nichts springt */
html { scrollbar-gutter: stable; }
