/* RPGVault · Website
   Exakt gleiche Design-Token wie der Vault. */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg:        #08090c;
  --panel:     #111318;
  --panel-2:   #191c23;
  --panel-3:   #22262f;
  --border:    #2c3039;
  --border-hi: #4a505c;
  --text:      #e9ecf1;
  --muted:     #8d94a3;

  --lava:      #ff5a14;
  --lava-hi:   #ffa524;
  --ember:     #b8260a;
  --key:       #3cb6ff;
  --key-hi:    #a9e4ff;
  --ok:        #5ad08f;
  --danger:    #ff4d4d;

  --steel:      linear-gradient(180deg,#fff 0%,#d9dde3 30%,#8d949f 50%,#5c626c 52%,#b9bec6 78%,#eef0f3 100%);
  --steel-flat: linear-gradient(180deg,#6b717c,#3a3f48 50%,#2a2e36 51%,#4a505b);
  --lava-grad:  linear-gradient(180deg,var(--lava-hi) 0%,var(--lava) 45%,var(--ember) 100%);
  --key-glow:   0 0 0 1px rgba(60,182,255,.7),  0 0 14px rgba(60,182,255,.45);
  --lava-glow:  0 0 0 1px rgba(255,90,20,.65),  0 0 22px rgba(255,90,20,.35);

  --font-d: "Orbitron","Segoe UI",system-ui,sans-serif;
  --font-u: "Rajdhani","Segoe UI",system-ui,sans-serif;
  /* Aliase für vault/style.css-Kompatibilität */
  --font-display: var(--font-d);
  --font-ui: var(--font-u);
  /* Hintergrundfarbe für Dropdowns (RTE etc.) */
  --card: var(--panel);
  --r: 6px;
  color-scheme: dark;
}

/* ── Light Mode ────────────────────────────────────── */
[data-theme="light"] {
  --bg:        #f2ede8;
  --panel:     #ffffff;
  --panel-2:   #ede9e3;
  --panel-3:   #e3deda;
  --border:    #cac6be;
  --border-hi: #a09890;
  --text:      #1a1612;
  --muted:     #6b6560;
  --lava:      #0088cc;
  --lava-hi:   #33aaee;
  --ember:     #005f99;
  --key:       #c85800;
  --key-hi:    #e87000;
  --ok:        #1a8f52;
  --danger:    #cc2222;
  --accent:    var(--lava);
  --accent-text: #001a2e;
  --key-glow:   0 0 0 1px rgba(200,88,0,.6),  0 0 14px rgba(200,88,0,.35);
  --lava-glow:  0 0 0 1px rgba(0,136,204,.6), 0 0 22px rgba(0,136,204,.3);
  --lava-grad:  linear-gradient(180deg,var(--lava-hi) 0%,var(--lava) 45%,var(--ember) 100%);
  color-scheme: light;
}
[data-theme="light"] body {
  background-image:
    radial-gradient(1200px 420px at 50% -180px, rgba(0,136,204,.08), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16z M28 64v33 M0 97V81 M56 97V81' fill='none' stroke='%23000000' stroke-opacity='.025' stroke-width='0.5'/%3E%3C/svg%3E");
}
/* Topbar */
[data-theme="light"] .topbar {
  background: linear-gradient(180deg,rgba(255,255,255,.97),rgba(242,237,232,.98));
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.08);
}
[data-theme="light"] .topbar::after {
  background: radial-gradient(closest-side,var(--key-hi),var(--key) 30%,rgba(200,88,0,0));
  filter: drop-shadow(0 0 6px var(--key));
}
/* Logo-Glow: Orange → Blau */
[data-theme="light"] .brand-emblem {
  filter: drop-shadow(0 0 10px rgba(0,136,204,.45)) drop-shadow(0 2px 3px rgba(0,0,0,.15));
}
[data-theme="light"] .brand:hover .brand-emblem {
  filter: drop-shadow(0 0 18px rgba(0,136,204,.65)) drop-shadow(0 2px 3px rgba(0,0,0,.15));
}
[data-theme="light"] .wordmark {
  background: linear-gradient(180deg, #1a1612 0%, #3a3530 40%, #6b5f55 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: none;
}
[data-theme="light"] .brand-sub { color: #3a3530; }
/* Hero logo glow – blaue Animation im Light-Mode */
[data-theme="light"] .hero-logo { animation: ember-light 5s ease-in-out infinite; }
@keyframes ember-light {
  0%,100% { filter: drop-shadow(0 0 50px rgba(0,136,204,.35)); }
  50%      { filter: drop-shadow(0 0 80px rgba(0,136,204,.6)) drop-shadow(0 0 30px rgba(212,96,0,.15)); }
}
/* Nav */
[data-theme="light"] .site-nav a { color: #3a3530; }
[data-theme="light"] .site-nav a:hover { color: var(--text); background: var(--panel-3); }
[data-theme="light"] .site-nav a.active { color: var(--lava); background: rgba(0,136,204,.10); }
/* Footer */
[data-theme="light"] .footer { background: var(--panel-2); border-top: 1px solid var(--border); }
[data-theme="light"] .footer-accent { background: linear-gradient(90deg,transparent,var(--lava),var(--key),transparent); }
[data-theme="light"] .footer-divider { background: var(--border); }
/* Buttons */
[data-theme="light"] .btn.secondary { background: rgba(0,136,204,.07); border-color: rgba(0,136,204,.4); color: var(--lava); }
[data-theme="light"] .btn.secondary:hover { background: rgba(0,136,204,.15); border-color: var(--lava); }
[data-theme="light"] .btn.ghost { background: rgba(0,0,0,.03); }
[data-theme="light"] .btn.ghost:hover { background: rgba(0,0,0,.07); }
[data-theme="light"] .btn.primary { box-shadow: inset 0 1px 0 rgba(200,230,255,.5), 0 0 14px rgba(0,136,204,.2), 0 2px 4px rgba(0,0,0,.12); }
[data-theme="light"] .btn.primary:hover { box-shadow: inset 0 1px 0 rgba(200,230,255,.5), 0 0 22px rgba(0,136,204,.4); }
/* Scrollbar */
[data-theme="light"] * { scrollbar-color: var(--border-hi) var(--panel-2); }
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--panel-2); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border-hi); border-color: var(--panel-2); }
[data-theme="light"] ::-webkit-scrollbar-corner { background: var(--panel-2); }
/* Formfelder */
[data-theme="light"] input:not([type=checkbox]):not([type=range]):not([type=radio]),
[data-theme="light"] select,
[data-theme="light"] textarea { background: #ffffff; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
/* Forum: Anpassungen für Light-Mode */
[data-theme="light"] .topic-row--announcement { background: rgba(0,136,204,.05); border-left-color: rgba(0,136,204,.5); }
[data-theme="light"] .topic-row--pinned       { background: rgba(200,88,0,.04);  border-left-color: rgba(200,88,0,.4); }
[data-theme="light"] .topic-row--announcement .topic-icon { background: rgba(0,136,204,.1); border-color: rgba(0,136,204,.2); }
[data-theme="light"] .topic-row--pinned       .topic-icon { background: rgba(200,88,0,.1);  border-color: rgba(200,88,0,.2); }
[data-theme="light"] .topic-row:hover         { background: rgba(0,0,0,.03); }
[data-theme="light"] .topic-icon              { background: rgba(0,0,0,.04); }
[data-theme="light"] .forum-row:hover         { background: rgba(0,0,0,.03); }
[data-theme="light"] .forum-icon              { background: rgba(0,0,0,.05); }
[data-theme="light"] .forum-stat-card         { background: var(--panel-2); }
[data-theme="light"] .forum-badge { border-color: rgba(200,88,0,.35); background: rgba(200,88,0,.08); }
/* RTE-Editor: Vorschau-Hintergrund im Light-Mode */
[data-theme="light"] .rte-wrap    { background: #ffffff; }
[data-theme="light"] .rte-preview { background: #f9f7f5; border-top-color: var(--border); }
[data-theme="light"] .rte-toolbar { background: rgba(0,0,0,.03); border-bottom-color: var(--border); }
[data-theme="light"] .rte-btn     { color: var(--muted); }
[data-theme="light"] .rte-btn:hover { background: rgba(0,136,204,.1); color: var(--lava); border-color: rgba(0,136,204,.3); }
[data-theme="light"] .rte-btn.active { background: rgba(0,136,204,.18); color: var(--lava); border-color: var(--lava); }
[data-theme="light"] .rte-dropdown { background: var(--panel); border-color: var(--border); }
/* Tags / Badges mit orangen rgba */
[data-theme="light"] .tag-badge { border-color: rgba(200,88,0,.35); background: rgba(200,88,0,.08); }
[data-theme="light"] {
  --bg:        #f0f2f5;
  --panel:     #ffffff;
  --panel-2:   #e8ebf0;
  --panel-3:   #dde1e8;
  --border:    #c8cdd7;
  --border-hi: #9099a8;
  --text:      #1a1d23;
  --muted:     #5a6270;

  /* Farbtausch: Blau → Orange, Orange → Blau */
  --lava:      #0088cc;
  --lava-hi:   #33aaee;
  --ember:     #005f99;
  --key:       #d46000;
  --key-hi:    #f07800;
  --ok:        #1a8f52;
  --danger:    #cc2222;

  --steel:      linear-gradient(180deg,#1a1d23 0%,#2c3039 30%,#4a505c 50%,#6b717c 52%,#9ca3af 78%,#e8ebf0 100%);
  --steel-flat: linear-gradient(180deg,#c8cdd7,#e8ebf0 50%,#dde1e8 51%,#c0c7d0);
  --lava-grad:  linear-gradient(180deg,var(--lava-hi) 0%,var(--lava) 45%,var(--ember) 100%);
  --key-glow:   0 0 0 1px rgba(212,96,0,.6),   0 0 14px rgba(212,96,0,.35);
  --lava-glow:  0 0 0 1px rgba(0,136,204,.6),  0 0 22px rgba(0,136,204,.3);

  --card: var(--panel);
  --sect-bg: var(--panel);
  color-scheme: light;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 420px at 50% -180px, rgba(255,90,20,.14), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16z M28 64v33 M0 97V81 M56 97V81' fill='none' stroke='%23ffffff' stroke-opacity='.03' stroke-width='0.5'/%3E%3C/svg%3E");
  color: var(--text);
  font: 500 15px/1.45 var(--font-u);
  letter-spacing: .01em;
  display: flex; flex-direction: column;
  min-height: 100dvh;
  overflow-x: clip; /* clip statt hidden – kein Scroll-Container, kein Höhen-Klemmen */
}
a { color: var(--key); text-decoration: none; transition: color .15s; }
a:hover { color: var(--key-hi); }
h1,h2,h3 { font-family: var(--font-d); font-weight: 800; }
::selection { background: rgba(255,90,20,.45); color: #fff; }

/* ── Scrollbar ─────────────────────────────────────────── */
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: #3a3f48 #0c0d11; }
/* WebKit / Blink */
::-webkit-scrollbar              { width: 8px; height: 8px; }
::-webkit-scrollbar-track        { background: #0c0d11; }
::-webkit-scrollbar-thumb        { background: linear-gradient(180deg, #4a505c 0%, #2c3039 100%); border-radius: 4px; border: 2px solid #0c0d11; transition: background .2s; }
::-webkit-scrollbar-thumb:hover  { background: linear-gradient(180deg, #ff5a14 0%, #b8260a 100%); }
::-webkit-scrollbar-corner       { background: #0c0d11; }
/* Inline-Scrollbars (z.B. overflow-x Tabellen, Code-Blöcke) */
::-webkit-scrollbar:horizontal   { height: 6px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-hi);
  background: var(--steel-flat);
  border-radius: var(--r); padding: 7px 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 13px/1 var(--font-u);
  text-transform: uppercase; letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.5);
  transition: filter .15s, border-color .15s, box-shadow .15s;
  color: var(--text);
}
.btn:hover { border-color: #9aa1ab; filter: brightness(1.12); color: var(--text); }
.btn.primary {
  background: var(--lava-grad); border-color: #ffb25a; color: #1a0700;
  font-weight: 700; text-shadow: 0 1px 0 rgba(255,210,150,.5);
  box-shadow: inset 0 1px 0 rgba(255,235,200,.6), 0 0 16px rgba(255,90,20,.35), 0 2px 6px rgba(0,0,0,.5);
}
.btn.primary:hover { filter: brightness(1.1) saturate(1.1); color: #1a0700; box-shadow: inset 0 1px 0 rgba(255,235,200,.6), 0 0 26px rgba(255,90,20,.6); }
.btn.secondary { background: rgba(255,90,20,.08); border-color: rgba(255,90,20,.45); color: var(--lava); box-shadow: none; }
.btn.secondary:hover { background: rgba(255,90,20,.18); border-color: var(--lava); filter: none; color: var(--lava); }
.btn.ghost { background: rgba(255,255,255,.03); border-color: var(--border-hi); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.07); }

/* ── Topbar / Nav ──────────────────────────────────── */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px);
  z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  height: 80px;
  background: linear-gradient(180deg,rgba(255,255,255,.05),transparent 60%),
              linear-gradient(180deg,#181b21,#0e1014);
  border-bottom: 1px solid #000;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.06), 0 6px 28px rgba(0,0,0,.8);
  flex-shrink: 0;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: radial-gradient(closest-side,var(--key-hi),var(--key) 30%,rgba(60,182,255,0));
  filter: drop-shadow(0 0 6px var(--key)); pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-emblem {
  height: 62px; width: auto;
  max-height: calc(80px - 16px); /* nie größer als Topbar minus Padding */
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,90,20,.35)) drop-shadow(0 2px 4px rgba(0,0,0,.8));
  transition: transform .3s, filter .3s;
}
.brand:hover .brand-emblem { transform: rotate(-6deg) scale(1.05); filter: drop-shadow(0 0 18px rgba(255,90,20,.6)) drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark {
  font-family: var(--font-d); font-weight: 900; font-size: 22px; letter-spacing: .04em;
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 #000) drop-shadow(0 2px 3px rgba(0,0,0,.7));
}
.brand-sub {
  position: relative;
  font-family: var(--font-d); font-weight: 600; font-size: 8px; letter-spacing: .2em;
  text-transform: uppercase; color: #c9ced6;
  padding-top: 4px; margin-top: 2px;
}
.brand-sub::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: 0; height: 1px;
  background: radial-gradient(closest-side,#fff,var(--key) 40%,rgba(60,182,255,0));
  filter: drop-shadow(0 0 4px var(--key));
}

/* Horizontale Nav-Links in der Topbar */
.site-nav {
  display: flex; align-items: center; gap: 2px;
  margin: 0 auto; list-style: none; padding: 0;
}
.site-nav a {
  font: 700 11px/1 var(--font-d);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: var(--r);
  color: #c5ccd8; text-decoration: none;
  transition: background .12s, color .12s; white-space: nowrap;
}
.site-nav a:hover    { color: #fff; background: var(--panel-3); }
.site-nav a.active   { color: var(--lava-hi); background: rgba(255,90,20,.12); }
.site-nav .vault-link a {
  color: var(--key-hi);
  border: 1px solid rgba(60,182,255,.35);
  background: rgba(60,182,255,.04);
  box-shadow: 0 0 8px rgba(60,182,255,.18), inset 0 0 8px rgba(60,182,255,.06);
  animation: vault-shimmer 2.8s ease-in-out infinite;
}
.site-nav .vault-link a:hover {
  background: rgba(60,182,255,.12);
  border-color: var(--key-hi);
  box-shadow: 0 0 16px rgba(60,182,255,.4), inset 0 0 12px rgba(60,182,255,.1);
  animation: none;
}
@keyframes vault-shimmer {
  0%, 100% { box-shadow: 0 0 6px rgba(60,182,255,.15), inset 0 0 6px rgba(60,182,255,.04); border-color: rgba(60,182,255,.3); }
  50%       { box-shadow: 0 0 18px rgba(60,182,255,.5), inset 0 0 10px rgba(60,182,255,.12); border-color: rgba(60,182,255,.7); }
}
.site-nav .soon a { opacity: .4; pointer-events: none; cursor: default; }

.nav-burger {
  display: none; background: none; border: 1px solid var(--border-hi);
  border-radius: var(--r); width: 32px; height: 32px; cursor: pointer;
  color: var(--muted); font-size: 14px; align-items: center; justify-content: center;
  margin-left: auto;
}

/* ── Nav Auth ──────────────────────────────────────── */
.nav-auth {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 6px;
}
.nav-auth-link {
  font: 700 10px/1 var(--font-d); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: var(--r); text-decoration: none;
  transition: color .12s;
}
.nav-auth-link:hover { color: var(--text); }
.nav-auth-user {
  display: flex; align-items: center; gap: 7px; text-decoration: none;
  padding: 4px 8px; border-radius: var(--r); transition: background .12s;
}
.nav-auth-user:hover { background: var(--panel-3); }
.nav-auth-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ember), var(--lava));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 10px; font-weight: 900; color: #fff;
}
.nav-auth-name {
  font: 700 10px/1 var(--font-d); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media(max-width:900px) { .nav-auth { display: none; } }

/* ── Seiteninhalt ──────────────────────────────────── */
.page { flex: 1; overflow-x: clip; min-height: 0; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: 22px; }
.sect { padding-block: 40px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; background: var(--sect-bg, rgba(17,19,24,.38)); margin-bottom: 40px; }
.sect + .sect { border-top: 1px solid var(--border-hi); border-radius: 0; margin-bottom: 0; }
.sect:last-child { border-radius: 0 0 10px 10px; margin-bottom: 40px; }

/* Abschnitts-Kopf */
.sect-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sect-head h2 {
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sect-head .more { font-size: 12px; color: var(--key); }
.sect-head .more:hover { color: var(--key-hi); }

/* ── Homepage Hero ─────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 22px 50px;
  gap: 0;
}
.hero-logo {
  width: min(360px, 72vw); height: auto; margin-bottom: 18px;
  filter: drop-shadow(0 0 50px rgba(255,90,20,.3));
  animation: ember 5s ease-in-out infinite;
}
@keyframes ember {
  0%,100% { filter: drop-shadow(0 0 50px rgba(255,90,20,.3)); }
  50%      { filter: drop-shadow(0 0 80px rgba(255,90,20,.55)) drop-shadow(0 0 30px rgba(60,182,255,.2)); }
}
.hero-title {
  font-size: clamp(1rem, 3vw, 1.5rem); letter-spacing: .08em; text-transform: uppercase;
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.hero-sub { color: var(--muted); font-size: 15px; max-width: 480px; margin-bottom: 26px; }
.hero-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── Stats-Zeile ───────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.stat {
  padding: 18px 22px; border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-d); font-size: 22px; font-weight: 900;
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-lbl { font-size: 11px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }

/* ── Two-col Layout ────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 0; border-top: 1px solid var(--border); }
.col-main { border-right: 1px solid var(--border); padding: 28px 28px 40px; }
.col-side  { padding: 28px 22px 40px; background: var(--panel-2); }

/* ── News-Liste ────────────────────────────────────── */
/* ── News-Cat Badge ──────────────────────────────────── */
.news-cat {
  display: inline-block; flex-shrink: 0;
  font-family: var(--font-d); font-size: 9px; letter-spacing: .12em; font-weight: 700;
  text-transform: uppercase; color: var(--lava-hi);
  border: 1px solid rgba(255,90,20,.4); border-radius: 3px; padding: 2px 7px;
  background: rgba(255,90,20,.1);
}
.news-cat.key { color: var(--key-hi); border-color: rgba(60,182,255,.4); background: rgba(60,182,255,.09); }
.news-cat.ok  { color: var(--ok);     border-color: rgba(90,208,143,.4); background: rgba(90,208,143,.08); }
.news-meta { font-size: 12px; color: var(--muted); }

/* ── Feature-Card ────────────────────────────────────── */
.nf-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  margin-top: 16px;
  margin-bottom: 24px;
}
.nf-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lava), var(--lava-hi), transparent);
}
.nf-card[data-cat="community"]::before   { background: linear-gradient(90deg, var(--key), var(--key-hi), transparent); }
.nf-card[data-cat="release"]::before,
.nf-card[data-cat="meilenstein"]::before { background: linear-gradient(90deg, var(--ok), #7fffb8, transparent); }
.nf-card[data-cat="tutorial"]::before    { background: linear-gradient(90deg, #b482ff, #d4aaff, transparent); }

.nf-img {
  width: 100%; height: 240px;
  background-size: cover; background-position: center;
}
.nf-body { padding: 28px 32px 32px; }
.nf-eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.nf-date { font-size: 12px; color: var(--muted); }
.nf-title {
  font-size: 26px; font-weight: 800; color: var(--text);
  line-height: 1.25; margin: 0 0 12px; letter-spacing: -.01em;
}
.nf-teaser {
  font-size: 14px; color: var(--muted); line-height: 1.75;
  margin: 0 0 22px; max-width: 620px;
}
.nf-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── News-Grid ───────────────────────────────────────── */
.ng-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.ng-year-sep {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0 8px;
  cursor: pointer; user-select: none;
}
.ng-year-sep:hover .ng-year-label { opacity: .7; }
.ng-year-label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-d); font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); opacity: .5; white-space: nowrap;
  transition: opacity .15s;
}
.ng-year-chevron { font-size: 9px; transition: transform .2s; }
.ng-year-sep.collapsed .ng-year-chevron { transform: rotate(-90deg); }
.ng-year-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
/* Karten die zu einer eingeklappten Jahres-Gruppe gehören */
.ng-card.year-hidden { display: none; }

/* ── News-Card (Grid-Item) ───────────────────────────── */
.ng-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s;
}
.ng-card:hover { border-color: var(--border-hi); }
.ng-card-head {
  height: 4px; flex-shrink: 0;
  background: rgba(255,90,20,.5);
}
.ng-card-head[data-cat="community"]   { background: rgba(60,182,255,.5); }
.ng-card-head[data-cat="release"],
.ng-card-head[data-cat="meilenstein"] { background: rgba(90,208,143,.5); }
.ng-card-head[data-cat="tutorial"]    { background: rgba(180,130,255,.5); }
.ng-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.ng-eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ng-date { font-size: 11px; color: var(--muted); }
.ng-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 7px; line-height: 1.4;
}
.ng-teaser {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  margin: 0 0 12px; flex: 1;
}
.ng-footer {
  display: flex; align-items: center; gap: 12px; margin-top: auto;
}
.ng-replies {
  font-size: 12px; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.ng-replies:hover { color: var(--text); }

/* ── Expand / Readmore ───────────────────────────────── */
.news-readmore-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 12px; color: var(--key); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.news-readmore-btn:hover { color: var(--key-hi); }
.news-expand-body { margin-top: 16px; }
.news-content {
  font-size: 14px; line-height: 1.75; color: var(--text);
  padding-top: 16px; border-top: 1px solid var(--border);
}
.news-expand-icon { transition: transform .2s; }

/* ── Compat (alte Klassen falls noch irgendwo genutzt) ── */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item { display:flex;gap:18px;align-items:flex-start;padding:16px 0;border-bottom:1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size:15px;font-weight:700;color:var(--text);margin-bottom:4px; }
.news-summary { font-size:14px;color:var(--muted);margin-top:5px;line-height:1.5; }

/* ── Games ─────────────────────────────────────────── */
/* Featured (kein Link-Wrapper – Links/Knöpfe darin wären sonst verschachtelt) */
.gf-wrap {
  display: grid; grid-template-columns: minmax(240px, 340px) 1fr;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  margin: 16px 0 28px; background: var(--panel);
}
.gf-cover-link { display: block; background: #0d0d14; }
.gf-cover-img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.gf-cover--grad {
  display: flex; align-items: center; justify-content: center; font-size: 48px; color: rgba(255,255,255,.12);
  background: linear-gradient(160deg, #1a0d18 0%, #0d0d1a 60%, #100d0a 100%);
}
.gf-body { padding: 24px 28px; min-width: 0; }
.gf-eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.gf-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-d); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #ffd700; border: 1px solid rgba(255,215,0,.4); background: rgba(255,215,0,.08); border-radius: 3px; padding: 2px 8px;
}
.gf-tag {
  font-family: var(--font-d); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); border-radius: 3px; padding: 2px 7px;
}
.gf-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; line-height: 1.25; }
.gf-title a { color: var(--text); text-decoration: none; }
.gf-title a:hover { color: var(--lava-hi); }
.gf-dev { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.gf-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.gf-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gf-dl-count { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }

/* Filter */
.gdb-filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.gdb-search { flex: 1 1 240px; max-width: 360px; }
.gdb-search .dl-search-icon { display: inline-flex; align-items: center; line-height: 1; }
.gdb-search .dl-search-icon svg { position: static; transform: none; }   /* Icon im absolut positionierten span */
.gdb-filterbar .dl-search-input, .gdb-filterbar .dl-select { height: 38px; }
.gdb-filterbar .btn { height: 38px; }
.gdb-tag-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.gdb-tag-pill {
  display: inline-block; background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 3px 11px; font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.gdb-tag-pill:hover { border-color: var(--lava); color: var(--text); }
.gdb-tag-pill.active { background: var(--lava); border-color: var(--lava); color: #fff; font-weight: 600; }
.gdb-alpha, .gdb-pages { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.gdb-pages { justify-content: center; margin: 24px 0 0; }
.gdb-letter {
  min-width: 30px; padding: 5px 8px; text-align: center; border-radius: 5px; font-size: 12px; font-weight: 700;
  color: var(--muted); border: 1px solid var(--border); background: var(--panel); text-decoration: none;
}
.gdb-letter:hover { color: var(--text); border-color: var(--lava); }
.gdb-letter.active { background: var(--lava); border-color: var(--lava); color: #fff; }
.gdb-gap { padding: 5px 4px; color: var(--muted); }

/* Raster */
.gdb-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.gdb-title { font-family: var(--font-d); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin: 0; }
.gdb-count { font-size: 12px; color: var(--muted); }
.gdb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gdb-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.gdb-card:hover { border-color: var(--lava); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.gdb-card-img { position: relative; aspect-ratio: 4 / 3; background: #0d0d14; overflow: hidden; }
.gdb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.gdb-card-img--grad {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: rgba(255,255,255,.12);
  background: linear-gradient(135deg, #1a0d18 0%, #0d0d1a 60%, #100d0a 100%);
}
.gdb-card-engine, .gdb-card-demo {
  position: absolute; top: 8px; font-family: var(--font-d); font-size: 9px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px;
  background: rgba(0,0,0,.72); color: #fff; backdrop-filter: blur(2px);
}
.gdb-card-engine { left: 8px; }
.gdb-card-demo { right: 8px; background: rgba(217,119,6,.9); }
.gdb-card-body { padding: 12px 14px 12px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gdb-card-title { font-size: 15px; font-weight: 700; margin: 0 0 3px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gdb-card-link { color: var(--text); text-decoration: none; }
.gdb-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* ganze Karte klickbar */
.gdb-card:hover .gdb-card-link { color: var(--lava-hi); }
.gdb-card-dev { font-size: 12px; color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gdb-card-desc { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gdb-card-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; min-width: 0; }
.gdb-card-tag {
  font-family: var(--font-d); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lava-hi); border: 1px solid rgba(255,90,20,.35); background: rgba(255,90,20,.08);
  border-radius: 3px; padding: 2px 6px; white-space: nowrap;
}
.gdb-card-tag.secondary { color: var(--muted); border-color: var(--border); background: none; }
.gdb-card-spacer { flex: 1; }
.gdb-card-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.gdb-card-dl { position: relative; z-index: 2; padding: 6px 10px !important; font-size: 12px !important; }   /* über dem Karten-Link */
.gdb-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.gdb-empty i { font-size: 32px; display: block; margin-bottom: 12px; opacity: .3; }

/* ── Game Detail ────────────────────────────────────── */
.gd-hero {
  display: grid; grid-template-columns: 280px 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  margin-bottom: 24px; margin-top: 16px;
}
.gd-cover { position: relative; background: var(--panel-hi); }
.gd-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-cover-grad { width: 100%; height: 100%; min-height: 260px;
  background: linear-gradient(160deg, #1a0d18 0%, #0d0d1a 60%, #100d0a 100%); }
.gd-hero-body { padding: 28px 32px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.gd-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gd-status { font-family: var(--font-d); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; border-radius: 3px; padding: 2px 7px; border: 1px solid; }
.gd-status--released    { color: var(--ok); border-color: rgba(90,208,143,.4); background: rgba(90,208,143,.08); }
.gd-status--demo        { color: var(--key-hi); border-color: rgba(60,182,255,.4); background: rgba(60,182,255,.08); }
.gd-status--development { color: #ffd700; border-color: rgba(255,215,0,.4); background: rgba(255,215,0,.07); }
.gd-status--abandoned   { color: var(--muted); border-color: var(--border); background: transparent; }
.gd-status--hiatus      { color: var(--lava-hi); border-color: rgba(255,90,20,.4); background: rgba(255,90,20,.07); }
.gd-title { font-size: 26px; font-weight: 800; color: var(--text); margin: 0; line-height: 1.2; }
.gd-dev { font-size: 13px; color: var(--muted); }

.gd-rating-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-stars-display i { font-size: 16px; }
.gd-rating-val { font-size: 15px; font-weight: 700; color: #ffd700; font-family: var(--font-d); }
.gd-rating-count { font-size: 12px; color: var(--muted); }

.gd-rate-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gd-rate-label { font-size: 12px; color: var(--muted); }
.gd-stars-input { display: flex; gap: 1px; }
.gd-star-btn {
  background: none; border: none; cursor: pointer; padding: 3px 2px;
  font-size: 22px; line-height: 1;
  transition: transform .1s;
}
.gd-star-btn:hover { transform: scale(1.1); }
/* Sterne via CSS – kein FA-Icon nötig */
.gd-star-btn::before {
  content: '☆';
  color: var(--border);
  display: block;
  pointer-events: none;
  font-style: normal;
}
.gd-star-btn.s-full::before {
  content: '★';
  color: #ffd700;
}
.gd-star-btn.s-half::before {
  content: '★';
  background: linear-gradient(to right, #ffd700 50%, var(--border) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gd-rate-info { font-size: 12px; color: var(--muted); }

.gd-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* Detail Body */
.gd-body { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.gd-section { margin-bottom: 20px; }
.gd-section-title {
  font-family: var(--font-d); font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.gd-desc { font-size: 14px; color: var(--text); line-height: 1.8; }
.gd-cw {
  display: flex; gap: 12px; padding: 12px 16px;
  background: rgba(255,90,20,.07); border: 1px solid rgba(255,90,20,.25);
  border-radius: 8px;
}
.gd-tag-pill {
  font-size: 12px; color: var(--muted); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px;
}

/* ── Kommentare ── */
.gd-comm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--border);
}

/* Formular */
.gd-comm-form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 28px; }
.gd-comm-avatar { flex-shrink: 0; margin-top: 2px; }
.gd-comm-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); display: block; }
.gd-comm-avatar-placeholder {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--panel-hi); color: var(--muted);
  font-family: var(--font-d); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.gd-comm-input-wrap { flex: 1; min-width: 0; }
.gd-comm-textarea {
  display: block; width: 100%; box-sizing: border-box;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--font-s); font-size: 14px;
  padding: 10px 12px; resize: vertical; min-height: 76px;
  transition: border-color .15s; margin-bottom: 8px;
}
.gd-comm-textarea:focus { outline: none; border-color: var(--key-hi); box-shadow: 0 0 0 2px rgba(60,182,255,.12); }
.gd-comm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.gd-comm-hint { font-size: 11px; color: var(--muted); margin-right: auto; }

/* Login-Hinweis */
.gd-comm-login {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; color: var(--muted); margin-bottom: 20px;
}

/* Kommentarliste */
.gd-comm-list { display: flex; flex-direction: column; gap: 14px; }
.gd-comm-item { display: flex; gap: 12px; align-items: flex-start; }
.gd-comm-bubble {
  flex: 1; min-width: 0;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
}
.gd-comm-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;
}
.gd-comm-author { font-size: 13px; color: var(--text); font-weight: 700; }
.gd-comm-time { font-size: 11px; color: var(--muted); }
.gd-comm-reply-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 11px; color: var(--muted); font-family: inherit;
  display: flex; align-items: center; gap: 4px; opacity: .7; transition: opacity .15s;
}
.gd-comm-reply-btn:hover { opacity: 1; color: var(--accent); }
.gd-comm-del {
  margin-left: auto; font-size: 11px; color: var(--lava); text-decoration: none;
  opacity: .5; transition: opacity .1s; line-height: 1;
}
.gd-comm-del:hover { opacity: 1; }
.gd-comm-body { font-size: 14px; color: var(--text); line-height: 1.75; word-break: break-word; }
.gd-comm-body blockquote,
.gd-comm-body p:has(> code:first-child:last-child) {
  /* Zitat-Vorschau im gesendeten Kommentar – wird als plain text gespeichert */
}

/* Leer-Zustand */
.gd-comm-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 0; gap: 10px;
}

/* ── Screenshot-Galerie ── */
.gd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.gd-thumb {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; padding: 0; cursor: pointer; aspect-ratio: 16/9;
  transition: border-color .15s, transform .15s;
}
.gd-thumb:hover { border-color: var(--key-hi); transform: scale(1.02); }
.gd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Lightbox ── */
.gd-lb {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.gd-lb[hidden] { display: none; }
.gd-lb-img-wrap {
  max-width: calc(100vw - 120px); max-height: calc(100vh - 80px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.gd-lb-img-wrap img {
  max-width: 100%; max-height: calc(100vh - 120px);
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.8);
}
.gd-lb-caption { font-size: 13px; color: rgba(255,255,255,.6); text-align: center; }
.gd-lb-close, .gd-lb-prev, .gd-lb-next {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%; color: #fff; cursor: pointer; font-size: 16px;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.gd-lb-close:hover, .gd-lb-prev:hover, .gd-lb-next:hover { background: rgba(255,255,255,.2); }
.gd-lb-close { position: fixed; top: 16px; right: 16px; }

/* Sidebar */
.gd-meta-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; position: sticky; top: 70px;
}
.gd-meta-title {
  font-family: var(--font-d); font-size: 10px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 10px 14px; background: var(--panel-hi, rgba(255,255,255,.03));
  border-bottom: 1px solid var(--border);
}
.gd-meta-list { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; padding: 0; }
.gd-meta-list dt {
  font-size: 11px; color: var(--muted); padding: 8px 14px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.gd-meta-list dd {
  font-size: 12px; color: var(--text); padding: 8px 14px;
  border-bottom: 1px solid var(--border); margin: 0;
}
.gd-meta-list dt:last-of-type, .gd-meta-list dd:last-of-type { border-bottom: none; }



/* ── Toplist ───────────────────────────────────────── */
.tl { width: 100%; border-collapse: collapse; }
.tl tr { border-bottom: 1px solid var(--border); }
.tl tr:last-child { border-bottom: none; }
.tl tr:hover td { background: rgba(255,255,255,.02); }
.tl td { padding: 9px 8px; vertical-align: middle; font-size: 14px; }
.tl-rank {
  font-family: var(--font-d); font-size: 11px; font-weight: 900; color: var(--muted);
  width: 32px; text-align: center;
}
.tl-1 { color: var(--lava-hi); text-shadow: 0 0 10px rgba(255,90,20,.5); }
.tl-2 { color: #c9ced6; }
.tl-3 { color: #cd7f32; }
.tl-name { font-weight: 700; }
.tl-maker { font-size: 12px; color: var(--muted); }
.tl-votes {
  font-family: var(--font-d); font-size: 12px; font-weight: 700;
  color: var(--lava-hi); text-align: right; font-variant-numeric: tabular-nums;
}
.vbar { height: 3px; border-radius: 2px; background: var(--panel-3); margin-top: 3px; overflow: hidden; }
.vfill { height: 100%; border-radius: 2px; background: linear-gradient(90deg,var(--ember),var(--lava)); }

/* ── Toplist-Banner (Fulllist-Page) ────────────────── */
.tl-entry {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s;
}
.tl-entry:hover { border-color: var(--border-hi); }

.tl-banner {
  position: relative; height: 110px; overflow: hidden;
  display: flex; align-items: center; gap: 0;
  padding: 0 18px;
}
.tl-banner--link { cursor: pointer; }
.tl-banner--link:hover .tl-banner-img,
.tl-banner--link:focus .tl-banner-img { filter: brightness(1.12); }
.tl-banner--link:hover .tl-banner-overlay,
.tl-banner--link:focus .tl-banner-overlay { background: linear-gradient(90deg, rgba(8,9,12,.75) 0%, rgba(8,9,12,.42) 60%, rgba(8,9,12,.18) 100%); }
.tl-banner--link:focus { outline: 2px solid var(--lava); outline-offset: -2px; }
.tl-banner-ext-hint {
  position: absolute; bottom: 8px; right: 14px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 5px;
  opacity: 0; transition: opacity .18s;
}
.tl-banner--link:hover .tl-banner-ext-hint,
.tl-banner--link:focus .tl-banner-ext-hint { opacity: 1; }
.tl-banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.tl-banner-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(8,9,12,.85) 0%, rgba(8,9,12,.55) 60%, rgba(8,9,12,.3) 100%);
}
.tl-banner-grad { position: absolute; inset: 0; z-index: 0; }
.tl-banner-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.tl-rank-badge {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 11px; font-weight: 900;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: var(--muted); margin-right: 16px;
}
.tlb-gold   { background: rgba(255,165,36,.2); border-color: rgba(255,165,36,.5); color: var(--lava-hi); font-size: 13px; }
.tlb-silver { background: rgba(200,200,218,.12); border-color: rgba(200,200,218,.35); color: #c9ced6; font-size: 13px; }
.tlb-bronze { background: rgba(205,127,50,.15); border-color: rgba(205,127,50,.4); color: #cd7f32; font-size: 13px; }

.tl-banner-content { position: relative; z-index: 1; flex: 1; min-width: 0; }
.tl-banner-title {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(.9rem, 2.5vw, 1.3rem); letter-spacing: .03em;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
  /* cut-out steel look */
  -webkit-background-clip: unset; background-clip: unset;
}
.tl-banner-desc {
  font-size: 12px; color: rgba(255,255,255,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tl-banner-votes {
  position: relative; z-index: 1; flex-shrink: 0; margin-left: 18px;
  text-align: right;
}
.tl-vote-num {
  display: block; font-family: var(--font-d); font-size: 1.3rem; font-weight: 900;
  font-variant-numeric: tabular-nums; line-height: 1;
  filter: brightness(1.6) saturate(1.2);
  text-shadow: 0 0 16px currentColor;
}
.tl-vote-lbl {
  font-family: var(--font-d); font-size: 9px; letter-spacing: .14em;
  opacity: .7;
}

.tl-link { font-size:12px; color:var(--key); flex-shrink:0; background:none; border:none; padding:0; cursor:pointer; font-family:inherit; text-decoration:none; }
.tl-link:hover { color:var(--key-hi); }
.tl-meta {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 18px;
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.04);
  flex-wrap: wrap;
}
.tl-genre {
  font-family: var(--font-d); font-size: 9px; letter-spacing: .12em; font-weight: 700;
  text-transform: uppercase; border: 1px solid; border-radius: 3px;
  padding: 2px 8px; flex-shrink: 0;
  filter: brightness(1.5) saturate(1.2);
}
.tl-creator { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.tl-bar-wrap {
  flex: 1; height: 3px; border-radius: 2px; background: var(--panel-3);
  overflow: hidden; min-width: 40px;
}
.tl-bar-fill { height: 100%; border-radius: 2px; }

/* ── Download-Tabelle ──────────────────────────────── */
.dl-tbl { width: 100%; border-collapse: collapse; }
.dl-tbl tr { border-bottom: 1px solid var(--border); transition: background .1s; }
.dl-tbl tr:hover td { background: rgba(255,255,255,.02); }
.dl-tbl td { padding: 9px 10px; vertical-align: middle; }
.dl-name { font-size: 15px; font-weight: 700; }
.dl-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dl-count { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.dl-section-head {
  font-family: var(--font-d); font-size: 10px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--lava-hi); padding: 12px 10px 8px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}

/* ── Team-Grid ─────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.team-card {
  background:
    linear-gradient(180deg,#16181e,#101216) padding-box,
    linear-gradient(160deg,#6a707b,#2a2e36 40%,#1d2026 60%,#565c67) border-box;
  border: 1px solid transparent; border-radius: var(--r);
  padding: 20px 18px;
  transition: transform .15s, box-shadow .15s;
}
.team-card:hover {
  background:
    linear-gradient(180deg,#1a1d24,#121418) padding-box,
    linear-gradient(160deg,var(--lava-hi),var(--lava) 45%,var(--ember)) border-box;
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(255,90,20,.25), 0 6px 16px rgba(0,0,0,.5);
}
.team-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.team-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: rgba(255,255,255,.9);
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover .team-avatar { transform: scale(1.08); }
.team-info { flex: 1; min-width: 0; }
.team-role {
  font-family: var(--font-d); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lava-hi); margin-bottom: 5px;
}
.team-name { font-size: 16px; font-weight: 700; }
.team-bio  { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── Page-Hero (innere Seiten) ─────────────────────── */
.page-head {
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border-hi);
  border-radius: 10px 10px 0 0;
  padding: 40px 28px 26px;
  background: linear-gradient(180deg, rgba(255,90,20,.03) 0%, transparent 100%);
  margin-top: 32px;
}
.page-head .breadcrumb {
  font-family: var(--font-d); font-size: 10px; letter-spacing: .1em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.page-head .breadcrumb a { color: var(--muted); }
.page-head .breadcrumb a:hover { color: var(--key); }
.page-head h1 {
  font-size: 20px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ── Coming Soon ───────────────────────────────────── */
.coming {
  padding: 80px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.coming-title {
  font-size: 22px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.coming p { color: var(--muted); max-width: 420px; font-size: 15px; line-height: 1.65; }
.coming-list {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--panel); padding: 18px 22px; text-align: left;
  display: flex; flex-direction: column; gap: 8px; width: min(400px, 100%);
}
.coming-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; list-style: none; }
.coming-list li::before { content: "✦"; color: var(--lava); font-size: 10px; flex-shrink: 0; }

/* ── Footer ────────────────────────────────────────── */
/* === Admin Floating Button === */
.admin-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 9000;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#1a0a00,#3d1800);
  border: 1px solid var(--lava); border-radius: 30px;
  padding: 9px 16px 9px 13px;
  color: #ff8040; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; box-shadow: 0 4px 20px rgba(255,90,20,.35);
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.admin-fab:hover {
  background: linear-gradient(135deg,#2a1200,#5a2400);
  box-shadow: 0 6px 28px rgba(255,90,20,.55);
  transform: translateY(-1px);
}
.admin-fab i { font-size: 13px; }

.footer {
  background: linear-gradient(180deg,#0d1116,#08090c);
  border-top: 1px solid var(--border);
  margin-top: auto; padding: 0;
}
.footer-accent {
  height: 2px;
  background: linear-gradient(90deg,transparent,var(--lava) 30%,var(--key) 70%,transparent);
  opacity: .7;
}
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 36px 22px 0; }
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 32px;
}
/* Brand-Spalte */
.footer-brand-col { display: flex; flex-direction: column; gap: 0; }
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 12px;
}
.footer-logo-name {
  font-family: var(--font-d); font-size: 18px; font-weight: 900;
  letter-spacing: .12em; color: var(--text); line-height: 1;
}
.footer-logo-sub { font-size: 10px; color: var(--muted); letter-spacing: .08em; margin-top: 2px; }
.footer-desc { font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 240px; margin-bottom: 16px; }
/* Social */
.footer-soc { display: flex; gap: 8px; }
.footer-soc-btn {
  width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 14px; text-decoration: none;
  border: 1px solid var(--border); color: var(--muted);
  transition: all .15s; background: rgba(255,255,255,.03);
}
.footer-soc-discord:hover { background: rgba(88,101,242,.15); border-color: rgba(88,101,242,.5); color: #818cf8; }
.footer-soc-yt:hover      { background: rgba(255,0,0,.12);    border-color: rgba(255,0,0,.4);    color: #f87171; }
.footer-soc-gh:hover       { background: rgba(255,255,255,.08);border-color: rgba(255,255,255,.3);color: var(--text); }
/* Nav-Spalten */
.footer-col-head {
  font-family: var(--font-d); font-size: 9px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--lava-hi); margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.footer-col li a {
  font-size: 12px; color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: 7px;
  padding: 4px 0; transition: color .12s;
}
.footer-col li a i { width: 12px; text-align: center; font-size: 11px; opacity: .6; }
.footer-col li a:hover { color: var(--text); }
.footer-col li a:hover i { opacity: 1; color: var(--lava); }
/* Divider */
.footer-divider { height: 1px; background: var(--border); margin-bottom: 0; }
/* Bottom-Bar */
.footer-bot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; padding: 14px 0 18px;
  font-size: 11px; color: var(--muted);
}
.footer-copy { display: flex; align-items: center; gap: 5px; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.footer-legal a { color: var(--muted); text-decoration: none; transition: color .12s; }
.footer-legal a:hover { color: var(--key); }

/* ── BBCode-Notice-Boxen ───────────────────────────── */
.bb-notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: 7px; margin: 10px 0;
  font-size: 13px; line-height: 1.5; border: 1px solid;
}
.bb-notice i { margin-top: 2px; flex-shrink: 0; }
.bb-notice--closed {
  background: rgba(100,100,120,.12); border-color: rgba(150,150,170,.3);
  color: var(--muted);
}
.bb-notice--moved {
  background: rgba(60,182,255,.08); border-color: rgba(60,182,255,.25);
  color: var(--key);
}
.bb-notice--warn {
  background: rgba(255,180,0,.08); border-color: rgba(255,180,0,.3);
  color: #f5a623;
}
.bb-notice--info {
  background: rgba(60,182,255,.08); border-color: rgba(60,182,255,.25);
  color: var(--key);
}
.bb-notice--error {
  background: rgba(255,77,77,.08); border-color: rgba(255,77,77,.25);
  color: var(--danger);
}
/* ── BBCode-Spoiler ────────────────────────────────── */
.bb-spoiler {
  border: 1px solid var(--border); border-radius: 7px;
  margin: 8px 0; overflow: hidden;
}
.bb-spoiler summary {
  padding: 8px 14px; cursor: pointer; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: var(--panel-2); user-select: none;
}
.bb-spoiler summary:hover { color: var(--text); }
.bb-spoiler-body { padding: 12px 14px; font-size: 13px; }

/* ── Legacy-Quote (Woltlab-Migration) ─────────────── */
blockquote.legacy-quote {
  margin: 10px 0; padding: 10px 16px;
  border-left: 3px solid var(--lava);
  background: rgba(255,255,255,.03);
  border-radius: 0 6px 6px 0;
  color: var(--muted); font-size: 13px;
}
[data-theme="light"] blockquote.legacy-quote {
  background: rgba(0,0,0,.04);
}
.user-mention {
  color: var(--lava); font-weight: 600;
}

/* ── Datei-Upload-Button (global) ──────────────────── */
.file-upload-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 7px; cursor: pointer;
  background: rgba(255,90,20,.12); border: 1px solid rgba(255,90,20,.4);
  color: var(--lava); font-size: 12px; font-weight: 600;
  transition: all .15s; user-select: none; white-space: nowrap;
}
.file-upload-btn:hover { background: rgba(255,90,20,.22); border-color: var(--lava); }
.file-upload-btn input[type="file"] { display: none; }

input[type="file"]::file-selector-button {
  padding: 6px 14px; border-radius: 6px; border: 1px solid rgba(255,90,20,.4);
  background: rgba(255,90,20,.12); color: var(--lava); font-size: 12px; font-weight: 600;
  cursor: pointer; margin-right: 10px; transition: all .15s;
}
input[type="file"]::file-selector-button:hover {
  background: rgba(255,90,20,.22); border-color: var(--lava);
}
[data-theme="light"] input[type="file"]::file-selector-button {
  background: rgba(0,136,204,.1); border-color: rgba(0,136,204,.4); color: var(--lava);
}
[data-theme="light"] input[type="file"]::file-selector-button:hover {
  background: rgba(0,136,204,.2); border-color: var(--lava);
}
[data-theme="light"] .file-upload-btn {
  background: rgba(0,136,204,.1); border-color: rgba(0,136,204,.4); color: var(--lava);
}
[data-theme="light"] .file-upload-btn:hover {
  background: rgba(0,136,204,.2); border-color: var(--lava);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; top: calc(80px + env(safe-area-inset-top,0px)); left: 0; right: 0;
    background: rgba(11,12,16,.98); border-bottom: 1px solid var(--border);
    padding: .75rem .75rem; z-index: 99;
  }
  .site-nav.open a { padding: 9px 12px; border-radius: var(--r); }
  .nav-burger { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .col-main { border-right: none; padding-inline: 18px; }
  .col-side  { padding-inline: 18px; background: none; border-top: 1px solid var(--border); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand-col { grid-column: 1 / -1; }
  .page-head { padding-inline: 18px; }
  .wrap { padding-inline: 14px; }
  .hero { padding: 36px 14px 30px; }
  .hero-logo { width: min(200px, 70vw); }
  .hero-title { font-size: clamp(.9rem, 2.8vw, 1.3rem); }
  .hero-sub { font-size: 14px; }
  .tl-entry .tl-actions { flex-wrap: wrap; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .nav-auth-name { display: none; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; align-items: flex-start; }
  .footer-legal { margin-left: 0; }
  .footer-desc { max-width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-logo { width: min(160px, 65vw); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 12px 14px; }
  .stat-num { font-size: 18px; }
  .col-main { padding: 18px 14px 28px; }
  .col-side  { padding: 18px 14px 28px; }
  .tl-banner { height: 90px; padding: 0 12px; }
  .tl-rank-badge { width: 28px; height: 28px; font-size: 9px; margin-right: 10px; }
  .tl-banner-title { font-size: 14px; }
  .tl-banner-creator, .tl-banner-genre { font-size: 11px; }
  .tl-vote-btn { font-size: 11px; padding: 5px 10px; }
  .news-item { gap: 10px; }
  .news-summary { display: none; }
  .nf-img { height: 160px; }
  .nf-body { padding: 18px; }
  .nf-title { font-size: 19px; }
  .ng-grid { grid-template-columns: 1fr; }
  .ng-teaser { display: none; }
  .gf-wrap { grid-template-columns: 1fr; }
  .gf-cover-img { min-height: 160px; max-height: 240px; }
  .gdb-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════
   FORUM
   ═══════════════════════════════════════════════════════ */

/* Category blocks */
/* Forum-Index: Zweispaltiges Layout */
.forum-index-layout {
  display: grid;
  grid-template-columns: 1fr 272px;
  gap: 28px;
  align-items: start;
}
.forum-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.forum-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Sidebar-Panels */
.fsb-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.fsb-head {
  background: linear-gradient(90deg, rgba(255,90,20,.18) 0%, rgba(255,90,20,.04) 100%);
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  font-family: var(--font-d); font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--lava);
  display: flex; align-items: center; gap: 7px;
}
.fsb-list { list-style: none; margin: 0; padding: 0; }
.fsb-list li { border-bottom: 1px solid var(--border); }
.fsb-list li:last-child { border-bottom: none; }
.fsb-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; text-decoration: none;
  transition: background .15s;
}
.fsb-item:hover { background: var(--panel-2); }
.fsb-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 1px solid var(--border);
}
.fsb-av-letter {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,90,20,.18); color: var(--lava);
  font-size: 11px; font-weight: 700;
}
.fsb-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fsb-title {
  font-size: 12px; color: var(--text); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.fsb-item:hover .fsb-title { color: var(--lava); }
.fsb-meta { font-size: 10px; color: var(--muted); }
.fsb-empty { padding: 10px 14px; font-size: 12px; color: var(--muted); }

/* Mobile: Sidebar unter Hauptinhalt */
@media (max-width: 900px) {
  .forum-index-layout { grid-template-columns: 1fr; }
}

.forum-wrap:not(.forum-index-layout) { display: flex; flex-direction: column; gap: 28px; }
.forum-category { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.forum-category-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  background: linear-gradient(90deg, rgba(255,90,20,.08) 0%, transparent 80%);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.forum-category-header:hover { background: linear-gradient(90deg, rgba(255,90,20,.13) 0%, transparent 80%); }
.forum-category-title { font-family: var(--font-d); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lava); }
.forum-category-desc { font-size: 12px; color: var(--muted); flex: 1; }
.forum-cat-toggle {
  margin-left: auto; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,90,20,.12); border: 1px solid rgba(255,90,20,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--lava); font-size: 10px;
  transition: background .15s, border-color .15s;
}
.forum-category-header:hover .forum-cat-toggle { background: rgba(255,90,20,.22); border-color: var(--lava); }

/* Forum rows */
.forum-row {
  display: grid;
  grid-template-columns: 48px 1fr 130px 200px;
  align-items: center;
  gap: 0 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: rgba(255,255,255,.025); }
.forum-row--unread .forum-name { color: var(--lava-hi); }
.forum-icon {
  position: relative;
  font-size: 20px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.forum-unread-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lava);
}
.forum-name { font-family: var(--font-d); font-size: 14px; font-weight: 700; color: var(--fg); text-decoration: none; }
.forum-name:hover { color: var(--key); }
.forum-desc { font-size: 12px; color: var(--muted); margin-top: 3px; }
.forum-subforums { margin-top: 5px; font-size: 11px; color: var(--muted); }
.forum-sub-link { color: var(--key); text-decoration: none; }
.forum-sub-link:hover { text-decoration: underline; }
.forum-stats { display: flex; gap: 18px; justify-content: center; }
.forum-stat { display: flex; flex-direction: column; align-items: center; width: 55px; flex-shrink: 0; }
.forum-stat-num { font-family: var(--font-d); font-size: 14px; font-weight: 700; color: var(--fg); }
.forum-stat-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.forum-last { text-align: right; overflow: hidden; min-width: 0; }
.forum-last-post { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.forum-last-meta { display: flex; gap: 8px; justify-content: flex-end; font-size: 11px; }
.forum-last-author { color: var(--key); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; text-decoration: none; }
.forum-last-author:hover { text-decoration: underline; }
.forum-last-date { color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.forum-last-title { font-size: 12px; color: var(--muted); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-last-title:hover { color: var(--fg); }
.forum-last-empty { font-size: 12px; color: var(--muted); }
.forum-empty, .forum-empty-global { padding: 24px 18px; color: var(--muted); font-size: 14px; }

/* Topic list */
.topic-list { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.topic-list-header {
  display: grid;
  grid-template-columns: 36px 1fr 80px 80px 160px;
  gap: 0 12px;
  padding: 9px 18px;
  font-family: var(--font-d); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.topic-list-header-icon { display: block; }
.topic-list-header .topic-col-replies,
.topic-list-header .topic-col-views { text-align: center; }
.topic-list-header .topic-col-last   { text-align: right; }

.topic-row {
  display: grid;
  grid-template-columns: 36px 1fr 80px 80px 160px;
  align-items: center;
  gap: 0 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
  position: relative;
}
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: rgba(255,255,255,.025); }

/* Farbige linke Randmarkierung */
.topic-row--pinned       { background: rgba(60,182,255,.03); border-left: 3px solid rgba(60,182,255,.35); padding-left: 15px; }
.topic-row--announcement { background: rgba(255,90,20,.04);  border-left: 3px solid rgba(255,90,20,.45);  padding-left: 15px; }
.topic-row--unread .topic-title { font-weight: 700; color: var(--text); }

/* Icon-Bereich */
.topic-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 13px; flex-shrink: 0;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
}
.topic-row--announcement .topic-icon { background: rgba(255,90,20,.1); border-color: rgba(255,90,20,.2); }
.topic-row--pinned       .topic-icon { background: rgba(60,182,255,.1); border-color: rgba(60,182,255,.2); }

.topic-info { min-width: 0; }
.topic-prefix {
  display: inline-block; padding: 1px 7px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 3px; margin-right: 6px; vertical-align: middle;
  line-height: 18px; flex-shrink: 0;
}
.topic-title {
  font-size: 14px; font-weight: 500;
  color: var(--text); text-decoration: none;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .12s;
}
.topic-title:hover { color: var(--lava); }
.topic-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-size: 11px; color: var(--muted); flex-wrap: wrap;
}
a.topic-author { color: var(--lava-hi); font-weight: 600; text-decoration: none; }
a.topic-author:hover { color: var(--key-hi); text-decoration: underline; }

.topic-badge {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 3px;
  font-family: var(--font-d); font-size: 9px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(60,182,255,.12); color: var(--key);
}
.topic-badge.badge-announce { background: rgba(255,90,20,.15); color: var(--lava); }
.topic-badge.badge-locked   { background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--border); }

/* Stats-Spalten */
.topic-col-replies, .topic-col-views {
  text-align: center;
  font-family: var(--font-d); font-size: 15px; font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.topic-col-last { font-size: 11px; }
.topic-last { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.topic-last-by { color: var(--lava-hi); font-weight: 600; text-decoration: none; font-size: 12px; }
a.topic-last-by:hover { text-decoration: underline; }
.topic-last-date { color: var(--muted); font-size: 11px; }

/* Post entries */
.post-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--panel);
}
.post-author {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 12px;
  background: rgba(255,255,255,.02);
  border-right: 1px solid var(--border);
  text-align: center;
  gap: 4px;
}
.post-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; margin-bottom: 8px;
  border: 2px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  background: var(--steel-start);
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-avatar-letter {
  font-family: var(--font-d); font-size: 22px; font-weight: 900;
  color: var(--lava); line-height: 1;
}
.post-author-name { font-family: var(--font-d); font-size: 13px; font-weight: 700; color: var(--fg); text-decoration: none; display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-author-name:hover { color: var(--key); }
a.post-avatar { text-decoration: none; cursor: pointer; }
.post-author-rank  { font-size: 10px; font-weight: 700; letter-spacing:.04em; }
.post-author-title { font-size: 11px; color: var(--muted); font-style: italic; }

/* Gruppen-Badge im Post */
.post-author-group { font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; padding:2px 8px; border-radius:3px; border:1px solid; }
.post-author-group--benutzer     { color:#6b7280; border-color:#6b728055; background:#6b728015; }
.post-author-group--mitglied     { color:#3cb6ff; border-color:#3cb6ff55; background:#3cb6ff15; }
.post-author-group--moderator    { color:#22c55e; border-color:#22c55e55; background:#22c55e15; }
.post-author-group--administrator{ color:#ff5a14; border-color:#ff5a1455; background:#ff5a1415; }

/* Meta-Zeilen (Beiträge, Datum, Discord…) */
.post-author-meta     { margin-top:6px; display:flex; flex-direction:column; gap:3px; width:100%; }
.post-author-meta-row { display:flex; align-items:center; gap:5px; font-size:10px; color:var(--muted); justify-content:center; }
.post-author-meta-row i { width:12px; text-align:center; flex-shrink:0; }

.post-body { display: flex; flex-direction: column; min-width: 0; }
.post-header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,.015);
}
.post-edited { font-size: 11px; font-style: italic; }
.post-anchor { margin-left: auto; color: var(--muted); text-decoration: none; font-family: var(--font-d); font-size: 11px; }
.post-anchor:hover { color: var(--key); }
.post-content { padding: 16px; font-size: 14px; line-height: 1.7; flex: 1; }
.post-content .bb-quote,
.post-content blockquote:not([class]) {
  border-left: 3px solid var(--lava);
  background: rgba(255,255,255,.04);
  padding: 10px 14px;
  margin: 10px 0;
  border-radius: 0 4px 4px 0;
}
.post-content .bb-quote cite,
.post-content blockquote:not([class]) cite { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-style: normal; font-weight: 700; }
.post-content .bb-code {
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
  font-size: 12px;
}
.post-content .bb-img { max-width: 100%; border-radius: 4px; }
.post-content ul,
.post-content ol,
.post-content .bb-list { margin: 8px 0 8px 1.4em; padding-left: 1.2em; }
.post-content li { margin-bottom: 3px; }
.news-body ul, .news-body ol { padding-left: 24px; margin: 6px 0 6px 0; }
.news-body li { margin-bottom: 4px; }
.post-signature {
  padding: 10px 16px 10px;
  border-top: 1px dashed var(--border-hi);
  margin-top: 12px;
}
[data-theme="light"] .post-signature { border-top-color: var(--border-hi); }
.post-sig-text { font-size: 11px; color: var(--muted); white-space: pre-wrap; word-break:break-word; }
.post-sig-img  { max-width: 800px; max-height: 150px; object-fit:contain; display:block; margin-top:4px; border-radius:4px; width:100%; }
.post-actions {
  display: flex; gap: 12px; padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.post-action {
  font-size: 12px; color: var(--muted); background: none; border: none;
  cursor: pointer; text-decoration: none; padding: 0;
  font-family: var(--font-u);
  transition: color .15s;
}
.post-action:hover { color: var(--key); }
.post-action--danger:hover { color: var(--lava); }

/* BBCode toolbar */
.bb-editor {
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .15s;
}
.bb-editor:focus-within { border-color: var(--key); }
.bb-toolbar {
  display: flex; gap: 4px; padding: 6px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  border-radius: var(--r) var(--r) 0 0;
  transition: border-bottom-color .15s;
}
.bb-editor:focus-within .bb-toolbar { border-bottom-color: var(--key); }
.bb-btn {
  padding: 3px 8px; border-radius: 3px;
  background: var(--panel-3); border: 1px solid var(--border);
  color: var(--fg); font-size: 13px; cursor: pointer;
  transition: background .12s;
}
.bb-btn:hover { background: var(--panel-3); border-color: var(--border-hi); }
.bb-btn.active { background: rgba(255,90,20,.2); border-color: var(--lava); color: var(--lava); }

/* Quill WYSIWYG-Editor */
.quill-wrap {
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; transition: border-color .15s;
}
.quill-wrap:focus-within { border-color: var(--key); }
.ql-toolbar.ql-snow {
  background: rgba(255,255,255,.03);
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 6px 8px;
}
.ql-container.ql-snow {
  border: none !important;
  background: rgba(255,255,255,.02);
  color: var(--fg);
  font-family: var(--font-u); font-size: 14px; line-height: 1.65;
}
.ql-editor { min-height: 120px; padding: 12px 14px; }
.ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }
/* Quill SVG-Icons auf sinnvolle Größe begrenzen */
.ql-toolbar.ql-snow .ql-formats button,
.ql-toolbar.ql-snow .ql-formats { line-height: normal; }
.ql-toolbar.ql-snow svg { width: 18px !important; height: 18px !important; vertical-align: middle; }
/* Toolbar-Buttons hell machen */
.ql-snow .ql-stroke { stroke: var(--muted); }
.ql-snow .ql-fill  { fill:   var(--muted); }
.ql-snow .ql-picker-label { color: var(--muted); }
.ql-snow .ql-picker-options { background: var(--panel); border-color: var(--border); }
.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected { color: var(--fg); }
.ql-snow button:hover .ql-stroke,
.ql-snow .ql-active .ql-stroke { stroke: var(--lava); }
.ql-snow button:hover .ql-fill,
.ql-snow .ql-active .ql-fill  { fill:   var(--lava); }
.ql-snow .ql-tooltip { background: var(--panel); border-color: var(--border); color: var(--fg); }
.ql-snow .ql-tooltip input { background: rgba(255,255,255,.05); color: var(--fg); border-color: var(--border); }
/* Editor-Footer mit HTML-Toggle */
.editor-footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  padding: 5px 8px; display: flex; gap: 6px;
}
/* Quell-Textarea */
.quill-src {
  width: 100%; box-sizing: border-box;
  background: rgba(0,0,0,.2); color: var(--fg);
  border: none; border-radius: 0;
  padding: 12px 14px; resize: vertical;
}

/* Forms */
.forum-form { display: flex; flex-direction: column; gap: 16px; }
.forum-field { display: flex; flex-direction: column; gap: 6px; }
.forum-field label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.forum-input {
  padding: 10px 12px; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--r);
  color: var(--fg); font-family: var(--font-u); font-size: 14px;
  outline: none; transition: border-color .15s;
}
.forum-input:focus { border-color: var(--key); }
.forum-textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px; background: rgba(255,255,255,.04);
  border: none;
  border-radius: 0 0 var(--r) var(--r);
  color: var(--fg); font-family: var(--font-u); font-size: 14px;
  resize: vertical; line-height: 1.5; outline: none;
}

/* Quick reply */
.quick-reply-box {
  margin-top: 24px; padding: 18px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
}
.quick-reply-title {
  font-family: var(--font-d); font-size: 13px; font-weight: 700;
  color: var(--lava); margin-bottom: 12px;
}

/* Guest note */
.forum-guest-note {
  margin-top: 20px; padding: 14px 18px;
  background: rgba(60,182,255,.07); border: 1px solid rgba(60,182,255,.2);
  border-radius: var(--r); font-size: 14px; color: var(--muted);
}
.forum-guest-note a { color: var(--key); }

/* Messages */
.forum-msg {
  padding: 10px 14px; border-radius: var(--r); font-size: 13px;
  background: rgba(255,90,20,.12); border: 1px solid rgba(255,90,20,.3); color: var(--lava-hi);
}
.forum-msg--success {
  background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.3); color: #5eead4;
}

/* Pagination */
.pagination {
  display: flex; align-items: center; gap: 5px;
  margin: 16px 0; flex-wrap: wrap;
}
.page-info { font-size: 13px; color: var(--muted); margin: 0 6px; }
.pgn-btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  font: 700 12px/1 var(--font-d); letter-spacing: .04em;
  text-decoration: none; user-select: none;
  border: 1px solid var(--border);
  color: var(--muted);
  background: linear-gradient(180deg, var(--panel-3) 0%, var(--panel-2) 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
  transition: background .12s, border-color .15s, color .12s, box-shadow .15s;
  cursor: pointer;
}
.pgn-btn:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: linear-gradient(180deg, var(--panel-3) 0%, var(--panel-2) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.07);
}
.pgn-btn.pgn-active {
  background: var(--lava-grad);
  border-color: var(--lava);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,90,20,.4), 0 3px 10px rgba(255,90,20,.3);
  cursor: default;
}
.pgn-btn.pgn-disabled {
  opacity: .3; cursor: default; pointer-events: none;
}
.pgn-ellipsis {
  color: var(--muted); font-size: 14px; padding: 0 2px;
  line-height: 36px; letter-spacing: .05em;
}
[data-theme="light"] .pgn-btn {
  background: linear-gradient(180deg, #fff 0%, #f0ede8 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.8);
  color: var(--muted);
}
[data-theme="light"] .pgn-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #e8e4de 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.9);
  color: var(--text);
}
[data-theme="light"] .pgn-btn.pgn-active {
  background: var(--lava-grad);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0,136,204,.4), 0 3px 10px rgba(0,136,204,.25);
}

/* Responsive forum */
@media (max-width: 900px) {
  .forum-row { grid-template-columns: 40px 1fr; }
  .forum-stats, .forum-last { display: none; }
  .topic-list-header { grid-template-columns: 1fr; }
  .topic-row { grid-template-columns: 32px 1fr; }
  .topic-col-replies, .topic-col-views, .topic-col-last { display: none; }
  .post-entry { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; justify-content: flex-start; padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .post-avatar { width: 40px; height: 40px; margin-bottom: 0; margin-right: 10px; flex-shrink: 0; }
}

/* ===== Phase 5: Reactions ===== */
.post-reactions { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; padding:10px 16px 12px; border-top:1px solid var(--border); }
.reaction-btn { background:var(--panel); border:1px solid var(--border); border-radius:20px; padding:3px 10px 3px 8px; font-size:13px; line-height:1; cursor:pointer; color:var(--muted); transition:border-color .15s, color .15s, background .15s; display:inline-flex; align-items:center; gap:4px; height:28px; vertical-align:middle; }
.reaction-btn:hover { border-color:var(--key); color:var(--key); }
.reaction-btn.active { background:rgba(60,182,255,.12); border-color:var(--key); color:var(--key); }
.reaction-btn .emoji { font-size:16px; line-height:1; display:inline-block; }
.reaction-count { font-size:11px; font-family:var(--font-d); font-weight:700; line-height:1; }

/* ===== Phase 5: Notifications ===== */
.nav-notif { position:relative; color:var(--muted); font-size:16px; padding:4px 8px; display:flex; align-items:center; }
.nav-notif:hover { color:var(--key); }
.nav-notif-badge { position:absolute; top:-2px; right:-4px; background:var(--lava); color:#fff; font-size:9px; font-family:var(--font-d); font-weight:800; min-width:16px; height:16px; border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 4px; }
.nav-notif-badge[hidden] { display:none !important; }
[hidden] { display:none !important; }
.notif-list { display:flex; flex-direction:column; gap:8px; }
.notif-item { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:12px 16px; display:flex; gap:12px; align-items:flex-start; }
.notif-item.unread { border-color:var(--key); background:rgba(60,182,255,.06); }
.notif-icon { color:var(--key); font-size:16px; flex-shrink:0; margin-top:2px; }
.notif-icon--warn { color:#fb923c; }
.notif-item.unread .notif-icon--warn { color:#fb923c; }
.notif-body { flex:1; min-width:0; }
.notif-title { font-size:13px; color:var(--fg); margin-bottom:2px; }
.notif-title a { color:var(--key); }
.notif-meta { font-size:11px; color:var(--muted); }
.btn-notif-action {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:5px; font-size:11px; font-weight:600;
  text-decoration:none; border:1px solid var(--border);
  color:var(--muted); background:rgba(255,255,255,.04);
  transition:background .12s, border-color .12s;
}
.btn-notif-action:hover { background:rgba(255,255,255,.09); border-color:var(--key); color:var(--text); }

/* ===== BBCode mention ===== */
.bb-mention { color:var(--key); font-weight:600; }
.bb-mention:hover { text-decoration:underline; }

/* === Private Messages === */
.conv-list { display:flex; flex-direction:column; gap:6px; }
.conv-item { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:12px 16px; display:flex; gap:12px; align-items:center; text-decoration:none; color:inherit; transition:border-color .15s; }
.conv-item:hover { border-color:var(--key); }
.conv-item.unread { border-color:var(--lava); background:rgba(255,90,20,.05); }
.conv-avatar { width:42px; height:42px; border-radius:50%; background:var(--steel); display:flex; align-items:center; justify-content:center; font-family:var(--font-d); font-weight:800; font-size:16px; flex-shrink:0; overflow:hidden; }
.conv-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.conv-body { flex:1; min-width:0; }
.conv-name { font-weight:700; font-size:14px; margin-bottom:2px; }
.conv-preview { font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conv-meta { font-size:11px; color:var(--muted); white-space:nowrap; }
.pm-thread { display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.pm-msg { display:flex; gap:10px; align-items:flex-start; }
.pm-msg.mine { flex-direction:row-reverse; }
.pm-msg.mine .pm-bubble { background:rgba(60,182,255,.12); border-color:var(--key); }
/* Breite wird am Container begrenzt – die Blase wächst mit ihrem Text */
.pm-body { display:flex; flex-direction:column; align-items:flex-start; max-width:70%; min-width:0; }
.pm-msg.mine .pm-body { align-items:flex-end; }
.pm-bubble { background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:10px 14px; max-width:100%; overflow-wrap:anywhere; }
.pm-sender { font-size:11px; color:var(--muted); margin-bottom:4px; }
.pm-text { font-size:14px; line-height:1.6; }
.pm-text img { max-width:100%; height:auto; }
.pm-text pre { white-space:pre-wrap; }
@media(max-width:600px) { .pm-body { max-width:85%; } }

/* === Moderation === */
.mod-toolbar { display:flex; gap:6px; padding-top:8px; border-top:1px solid var(--border); margin-top:8px; flex-wrap:wrap; }
.mod-btn { background:transparent; border:1px solid var(--border); color:var(--muted); padding:4px 8px; border-radius:6px; font-size:11px; cursor:pointer; text-decoration:none; transition:all .15s; display:inline-flex; align-items:center; gap:4px; }
.mod-btn:hover { border-color:var(--lava); color:var(--lava); }
.mod-btn.danger:hover { background:rgba(255,90,20,.1); }
.mod-log-table { width:100%; border-collapse:collapse; font-size:13px; }
.mod-log-table th { text-align:left; padding:8px 12px; border-bottom:1px solid var(--border-hi); font-family:var(--font-d); font-size:10px; letter-spacing:.08em; color:var(--muted); }
.mod-log-table td { padding:8px 12px; border-bottom:1px solid var(--border); vertical-align:top; }
.mod-action-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:10px; font-family:var(--font-d); font-weight:700; background:var(--panel); border:1px solid var(--border); }
.topic-row--deleted { opacity:.55; }
.topic-row--deleted .topic-title { text-decoration:line-through; color:var(--muted); }
.post-entry--deleted .post-content { display:none; }
.post-entry--deleted .post-body::before { content:'[Beitrag gelöscht]'; color:var(--muted); font-style:italic; font-size:13px; display:block; padding:12px 0; }
.forum-select { background:var(--panel); border:1px solid var(--border); color:var(--fg); border-radius:6px; padding:6px 10px; font-size:13px; font-family:var(--font-u); }

/* === Attachments === */
.post-attach-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:0; padding:0 16px 14px; }
.attach-item { background:var(--panel); border:1px solid var(--border); border-radius:6px; padding:6px 10px; display:flex; align-items:center; gap:8px; font-size:12px; text-decoration:none; color:var(--fg); transition:border-color .15s; }
.attach-item:hover { border-color:var(--key); }
.attach-img-wrap { margin-top:10px; }
.attach-img-wrap img { max-width:100%; max-height:400px; border-radius:6px; display:block; }

/* === Polls === */
.poll-box { background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:18px 20px; margin-bottom:20px; }
.poll-question { font-family:var(--font-d); font-size:15px; font-weight:700; margin-bottom:14px; }
.poll-choices { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.poll-choice-bar { position:relative; background:var(--bg); border:1px solid var(--border); border-radius:6px; height:36px; overflow:hidden; }
.poll-choice-fill { position:absolute; left:0; top:0; height:100%; background:linear-gradient(90deg, rgba(60,182,255,.25), rgba(60,182,255,.08)); transition:width .4s; }
.poll-choice-label { position:relative; z-index:1; padding:0 12px; line-height:36px; font-size:13px; display:flex; justify-content:space-between; align-items:center; }
.poll-choice-pct { font-family:var(--font-d); font-size:11px; color:var(--key); flex-shrink:0; }
.poll-choice-bar.voted { border-color:var(--key); background:rgba(60,182,255,.06); }
.poll-footer { font-size:12px; color:var(--muted); display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; }
.poll-editor .forum-input { width:100%; }

/* === Search === */
.forum-search-form { display:flex; gap:6px; }
.forum-search-input { background:var(--panel); border:1px solid var(--border); color:var(--fg); padding:6px 12px; border-radius:6px; font-size:13px; min-width:0; }
.forum-search-input:focus { outline:none; border-color:var(--key); }
.search-results { display:flex; flex-direction:column; gap:8px; }
.search-result { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:12px 16px; transition:border-color .15s; }
.search-result:hover { border-color:var(--key); }
.search-result-title { font-weight:700; font-size:14px; margin-bottom:4px; }
.search-result-title a { text-decoration:none; color:var(--fg); }
.search-result-title a:hover { color:var(--key); }
.search-result-excerpt { font-size:12px; color:var(--muted); line-height:1.6; margin-bottom:4px; }
.search-result-meta { font-size:11px; color:var(--muted); }
mark { background:rgba(255,165,24,.3); color:var(--fg); border-radius:2px; padding:0 2px; }
.search-section-title { font-family:var(--font-d); font-size:11px; letter-spacing:.1em; color:var(--muted); margin:16px 0 8px; text-transform:uppercase; }

/* === Online Box === */
.online-box { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:14px 18px; margin-top:20px; }
.online-title { font-family:var(--font-d); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.online-users { font-size:13px; margin-bottom:6px; }
.online-user { color:var(--key); text-decoration:none; }
.online-user:hover { text-decoration:underline; }
.online-meta { font-size:11px; color:var(--muted); }
.forum-stats-bar { display:flex; flex-wrap:wrap; gap:16px; padding:12px 0; font-size:12px; color:var(--muted); border-top:1px solid var(--border); margin-top:12px; }
.forum-stats-bar a { color:var(--key); text-decoration:none; }

/* === Download Center === */
.dl-vault-hint {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; margin-bottom: 22px;
  background: rgba(60,182,255,.05);
  border: 1px solid rgba(60,182,255,.35);
  border-radius: 10px; text-decoration: none;
  animation: vault-shimmer 2.8s ease-in-out infinite;
  transition: background .15s;
}
.dl-vault-hint:hover {
  background: rgba(60,182,255,.12);
  border-color: var(--key-hi);
  box-shadow: 0 0 22px rgba(60,182,255,.45), inset 0 0 16px rgba(60,182,255,.08);
  animation: none;
}
.dl-vault-icon {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  background: rgba(60,182,255,.15); border: 1px solid rgba(60,182,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--key-hi);
  box-shadow: 0 0 10px rgba(60,182,255,.25);
}
.dl-vault-title {
  display: block; font: 700 14px/1.2 var(--font-u);
  color: var(--key-hi); margin-bottom: 3px;
  text-shadow: 0 0 12px rgba(60,182,255,.4);
}
.dl-vault-sub { display: block; font-size: 12px; color: var(--muted); }

.dl-filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.dl-search-wrap {
  flex: 1; min-width: 200px; position: relative;
}
.dl-search-wrap svg, .dl-search-wrap .dl-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 13px; pointer-events: none; width: 13px; height: 13px; z-index: 1;
}
.dl-search-input {
  width: 100%; box-sizing: border-box;
  padding: 8px 12px 8px 36px; background: rgba(255,255,255,.05);
  border: 1px solid var(--border); border-radius: var(--r); color: var(--fg);
  font-size: 14px; outline: none; transition: border-color .15s;
}
.dl-search-input:focus { border-color: var(--key); }
.dl-select {
  padding: 8px 12px; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--fg); font-size: 13px; outline: none; cursor: pointer;
}
.dl-select option { background: #1a1c22; }

.dl-category { margin-bottom: 32px; }
.dl-cat-header {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding: 10px 0; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.dl-cat-header i { color: var(--lava); font-size: 14px; }
.dl-cat-header span:first-of-type { color: var(--fg); font-size: 13px; font-weight: 700; }
.dl-cat-desc { font-weight: 400; }
.dl-cat-count { margin-left: auto; background: rgba(255,255,255,.07); border-radius: 20px; padding: 2px 10px; font-size: 10px; }

.dl-view-toggle { display:flex; gap:6px; }
.dl-view-btn { padding:6px 10px; border:1px solid var(--border); border-radius:var(--r); background:transparent; color:var(--muted); cursor:pointer; font-size:13px; transition:all .15s; }
.dl-view-btn.active, .dl-view-btn:hover { border-color:var(--key); color:var(--key); background:rgba(255,90,20,.07); }

.dl-entries { display: flex; flex-direction: column; gap: 10px; }
.dl-entries.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* === dl-visual: einziges visuelles Element pro Karte === */
/* LIST: kompaktes Icon-Kästchen links */
.dl-visual {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px;
  background: rgba(255,90,20,.1); border: 1px solid rgba(255,90,20,.25);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; color: var(--lava);
}
.dl-visual-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 7px;
}
.dl-visual-icon { font-size: 22px; }

/* GRID: Bild/Placeholder als volle Breite oben */
.dl-entries.grid-view .dl-visual {
  width: 100%; height: 180px; border-radius: 7px 7px 0 0; border: none;
  border-bottom: 1px solid var(--border); font-size: 44px;
}
.dl-entries.grid-view .dl-visual-img { border-radius: 7px 7px 0 0; }

/* === Karte === */
.dl-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; transition: border-color .15s; overflow: hidden;
}
.dl-card:hover { border-color: var(--border-hi); }

/* Grid-Karte */
.dl-entries.grid-view .dl-card { flex-direction: column; padding: 0; gap: 0; }
.dl-entries.grid-view .dl-card-body  { padding: 12px 14px 0; }
.dl-entries.grid-view .dl-card-action { flex-direction: row; align-items: center; padding: 10px 14px 14px; width: 100%; box-sizing: border-box; }
.dl-entries.grid-view .dl-dl-count { margin-right: auto; }
.dl-card-body { flex: 1; min-width: 0; }
.dl-card-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.dl-card-desc { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.dl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--muted); white-space: nowrap;
}
.dl-tag--engine { border-color: rgba(99,102,241,.4); color: #a5b4fc; background: rgba(99,102,241,.08); }
.dl-tag--type   { border-color: rgba(20,184,166,.4); color: #5eead4; background: rgba(20,184,166,.08); }
.dl-tag--license{ border-color: rgba(34,197,94,.4);  color: #86efac; background: rgba(34,197,94,.08); }

.dl-card-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.dl-dl-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.dl-btn { white-space: nowrap; padding: 7px 16px; font-size: 13px; }

@media (max-width: 600px) {
  .dl-card { flex-wrap: wrap; }
  .dl-card-action { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; }
}

/* === Kontakt-Seite === */
.kontakt-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
.kontakt-info {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.kontakt-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.kontakt-info-item:first-of-type { padding-top: 0; }
.kontakt-info-item i { font-size: 18px; margin-top: 2px; flex-shrink: 0; width: 20px; text-align: center; }
.kontakt-info-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.kontakt-info-item span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.kontakt-form-wrap { min-width: 0; }
@media (max-width: 720px) {
  .kontakt-layout { grid-template-columns: 1fr; }
}

/* === Forum Statistik-Panel === */
.forum-stats-panel { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:18px 20px; margin-bottom:20px; }
.forum-stats-title { font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--fg); margin-bottom:14px; }
.forum-stats-grid  { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; margin-bottom:14px; }
.forum-stat-card   { background:var(--panel-2); border:1px solid var(--border); border-radius:6px; padding:10px 12px; text-align:center; }
.fsc-num  { display:block; font-size:22px; font-weight:800; color:var(--lava); font-variant-numeric:tabular-nums; line-height:1.1; }
.fsc-lbl  { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.forum-stats-meta { display:flex; flex-wrap:wrap; gap:12px 20px; font-size:12px; color:var(--muted); border-top:1px solid var(--border); padding-top:12px; }
.forum-stats-meta a { color:var(--key); text-decoration:none; }
.forum-stats-meta a:hover { text-decoration:underline; }

/* === ACP === */
.acp-wrap { display:grid; grid-template-columns:200px 1fr; gap:24px; align-items:start; }
@media(max-width:600px){ .acp-wrap { grid-template-columns:1fr; } }
.acp-sidebar { background:var(--panel); border:1px solid var(--border); border-radius:8px; overflow:hidden; position:sticky; top:80px; }
.acp-nav-section { padding:8px 0; border-bottom:1px solid var(--border); }
.acp-nav-section:last-child { border-bottom:none; }
.acp-nav-link { display:block; padding:8px 16px; font-size:13px; color:var(--muted); text-decoration:none; transition:all .15s; }
.acp-nav-link:hover, .acp-nav-link.active { background:rgba(255,90,20,.08); color:var(--lava); }
.acp-content { min-width:0; }
.acp-header { border-top:3px solid var(--lava); background:var(--panel); border-radius:8px; padding:16px 20px; margin-bottom:20px; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.acp-title { font-family:var(--font-d); font-size:18px; font-weight:800; }
.acp-stat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:12px; margin-bottom:20px; }
.acp-stat { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:14px; text-align:center; }
.acp-stat-num { font-family:var(--font-d); font-size:24px; font-weight:800; color:var(--key); }
.acp-stat-lbl { font-size:11px; color:var(--muted); margin-top:4px; }
.acp-table { width:100%; border-collapse:collapse; font-size:13px; }
.acp-table th { text-align:left; padding:8px 12px; border-bottom:2px solid var(--border-hi); font-family:var(--font-d); font-size:10px; letter-spacing:.08em; color:var(--muted); text-transform:uppercase; }
.acp-table td { padding:8px 12px; border-bottom:1px solid var(--border); vertical-align:middle; }
.acp-table tr:hover td { background:rgba(255,255,255,.02); }
.acp-badge { display:inline-block; padding:2px 7px; border-radius:10px; font-size:10px; font-family:var(--font-d); font-weight:700; }
.acp-badge.ok { background:rgba(34,197,94,.15); color:#22c55e; }
.acp-badge.warn { background:rgba(255,165,24,.15); color:var(--lava-hi); }
.acp-badge.danger { background:rgba(230,63,90,.15); color:#e63f5a; }
.acp-section-title { font-family:var(--font-d); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; margin-top:4px; }
.acp-quicklink { background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:20px; text-align:center; text-decoration:none; color:var(--fg); display:flex; flex-direction:column; align-items:center; transition:border-color .15s; }
.acp-quicklink:hover { border-color:var(--key); }
.activity-bars { display:flex; align-items:flex-end; gap:8px; height:100px; padding:8px 0; }
.activity-bar-wrap { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; height:100%; }
.activity-bar { width:100%; background:linear-gradient(180deg,var(--key),rgba(60,182,255,.3)); border-radius:3px 3px 0 0; min-height:2px; }
.activity-label { font-size:10px; color:var(--muted); font-family:var(--font-d); }

/* === Profile (redesign) === */
.profile-banner { position:relative; height:150px; overflow:hidden; border-radius:10px 10px 0 0; border:1px solid var(--border); border-bottom:none; margin-top:32px; }
.profile-banner-bg { position:absolute; inset:0; }
.profile-banner-hex { position:absolute; inset:0; opacity:.07; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpolygon points='28,2 54,16 54,44 28,58 2,44 2,16' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); background-size:56px 100px; }
.profile-banner-info { position:absolute; bottom:0; left:0; right:0; padding:16px 20px; background:linear-gradient(to top, rgba(8,9,12,.92), transparent); display:flex; align-items:flex-end; gap:16px; }
.profile-banner-avatar { width:80px; height:80px; border-radius:50%; border:3px solid rgba(255,255,255,.15); overflow:hidden; flex-shrink:0; background:var(--panel); display:flex; align-items:center; justify-content:center; font-family:var(--font-d); font-size:2rem; font-weight:900; }
.profile-banner-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-banner-name { font-family:var(--font-d); font-size:20px; font-weight:900; color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.8); }
.profile-rank-badge { display:inline-flex; align-items:center; gap:4px; padding:2px 10px; border-radius:4px; font-family:var(--font-d); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; border:1px solid currentColor; }
.profile-rank-badge.special::before { content:'★ '; }
.profile-group-badge { display:inline-flex; align-items:center; padding:2px 10px; border-radius:4px; font-family:var(--font-d); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; border:1px solid; }
/* Gruppen-Farben */
.profile-group-badge:not([class*="group-"]) { color:#6b7280; border-color:#6b728055; background:#6b728015; }
[data-group="Benutzer"]      .profile-group-badge,
.profile-group-badge[data-group="Benutzer"]      { color:#6b7280; border-color:#6b728055; background:#6b728015; }
.profile-group-badge[data-group="Mitglied"]      { color:#3cb6ff; border-color:#3cb6ff55; background:#3cb6ff15; }
.profile-group-badge[data-group="Moderator"]     { color:#22c55e; border-color:#22c55e55; background:#22c55e15; }
.profile-group-badge[data-group="Administrator"] { color:#ff5a14; border-color:#ff5a1455; background:#ff5a1415; }
.profile-custom-title { font-size:12px; opacity:.7; margin-top:2px; }
.profile-layout { display:grid; grid-template-columns:200px 1fr; gap:20px; align-items:start; padding:20px 0; background:var(--sect-bg, rgba(17,19,24,.38)); border:1px solid var(--border); border-top:1px solid var(--border-hi); border-radius:0 0 10px 10px; margin-bottom:40px; }
@media(max-width:680px){ .profile-layout { grid-template-columns:1fr; } }
.profile-sidebar { display:flex; flex-direction:column; gap:12px; }
.profile-stat-card { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:14px 16px; }
.profile-stat-row { display:flex; justify-content:space-between; align-items:center; padding:5px 0; border-bottom:1px solid var(--border); font-size:13px; }
.profile-stat-row:last-child { border-bottom:none; }
.profile-stat-lbl { color:var(--muted); }
.profile-stat-val { font-weight:700; color:var(--fg); }
.profile-main { display:flex; flex-direction:column; gap:16px; }
.profile-section2 { background:var(--panel); border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.profile-section2-head { font-family:var(--font-d); font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--lava-hi); padding:10px 16px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.profile-section2-body { padding:14px 16px; }

/* ── Theme-Toggle Icon (CSS-only, kein FA-JS-Konflikt) ── */
.theme-toggle-btn { font-size: 17px; line-height: 1; }
.theme-toggle-btn::before { content: "☾"; }
[data-theme="light"] .theme-toggle-btn::before { content: "☀"; }

/* ── Light: Hex-Grid dunkler Stroke damit sichtbar ──── */
[data-theme="light"] .profile-banner-hex {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpolygon points='28,2 54,16 54,44 28,58 2,44 2,16' fill='none' stroke='%232c3039' stroke-width='1'/%3E%3C/svg%3E");
  opacity: .18;
}

/* ── Theme-Picker Cards ─────────────────────────────── */
.theme-card { position:relative; display:flex; flex-direction:column; gap:8px; padding:12px; border:2px solid var(--border); border-radius:10px; transition:border-color .18s,box-shadow .18s; user-select:none; }
.theme-card:hover { border-color:var(--border-hi); }
.theme-card--active { border-color:var(--key); box-shadow:0 0 0 1px var(--key), 0 0 12px rgba(60,182,255,.25); }
[data-theme="light"] .theme-card--active { box-shadow:0 0 0 1px var(--key), 0 0 12px rgba(212,96,0,.2); }

/* ── Nav-Dropdown ───────────────────────────────────── */
[data-theme="light"] .nav-drop-menu {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
[data-theme="light"] .nav-drop-item { color: var(--text); }
[data-theme="light"] .nav-drop-item i { color: var(--muted); }

/* ── Admin-FAB ──────────────────────────────────────── */
[data-theme="light"] .admin-fab {
  background: linear-gradient(135deg,#fff4ee,#ffe5d0);
  border-color: var(--key);
  color: var(--key);
  box-shadow: 0 4px 16px rgba(200,88,0,.2);
}
[data-theme="light"] .admin-fab:hover {
  background: linear-gradient(135deg,#ffe5d0,#ffd0b0);
  box-shadow: 0 6px 24px rgba(200,88,0,.35);
}

/* ── Forum Sidebar Panels / Shoutbox ────────────────── */
[data-theme="light"] .fsb-av-letter { background: rgba(200,88,0,.1); color: var(--key); }
[data-theme="light"] .shout-head { background: linear-gradient(90deg,rgba(0,136,204,.07),transparent); }
[data-theme="light"] .shout-msg:hover { background: rgba(0,0,0,.03); }
[data-theme="light"] .shout-msg--own { background: rgba(0,136,204,.04); }

/* ── Seiten-Panels (sect, profile-layout) ───────────── */
[data-theme="light"] .sect             { background: var(--panel) !important; }
[data-theme="light"] .profile-layout   { background: var(--panel) !important; }

/* ── Team-Karten ────────────────────────────────────── */
[data-theme="light"] .team-card {
  background:
    linear-gradient(180deg, #ffffff, #f0ece6) padding-box,
    linear-gradient(160deg, #c8cdd7, #a0a8b4 40%, #8d94a3 60%, #c0c7d0) border-box;
  border: 1px solid transparent;
}
[data-theme="light"] .team-card:hover {
  background:
    linear-gradient(180deg, #ffffff, #e8f4fb) padding-box,
    linear-gradient(160deg, var(--lava-hi), var(--lava) 45%, var(--ember)) border-box;
  box-shadow: 0 0 18px rgba(0,136,204,.2), 0 6px 16px rgba(0,0,0,.1);
}
[data-theme="light"] .team-role { color: var(--lava); }
[data-theme="light"] .team-name { color: var(--text); }

/* ── Profil-Banner-Gradient ─────────────────────────── */
[data-theme="light"] .profile-banner-bg {
  background: linear-gradient(135deg, #e8f4fb 0%, #d0e8f5 100%) !important;
}

/* ── Forum Category Header ──────────────────────────── */
[data-theme="light"] .forum-category-header {
  background: linear-gradient(90deg, rgba(0,136,204,.06) 0%, transparent 80%);
}
[data-theme="light"] .forum-category-header:hover {
  background: linear-gradient(90deg, rgba(0,136,204,.10) 0%, transparent 80%);
}
[data-theme="light"] .forum-cat-toggle {
  background: rgba(0,136,204,.10);
  border-color: rgba(0,136,204,.3);
}
[data-theme="light"] .forum-category-header:hover .forum-cat-toggle {
  background: rgba(0,136,204,.18);
  border-color: rgba(0,136,204,.5);
}

/* ── Profil-Banner ──────────────────────────────────── */
[data-theme="light"] .profile-banner-info {
  background: linear-gradient(to top, rgba(255,255,255,.85), transparent);
}
[data-theme="light"] .profile-banner-name { color: #1a1612; text-shadow: 0 1px 4px rgba(255,255,255,.8); }
[data-theme="light"] .profile-banner-avatar { border-color: rgba(0,0,0,.15); }
.theme-card-preview { width:130px; height:80px; border-radius:6px; overflow:hidden; display:flex; flex-direction:column; gap:0; }
.theme-card-preview--dark  { background:#111318; }
.theme-card-preview--light { background:#f0f2f5; }
.tcp-bar { height:12px; background:rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06); }
.theme-card-preview--light .tcp-bar { background:rgba(0,0,0,.06); border-bottom:1px solid rgba(0,0,0,.07); }
.tcp-panel { flex:1; padding:6px 8px; display:flex; flex-direction:column; gap:4px; }
.tcp-line { height:5px; border-radius:3px; background:rgba(255,255,255,.12); }
.theme-card-preview--light .tcp-line { background:rgba(0,0,0,.10); }
.tcp-line--hi  { background:#3cb6ff; width:55%; }
.theme-card-preview--light .tcp-line--hi { background:#d46000; width:55%; }
.tcp-line--short { width:40%; }
.theme-card-label { font-family:var(--font-d); font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); text-align:center; }
.theme-card--active .theme-card-label { color:var(--key); }

/* ── Gemeinsame Formular-Stile (Profil-Settings, Forum-Formulare) ── */
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-grid .form-full { grid-column:1/-1; }
@media(max-width:580px){ .form-grid { grid-template-columns:1fr; } }
.form-field { display:flex; flex-direction:column; gap:4px; }
.form-field > label {
  font-family:var(--font-d); font-size:9px; font-weight:800;
  letter-spacing:.12em; text-transform:uppercase; color:var(--muted);
}
.form-field input:not([type=checkbox]):not([type=file]),
.form-field textarea,
.form-field select {
  background:var(--panel); border:1px solid var(--border);
  border-radius:6px; padding:8px 11px;
  font:500 14px/1.4 var(--font-u); color:var(--text);
  box-shadow:inset 0 1px 3px rgba(0,0,0,.35);
  transition:border-color .15s, box-shadow .15s; width:100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline:none; border-color:var(--lava);
  box-shadow:inset 0 1px 3px rgba(0,0,0,.35), 0 0 0 1px rgba(255,90,20,.3), 0 0 8px rgba(255,90,20,.1);
}
.form-field textarea { resize:vertical; min-height:72px; }
.form-error { font-size:12px; color:#ff6b6b; }
.form-hint  { font-size:11px; color:var(--muted); }
.form-check {
  display:flex; align-items:center; gap:10px;
  padding:9px 12px; border-radius:6px;
  background:var(--panel); border:1px solid var(--border);
  cursor:pointer; transition:background .12s, border-color .12s; user-select:none;
}
.form-check:hover { background:var(--panel-2); border-color:var(--border-hi); }
.form-check input[type=checkbox] { accent-color:var(--lava); width:16px; height:16px; flex-shrink:0; cursor:pointer; }
.form-check-label { font:600 13px/1.2 var(--font-u); color:var(--text); }
.form-check-desc  { font-size:11px; color:var(--muted); margin-top:1px; }

/* Sidebar-Nav (Settings) */
.side-nav {
  background:var(--bg); border:1px solid var(--border); border-radius:8px;
  overflow:hidden; position:sticky; top:calc(env(safe-area-inset-top,0px) + 80px);
}
.side-nav-title {
  font-family:var(--font-d); font-size:9px; font-weight:800;
  letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
  padding:9px 14px 8px; border-bottom:1px solid var(--border);
}
.side-nav a {
  display:flex; align-items:center; gap:9px;
  padding:8px 14px; font-size:13px; font-weight:600;
  color:var(--muted); text-decoration:none;
  border-left:3px solid transparent;
  transition:color .12s, background .12s, border-color .12s;
}
.side-nav a i { width:14px; text-align:center; font-size:11px; flex-shrink:0; }
.side-nav a:hover { color:var(--text); background:rgba(255,255,255,.03); }
.side-nav a.active { color:var(--lava-hi); border-left-color:var(--lava); background:rgba(255,90,20,.06); }

/* Settings-Layout: Sidebar + Sections */
.settings-inner {
  display:grid; grid-template-columns:180px 1fr; gap:20px; align-items:start;
}
@media(max-width:800px){ .settings-inner { grid-template-columns:1fr; } .side-nav { display:none; } }

.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.project-card { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:14px; transition:border-color .15s; }
.project-card:hover { border-color:var(--key); }
.project-name { font-weight:700; font-size:14px; margin-bottom:4px; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.project-engine { font-size:11px; color:var(--muted); margin-bottom:6px; }
.project-desc { font-size:12px; color:var(--muted); line-height:1.5; margin-bottom:10px; }
.project-status { font-size:10px; font-family:var(--font-d); font-weight:700; padding:2px 8px; border-radius:10px; white-space:nowrap; flex-shrink:0; }
.status-wip { background:rgba(255,165,24,.15); color:#ffa524; border:1px solid rgba(255,165,24,.3); }
.status-released { background:rgba(34,197,94,.12); color:#22c55e; border:1px solid rgba(34,197,94,.3); }
.status-hiatus { background:rgba(107,114,128,.15); color:#6b7280; border:1px solid rgba(107,114,128,.3); }
.screenshot-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
@media(max-width:500px){ .screenshot-grid { grid-template-columns:repeat(2,1fr); } }
.screenshot-item { aspect-ratio:16/9; border-radius:6px; overflow:hidden; position:relative; background:var(--panel); }
.screenshot-item img { width:100%; height:100%; object-fit:cover; transition:opacity .2s; }
.screenshot-item:hover img { opacity:.8; }
.screenshot-caption { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top,rgba(0,0,0,.8),transparent); padding:6px 8px; font-size:11px; color:#fff; opacity:0; transition:opacity .2s; }
.screenshot-item:hover .screenshot-caption { opacity:1; }
.screenshot-delete { background:rgba(255,90,20,.85); border:none; color:#fff; border-radius:4px; width:24px; height:24px; cursor:pointer; font-size:10px; align-items:center; justify-content:center; display:flex; }
.profile-add-form summary { cursor:pointer; list-style:none; }
.profile-add-form summary::-webkit-details-marker { display:none; }
.profile-add-form[open] summary { margin-bottom:12px; }
.add-form-inner { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:16px; display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.add-form-inner input, .add-form-inner textarea, .add-form-inner select { background:#0c0d11; border:1px solid var(--border); color:var(--fg); padding:8px 10px; border-radius:5px; font-size:13px; width:100%; font-family:var(--font-u); }
.add-form-inner input:focus, .add-form-inner textarea:focus, .add-form-inner select:focus { outline:none; border-color:var(--lava); }
.recent-posts-list { display:flex; flex-direction:column; gap:4px; }
.recent-post-item { font-size:13px; padding:7px 0; border-bottom:1px solid var(--border); }
.recent-post-item:last-child { border-bottom:none; }
.recent-post-topic { color:var(--fg); text-decoration:none; font-weight:600; }
.recent-post-topic:hover { color:var(--key); }
.recent-post-meta { font-size:11px; color:var(--muted); margin-top:2px; }

/* ── Legal pages ──────────────────────────────────── */
.legal-page { padding: 32px 28px !important; }
.legal-page h2 { font-family:var(--font-d); font-size:14px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--lava-hi); margin:28px 0 10px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.legal-page h2:first-child { margin-top:0; }
.legal-page h3 { font-family:var(--font-d); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:18px 0 6px; }
.legal-page p { font-size:14px; line-height:1.7; color:var(--text); margin-bottom:12px; }
.legal-page ul, .legal-page ol { font-size:14px; line-height:1.7; color:var(--text); margin:0 0 14px 0; padding-left:24px; }
.legal-page li { margin-bottom:5px; }
.legal-page a { color:var(--key); }
.legal-page a:hover { color:var(--key-hi); }
.legal-extra { margin-top:24px; padding-top:20px; border-top:1px solid var(--border); }

/* ── Cookie-Banner ────────────────────────────────── */
#cookie-banner {
  position:fixed; bottom:20px; left:50%; transform:translateX(-50%);
  z-index:9999; max-width:680px; width:calc(100% - 40px);
  background:var(--panel); border:1px solid var(--border-hi);
  border-radius:10px; padding:16px 20px;
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  box-shadow:0 8px 32px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.06);
  backdrop-filter:blur(12px);
}
#cookie-banner p { flex:1; font-size:13px; color:var(--muted); margin:0; line-height:1.5; min-width:200px; }
#cookie-banner p a { color:var(--key); }
#cookie-banner .cookie-btns { display:flex; gap:8px; flex-shrink:0; }

/* ── Anhang: Freigabe ausstehend ─────────────── */
.attach-pending { display:flex; align-items:center; gap:8px; padding:8px 14px; border-radius:6px; background:rgba(245,158,11,.08); border:1px solid rgba(245,158,11,.25); color:#f59e0b; font-size:12px; margin-top:6px; margin-left:0; align-self:flex-start; }

/* ── Shoutbox ─────────────────────────────────────────── */
.shout-box         { background:var(--panel); border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.shout-head        { display:flex; align-items:center; justify-content:space-between; padding:9px 16px; background:linear-gradient(90deg,rgba(255,90,20,.07),transparent); border-bottom:1px solid var(--border); font-family:var(--font-d); font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--fg); }
.shout-status      { font-size:11px; color:var(--danger); font-family:inherit; }
.shout-messages    { height:220px; overflow-y:auto; padding:8px 10px; display:flex; flex-direction:column; gap:4px; }
.shout-msg         { display:flex; align-items:flex-start; gap:8px; padding:4px 6px; border-radius:5px; font-size:12px; transition:background .15s; }
.shout-msg:hover   { background:rgba(255,255,255,.03); }
.shout-msg--own    { background:rgba(60,182,255,.04); }
.shout-msg--own:hover { background:rgba(60,182,255,.08); }
.shout-av          { width:22px; height:22px; border-radius:50%; overflow:hidden; flex-shrink:0; background:rgba(255,255,255,.06); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; }
.shout-av-img      { width:100%; height:100%; object-fit:cover; }
.shout-av-letter   { font-size:10px; font-weight:800; line-height:1; }
.shout-content     { flex:1; min-width:0; display:flex; flex-wrap:wrap; align-items:baseline; gap:5px; }
.shout-name        { font-weight:700; font-size:11px; white-space:nowrap; }
.shout-text        { color:var(--text); word-break:break-word; flex:1; min-width:0; }
.shout-ts          { font-size:10px; color:var(--muted); white-space:nowrap; flex-shrink:0; }
.shout-del         { background:none; border:none; color:var(--muted); cursor:pointer; font-size:14px; line-height:1; padding:0 2px; flex-shrink:0; opacity:.4; transition:opacity .15s; }
.shout-del:hover   { opacity:1; color:var(--danger); }
.shout-input-row   { border-top:1px solid var(--border); background:rgba(0,0,0,.2); }
.shout-input-row form { display:flex; }
#shout-text        { flex:1; background:transparent; border:none; outline:none; padding:9px 12px; font-size:12px; color:var(--text); font-family:inherit; }
#shout-text::placeholder { color:var(--muted); }
.shout-input-row button { background:none; border:none; border-left:1px solid var(--border); padding:0 14px; color:var(--lava); cursor:pointer; font-size:14px; transition:color .15s; }
.shout-input-row button:hover { color:var(--lava-hi); }
.shout-login-hint  { padding:9px 14px; font-size:12px; color:var(--muted); }
.shout-login-hint a { color:var(--key); }

/* ── Flash-Messages ──────────────────────────────────────── */
.site-messages    { display:flex; flex-direction:column; gap:8px; }
.site-msg         { display:flex; align-items:center; gap:10px; padding:10px 16px; border-radius:6px;
                    font-size:13px; border:1px solid transparent; }
.site-msg--error  { background:rgba(230,63,90,.12); border-color:rgba(230,63,90,.3); color:#ff8fa0; }
.site-msg--success{ background:rgba(34,197,94,.1);  border-color:rgba(34,197,94,.3);  color:#6ee89a; }
.site-msg--info, .site-msg--warning { background:rgba(60,182,255,.1); border-color:rgba(60,182,255,.3); color:#7dd3fc; }

/* ── Very small phones (< 400px) ── */
@media (max-width: 400px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .brand-emblem { height: 44px; }
  .wordmark { font-size: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 10px 10px; }
  .btn { padding: 8px 14px; font-size: 12px; }
  .hero-acts { flex-direction: column; align-items: stretch; }
  .hero-acts .btn { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   FORUM — MOBILE FIXES
   ═══════════════════════════════════════════════════════ */

/* Verhindert, dass Flex-/Grid-Kinder Textinhalt über den Container hinausdrücken */
.forum-info    { min-width: 0; overflow: hidden; }
.forum-name    { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.topic-info    { min-width: 0; }

/* Breadcrumb soll umbrechen statt horizontal überzulaufen */
.page-head .breadcrumb { flex-wrap: wrap; }

/* Post-Inhalt: Zeilenumbruch erzwingen, kein horizontales Überlaufen */
.post-content {
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.post-content img    { max-width: 100%; height: auto; }
.post-content table  { width: 100%; overflow-x: auto; display: block; }
.post-mention {
  display: inline-flex; align-items: center;
  color: var(--key-hi); font-weight: 700; font-size: .9em;
  background: rgba(60,182,255,.1); border: 1px solid rgba(60,182,255,.25);
  border-radius: 4px; padding: 0 5px; text-decoration: none; white-space: nowrap;
}
.post-mention:hover { background: rgba(60,182,255,.2); text-decoration: none; }

/* Admin-FAB: Auf Mobile nur Icon zeigen */
@media (max-width: 900px) {
  .admin-fab { padding: 10px 13px; gap: 0; border-radius: 50%; width: 44px; height: 44px; justify-content: center; }
  .admin-fab span { display: none; }
}

/* Forum: Weniger vertikaler Leerraum auf kleinen Screens */
@media (max-width: 600px) {
  .page-head { padding: 18px 14px 14px; margin-top: 16px; }
  .sect { padding-block: 16px; margin-bottom: 24px; }
  .forum-category-header { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
  .forum-category-title  { flex-shrink: 0; }
  .forum-category-desc   { width: 100%; margin-top: 0; }
  .forum-cat-toggle      { margin-left: auto; }
  .forum-row { padding: 10px 12px; gap: 0 10px; }
  .forum-icon { width: 34px; height: 34px; font-size: 16px; }
  .forum-search-form { width: 100%; }
  .forum-search-input { width: 100%; }
  .post-entry { margin-bottom: 10px; }
  .post-author { padding: 10px 12px; gap: 8px; }
  .post-avatar { width: 34px; height: 34px; flex-shrink: 0; margin-bottom: 0; margin-right: 0; }
  .post-content { padding: 12px; }
  .post-header  { padding: 6px 12px; }
  .topic-row { padding: 10px 12px; }
}

/* ── Nav-User-Dropdown ─────────────────────────────────────── */
.nav-user-drop { position: relative; }

.nav-auth-user {
  display: flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  padding: 4px 6px; border-radius: 6px;
  transition: background .15s;
  color: var(--fg);
}
.nav-auth-user:hover,
.nav-auth-user.open { background: rgba(255,255,255,.07); }

.nav-drop-arrow {
  font-size: 9px; color: var(--muted);
  transition: transform .18s;
}
.nav-auth-user.open .nav-drop-arrow { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 170px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  padding: 5px;
  z-index: 1200;
}

.nav-drop-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 5px;
  font: 500 13px/1 var(--font-u); color: var(--fg);
  text-decoration: none; white-space: nowrap;
  transition: background .12s, color .12s;
  background: none; border: none; cursor: pointer; width: 100%;
}
.nav-drop-item i { width: 14px; text-align: center; color: var(--muted); font-size: 12px; }
.nav-drop-item:hover { background: var(--panel-3); color: var(--fg); }
.nav-drop-item:hover i { color: var(--lava); }

.nav-drop-sep { height: 1px; background: var(--border); margin: 4px 0; }

.nav-drop-danger { color: var(--lava) !important; }
.nav-drop-danger i { color: var(--lava) !important; }
.nav-drop-danger:hover { background: rgba(255,90,20,.12) !important; }

/* ── Forum-Schriftgrößen +1px ──────────────────────────────── */
.fsb-head          { font-size: 12px; }
.fsb-title         { font-size: 13px; }
.fsb-meta          { font-size: 11px; }
.fsb-empty         { font-size: 13px; }
.forum-category-title { font-size: 12px; }
.forum-category-desc  { font-size: 13px; }
.forum-cat-toggle     { font-size: 11px; }
.forum-name           { font-size: 15px; }
.forum-desc           { font-size: 13px; }
.forum-subforums      { font-size: 12px; }
.forum-stat-num       { font-size: 15px; }
.forum-stat-lbl       { font-size: 11px; }
.forum-last-meta      { font-size: 12px; }
.forum-last-title     { font-size: 13px; }
.forum-last-empty     { font-size: 13px; }
.forum-empty, .forum-empty-global { font-size: 15px; }
.topic-icon           { font-size: 16px; }
.topic-title          { font-size: 15px; }
.topic-meta           { font-size: 12px; }
.topic-badge          { font-size: 11px; }
.topic-col-replies, .topic-col-views { font-size: 14px; }
.topic-col-last       { font-size: 12px; }
.post-author-name     { font-size: 14px; }
.post-author-rank     { font-size: 11px; }
.post-author-title    { font-size: 12px; }
.post-author-group    { font-size: 11px; }
.post-author-meta-row { font-size: 11px; }
.post-header          { font-size: 13px; }
.post-edited          { font-size: 12px; }
.post-anchor          { font-size: 12px; }
.post-content         { font-size: 15px; }
.post-content .bb-quote cite { font-size: 13px; }
.post-action          { font-size: 13px; }
.post-sig-text        { font-size: 12px; }

/* Suche-Formular: auf 900px schon auf volle Breite */
@media (max-width: 900px) {
  .page-head > div { flex-direction: column; align-items: flex-start; }
  .forum-search-form { align-self: stretch; }
  .forum-search-input { flex: 1; min-width: 0; }
}

/* ══════════════════════════════════════════════════════════════
   Rich-Text-Editor (RTE) — Toolbar + Textarea + Preview
   ══════════════════════════════════════════════════════════════ */
.rte-wrap { border:1px solid var(--border-hi); border-radius:8px; overflow:visible; background:rgba(17,19,24,.55); }

/* Toolbar */
.rte-toolbar {
  display:flex; align-items:center; gap:2px; flex-wrap:wrap;
  padding:5px 8px; background:var(--panel-2);
  border-bottom:1px solid var(--border); border-radius:8px 8px 0 0;
  position:relative;
}
.rte-sep { width:1px; height:20px; background:var(--border-hi); margin:0 3px; flex-shrink:0; }
.rte-sep--push { margin-left:auto !important; }

.rte-btn {
  display:flex; align-items:center; justify-content:center;
  min-width:28px; height:28px; padding:0 5px; gap:4px;
  border-radius:4px; border:1px solid transparent;
  background:transparent; color:var(--muted); cursor:pointer;
  font-size:12px; transition:background .1s,color .1s,border-color .1s;
  flex-shrink:0; white-space:nowrap; font-family:var(--font-b);
}
.rte-btn:hover { background:rgba(255,90,20,.14); color:var(--lava); border-color:rgba(255,90,20,.3); }
.rte-btn.active { background:rgba(255,90,20,.22); color:var(--lava); border-color:var(--lava); }
.rte-btn-lbl { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }

/* Dropdowns */
.rte-drop-wrap { position:relative; }
.rte-dropdown {
  display:none; position:absolute; top:calc(100% + 5px); left:0; z-index:400;
  background:var(--card); border:1px solid var(--border-hi); border-radius:8px;
  padding:8px; box-shadow:0 10px 40px rgba(0,0,0,.8); min-width:160px;
}
.rte-dropdown.open { display:block; }
.rte-dd-right { left:auto; right:0; }

/* Color swatches */
.rte-colors { grid-template-columns:repeat(6,22px); gap:3px; padding:4px; }
.rte-colors.open { display:grid; }   /* überschreibt display:block vom generischen .open */
.rte-swatch {
  width:22px; height:22px; border-radius:3px; cursor:pointer;
  border:2px solid transparent; transition:transform .1s,border-color .1s;
}
.rte-swatch:hover { transform:scale(1.3); border-color:rgba(255,255,255,.7); }

/* Size menu */
.rte-size-item {
  display:block; width:100%; text-align:left; padding:5px 10px;
  background:none; border:none; color:var(--fg); cursor:pointer;
  border-radius:4px; transition:background .1s;
}
.rte-size-item:hover { background:rgba(255,90,20,.12); color:var(--lava); }

/* URL bar */
.rte-url-bar {
  display:flex; align-items:center; gap:6px;
  padding:6px 10px; background:rgba(5,7,12,.9);
  border-bottom:1px solid var(--lava);
}
.rte-url-label { font-size:11px; color:var(--muted); white-space:nowrap; flex-shrink:0; }
.rte-url-input {
  flex:1; background:rgba(255,255,255,.06); border:1px solid var(--border-hi);
  border-radius:4px; color:var(--fg); padding:4px 8px;
  font-size:12px; outline:none; font-family:monospace; min-width:0;
}
.rte-url-input:focus { border-color:var(--lava); }

/* Emoji panel */
.rte-emoji-panel { min-width:248px; }
.rte-emoji-cats {
  display:flex; gap:3px; flex-wrap:wrap;
  padding-bottom:6px; margin-bottom:6px;
  border-bottom:1px solid var(--border);
}
.rte-emoji-cat {
  font-size:16px; cursor:pointer; padding:3px 6px;
  border-radius:4px; border:1px solid transparent; background:transparent;
  transition:background .1s;
}
.rte-emoji-cat:hover,.rte-emoji-cat.active { background:rgba(255,90,20,.18); border-color:rgba(255,90,20,.4); }
.rte-emoji-grid {
  display:flex; flex-wrap:wrap; gap:1px;
  max-height:168px; overflow-y:auto;
}
.rte-emoji-item {
  font-size:20px; width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; border-radius:4px; border:1px solid transparent;
  background:transparent; transition:background .1s;
}
.rte-emoji-item:hover { background:rgba(255,90,20,.15); border-color:rgba(255,90,20,.28); }

/* Main textarea */
.rte-textarea {
  display:block; width:100%; box-sizing:border-box;
  background:transparent; color:var(--fg);
  border:none; outline:none; resize:vertical;
  font-family:'Courier New','DejaVu Sans Mono',monospace;
  font-size:13px; line-height:1.65; padding:12px 14px;
  tab-size:2; caret-color:var(--lava);
}
.rte-textarea::selection { background:rgba(255,90,20,.28); }

/* Preview */
.rte-preview {
  padding:14px 18px; background:transparent;
  color:var(--fg); line-height:1.75; font-size:14px;
  overflow-wrap:break-word; word-break:break-word;
  border-top:1px solid var(--border);
}
.rte-preview blockquote {
  border-left:3px solid var(--lava); padding:6px 14px; margin:10px 0;
  background:rgba(255,90,20,.06); border-radius:0 6px 6px 0; color:var(--muted);
}
.rte-preview pre {
  background:rgba(0,0,0,.55); border:1px solid var(--border);
  border-radius:6px; padding:10px 14px; overflow-x:auto; font-size:12px;
}
.rte-preview details > summary { cursor:pointer; color:var(--lava); font-weight:600; user-select:none; }
.rte-preview a { color:var(--key); }
.rte-preview img { max-width:100%; border-radius:4px; }
.rte-preview h1,.rte-preview h2,.rte-preview h3 { margin:.6em 0 .3em; }
.rte-preview ul,.rte-preview ol { padding-left:1.6em; margin:.4em 0; }

/* Status bar */
.rte-statusbar {
  display:flex; align-items:center; gap:8px;
  padding:3px 10px; background:rgba(0,0,0,.22);
  border-top:1px solid var(--border); border-radius:0 0 8px 8px;
  font-size:10px; color:var(--muted);
}
.rte-statusbar .rte-charcount { margin-left:auto; }

/* ── Forum: Mehrfachauswahl für Moderatoren ─────────────────────────── */
.bulk-toggle-row { display: flex; justify-content: flex-end; margin-bottom: 10px; }
#bulkToggle.active { border-color: var(--lava); color: var(--lava-hi); }
.bulk-check { display: none; width: 17px; height: 17px; accent-color: var(--lava); cursor: pointer; margin: 0; }
.topic-list.bulk-mode .bulk-check { display: inline-block; }
/* Font Awesome ersetzt <i> per JS durch <svg> – daher den Container ausblenden, nicht das <i> */
.topic-glyph { display: inline-flex; align-items: center; justify-content: center; }
.topic-list.bulk-mode .topic-glyph { display: none; }
.topic-list.bulk-mode .topic-icon { border-color: var(--border-hi, #4a4f5a); background: rgba(255,255,255,.02); }
.topic-row.bulk-selected .topic-icon { border-color: var(--lava); background: rgba(255,90,20,.15); }
.topic-list-header-icon { display: flex; align-items: center; justify-content: center; width: 32px; }
.topic-list.bulk-mode .topic-row { cursor: pointer; }
.topic-row.bulk-selected { background: rgba(255,90,20,.10); box-shadow: inset 3px 0 0 var(--lava); }
.bulk-bar {
  position: sticky; bottom: 12px; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 14px; padding: 12px 16px; border-radius: 8px;
  background: var(--panel, #16181e); border: 1px solid var(--lava);
  box-shadow: 0 8px 28px rgba(0,0,0,.55), 0 0 18px rgba(255,90,20,.25);
}
.bulk-bar[hidden] { display: none; }
.bulk-bar select { min-width: 170px; padding: 7px 10px; }
.bulk-count { font-size: 13px; color: var(--muted); margin-right: 4px; }
.bulk-count strong { color: var(--lava-hi); font-size: 16px; }
.bulk-small { padding: 6px 10px !important; font-size: 12px !important; }
.bulk-hint { font-size: 12px; color: var(--muted); }
#bulkSubmit { margin-left: auto; }
#bulkSubmit:disabled { opacity: .45; cursor: not-allowed; }
