/* ============================================
   v3F Website Styles - WebSpell Era
   ============================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

:root {
  --bg:      #0d1117;
  --bg2:     #111820;
  --bg3:     #0a0f14;
  --panel:   #141c25;
  --panel2:  #1a2333;
  --border:  #1e3048;
  --border2: #0f2035;
  --accent:  #00aaff;
  --accent2: #0077cc;
  --accent3: #33ccff;
  --neon:    #00ccff;
  --red:     #cc2200;
  --green:   #33ff66;
  --gold:    #ffcc00;
  --text:    #b0c4d8;
  --text2:   #6a8099;
  --white:   #dde8f0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', Tahoma, sans-serif;
  font-size: 12px;
  min-height: 100vh;
}

a { color: var(--accent2); }
a:hover { color: var(--accent); }

/* ===== HEADER ===== */
#header {
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, #020f1e 0%, #0a1e35 40%, #0d1525 70%, #0d1117 100%);
  border-bottom: 2px solid var(--accent2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.header-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 15%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 75%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 20%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,.3) 0%, transparent 100%);
}
.header-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(0,100,200,.25) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 15% 50%, rgba(0,80,180,.1) 0%, transparent 60%);
}
.header-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.08) 2px, rgba(0,0,0,.08) 4px);
  pointer-events: none;
}
.header-left { position: relative; z-index: 2; flex: 1; }
.header-clan {
  font-family: 'Oswald', Impact, sans-serif;
  font-size: 48px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  line-height: 1; color: #fff;
  text-shadow: 0 0 20px rgba(0,170,255,.8), 0 0 40px rgba(0,170,255,.4), 2px 2px 0 #001830;
}
.header-clan span { color: var(--accent3); }
.header-sub {
  font-family: 'Oswald', sans-serif;
  font-size: 13px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--accent2); margin-top: 4px;
  text-shadow: 0 0 10px rgba(0,120,200,.5);
}
.header-badge {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 20px;
  border: 1px solid rgba(0,170,255,.3);
  background: rgba(0,30,60,.5);
  margin-right: 14px;
}
.header-badge-num {
  font-family: 'Oswald', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(0,170,255,.6);
  line-height: 1;
}
.header-badge-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--text2); }
.header-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent2) 20%, var(--accent) 50%, var(--accent2) 80%, transparent 100%);
  box-shadow: 0 0 12px rgba(0,170,255,.5);
}

/* ===== NAV ===== */
#nav {
  background: linear-gradient(180deg, #0f1f30 0%, #0a1825 100%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch; height: 36px;
}
.nav-item {
  display: flex; align-items: center;
  padding: 0 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text2);
  border-right: 1px solid var(--border2);
  text-decoration: none; position: relative;
  transition: all .15s;
}
.nav-item:hover, .nav-item.active { background: linear-gradient(180deg, rgba(0,120,200,.2) 0%, rgba(0,80,160,.1) 100%); color: var(--accent); }
.nav-item.active::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0,170,255,.6);
}
.nav-right {
  margin-left: auto; display: flex; align-items: center;
  gap: 6px; padding: 0 12px; font-size: 10px; color: var(--text2);
}
.online-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(50,255,100,.7);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.4;} }

/* ===== LAYOUT ===== */
#wrapper {
  display: grid;
  grid-template-columns: 190px 1fr 175px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 0;
  min-height: calc(100vh - 222px);
}

/* ===== SIDEBARS ===== */
.sidebar { padding: 8px; display: flex; flex-direction: column; gap: 8px; }

.box {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}
.box-head {
  background: linear-gradient(90deg, var(--accent2) 0%, #003560 100%);
  padding: 5px 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid var(--accent2);
  display: flex; align-items: center; gap: 6px;
}
.box-head::before { content: '▶'; font-size: 8px; color: var(--accent3); }
.box-body { padding: 6px; }

.sidebar-right .box-head {
  background: linear-gradient(90deg, #1a1020 0%, #0f1030 100%);
  border-bottom-color: #4444aa;
}
.sidebar-right .box-head::before { color: #6688ff; }

.menu-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 6px;
  color: var(--text2); font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  text-decoration: none; transition: all .15s;
}
.menu-item:hover { background: rgba(0,120,200,.12); color: var(--accent); padding-left: 10px; }
.menu-item::before { content: '›'; color: var(--accent2); font-size: 14px; line-height: 1; }

.online-member { display: flex; align-items: center; gap: 5px; padding: 3px 2px; font-size: 10px; color: var(--text2); border-bottom: 1px solid rgba(255,255,255,.03); }
.dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.dot-on  { background: var(--green); box-shadow: 0 0 4px rgba(50,255,100,.7); }
.dot-off { background: #334455; }

.top-player { display: flex; align-items: center; gap: 6px; padding: 3px 2px; font-size: 11px; border-bottom: 1px solid rgba(255,255,255,.04); }
.tp-rank { font-family: 'Oswald', sans-serif; font-size: 14px; color: var(--text2); width: 18px; text-align: center; flex-shrink: 0; }
.tp-rank.gold   { color: var(--gold);   text-shadow: 0 0 8px rgba(255,200,0,.5); }
.tp-rank.silver { color: #aabbcc; }
.tp-rank.bronze { color: #cc8844; }
.tp-name { flex: 1; }
.tp-score { font-family: 'Oswald', sans-serif; color: var(--accent2); }

/* ===== SHOUTBOX ===== */
.shout { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 10px; }
.shout-name  { color: var(--accent); font-weight: 700; }
.shout-time  { color: var(--text2); font-size: 9px; float: right; }
.shout-text  { color: var(--text); word-break: break-word; }
.shout-input {
  width: 100%; margin-top: 6px;
  background: #0a1525; border: 1px solid var(--border);
  color: var(--text); padding: 4px 6px; font-size: 10px;
  font-family: inherit; outline: none;
}
.shout-input:focus { border-color: var(--accent2); }
.shout-btn {
  width: 100%; margin-top: 3px;
  background: linear-gradient(180deg, #0f2040 0%, #081525 100%);
  border: 1px solid var(--accent2);
  color: var(--accent2); font-family: 'Oswald', sans-serif;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px; cursor: pointer; transition: all .15s;
}
.shout-btn:hover { background: rgba(0,120,200,.2); color: var(--accent); }

/* ===== CONTENT ===== */
#content {
  padding: 8px; display: flex; flex-direction: column; gap: 8px;
  border-left: 1px solid var(--border2);
  border-right: 1px solid var(--border2);
}

/* Clan stats bar */
.clan-info {
  background: linear-gradient(90deg, var(--panel) 0%, #0f1e30 100%);
  border: 1px solid var(--border);
  padding: 8px 12px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.info-cell { text-align: center; border-right: 1px solid var(--border2); padding: 4px; }
.info-cell:last-child { border-right: none; }
.info-num {
  font-family: 'Oswald', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0,150,255,.5);
  display: block; line-height: 1;
}
.info-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text2); margin-top: 2px; }

/* News */
.news-item {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--border);
}
.news-head {
  background: linear-gradient(90deg, #0f1f30 0%, #0a1520 100%);
  border-bottom: 1px solid var(--border);
  padding: 6px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.news-title { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 500; color: var(--accent); text-shadow: 0 0 8px rgba(0,150,255,.4); letter-spacing: .5px; }
.news-meta { font-size: 9px; color: var(--text2); text-align: right; line-height: 1.6; }
.news-author { color: var(--accent2); }
.news-body { padding: 10px; line-height: 1.7; color: var(--text); font-size: 11.5px; }
.news-body p { margin-bottom: 8px; }
.news-body p:last-child { margin-bottom: 0; }
.news-footer {
  padding: 5px 10px;
  background: rgba(0,0,0,.2);
  border-top: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; color: var(--text2);
}
.news-tags span {
  background: rgba(0,80,150,.3);
  border: 1px solid rgba(0,120,200,.3);
  color: var(--accent2); padding: 1px 5px;
  font-size: 9px; margin-right: 3px;
  letter-spacing: 1px; text-transform: uppercase;
}
.read-more { color: var(--accent2); font-size: 10px; text-decoration: none; transition: color .15s; }
.read-more:hover { color: var(--accent); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th {
  background: linear-gradient(180deg, #0c1e30 0%, #081525 100%);
  color: var(--accent2); font-family: 'Oswald', sans-serif;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 8px; border-bottom: 1px solid var(--accent2); text-align: left;
}
.data-table td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--text); }
.data-table tr:hover td { background: rgba(0,100,180,.07); }

/* Result colors */
.result-w { color: var(--green); font-weight: 700; font-family: 'Oswald', sans-serif; font-size: 13px; }
.result-l { color: var(--red);   font-weight: 700; font-family: 'Oswald', sans-serif; font-size: 13px; }
.result-d { color: #ffaa00;      font-weight: 700; font-family: 'Oswald', sans-serif; font-size: 13px; }

/* Forum */
.forum-cat {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--border); margin-bottom: 6px;
}
.forum-cat-head {
  background: linear-gradient(90deg, #0c1c2c 0%, #091520 100%);
  border-bottom: 1px solid var(--border);
  padding: 5px 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent2);
}
.forum-row { display: flex; align-items: center; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.04); transition: background .15s; }
.forum-row:hover { background: rgba(0,100,180,.08); }
.forum-row:last-child { border-bottom: none; }
.forum-icon { font-size: 18px; margin-right: 10px; width: 24px; text-align: center; flex-shrink: 0; }
.forum-info { flex: 1; }
.forum-name { font-size: 12px; font-weight: 700; color: var(--accent2); text-decoration: none; }
.forum-name:hover { color: var(--accent); }
.forum-desc { font-size: 10px; color: var(--text2); margin-top: 1px; }
.forum-stats { text-align: right; font-size: 10px; color: var(--text2); }
.forum-stats span { display: block; }
.forum-count { color: var(--accent2); font-family: 'Oswald', sans-serif; font-size: 14px; }

/* Thread list */
.thread-row { display: flex; align-items: center; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.04); }
.thread-row:hover { background: rgba(0,100,180,.07); }
.thread-icon { font-size: 16px; margin-right: 8px; flex-shrink: 0; }
.thread-title { flex: 1; font-size: 12px; }
.thread-title a { color: var(--text); text-decoration: none; }
.thread-title a:hover { color: var(--accent); }
.thread-title .pinned { color: var(--gold); font-size: 9px; margin-right: 4px; }
.thread-title .locked { color: var(--red); font-size: 9px; margin-right: 4px; }
.thread-meta { font-size: 9px; color: var(--text2); margin-top: 1px; }
.thread-stats { text-align: right; font-size: 10px; color: var(--text2); min-width: 80px; }

/* Posts */
.post { border: 1px solid var(--border); margin-bottom: 8px; }
.post-head {
  background: linear-gradient(90deg, #0c1c2c 0%, #091520 100%);
  border-bottom: 1px solid var(--border);
  padding: 5px 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.post-author { color: var(--accent); font-weight: 700; font-size: 12px; }
.post-date { color: var(--text2); font-size: 9px; }
.post-layout { display: flex; }
.post-sidebar {
  width: 110px; flex-shrink: 0;
  background: rgba(0,0,0,.2);
  border-right: 1px solid var(--border2);
  padding: 8px 6px;
  text-align: center;
}
.post-avatar {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #0f2040, #0a1525);
  border: 1px solid var(--border);
  margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--accent2);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
}
.post-username { font-size: 11px; font-weight: 700; color: var(--accent2); margin-bottom: 3px; }
.post-role { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text2); }
.post-postcount { font-size: 9px; color: var(--text2); margin-top: 4px; }
.post-body { flex: 1; padding: 10px; font-size: 12px; line-height: 1.7; }
.post-sig { border-top: 1px dashed var(--border); padding-top: 6px; margin-top: 8px; font-size: 10px; color: var(--text2); font-style: italic; }

/* Forms */
.v3f-form { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text2); font-family: 'Oswald', sans-serif; }
.form-group input,
.form-group textarea,
.form-group select {
  background: #0a1525; border: 1px solid var(--border);
  color: var(--text); padding: 7px 8px; font-size: 12px;
  font-family: inherit; outline: none; transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent2); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #0f2040 0%, #081525 100%);
  border: 1px solid var(--accent2);
  color: var(--accent); font-family: 'Oswald', sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  padding: 7px 18px; cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.btn:hover { background: rgba(0,120,200,.2); color: var(--accent); border-color: var(--accent); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: rgba(200,30,0,.15); border-color: #ff4422; color: #ff4422; }
.btn-sm { padding: 3px 10px; font-size: 10px; }

/* Alerts */
.alert { padding: 8px 12px; border: 1px solid; font-size: 11px; margin-bottom: 8px; }
.alert-success { border-color: var(--green); color: var(--green); background: rgba(50,255,100,.06); }
.alert-error   { border-color: var(--red);   color: #ff6666;      background: rgba(200,30,0,.08); }
.alert-info    { border-color: var(--accent2);color: var(--accent);background: rgba(0,100,200,.08); }

/* Auth page */
.auth-wrap {
  max-width: 380px;
  margin: 20px auto;
  width: 100%;
  box-sizing: border-box;
}
.auth-wrap * { box-sizing: border-box; }
.auth-wrap .alert-info {
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}
.auth-tabs { display: flex; margin-bottom: 0; }
.auth-tab {
  flex: 1; padding: 8px; text-align: center;
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text2); cursor: pointer; border: 1px solid var(--border);
  background: var(--panel2); text-decoration: none; transition: all .15s;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--panel); background: var(--panel); }

/* Admin */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.stat-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--border); padding: 12px; text-align: center;
}
.stat-card .num { font-family: 'Oswald', sans-serif; font-size: 32px; color: var(--accent); text-shadow: 0 0 10px rgba(0,150,255,.4); }
.stat-card .lbl { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--text2); }

/* Profile */
.profile-header {
  background: linear-gradient(90deg, var(--panel) 0%, #0a1e30 100%);
  border: 1px solid var(--border); padding: 14px;
  display: flex; gap: 16px; align-items: flex-start;
}
.profile-avatar {
  width: 80px; height: 80px; flex-shrink: 0;
  background: linear-gradient(135deg, #0f2040, #0a1525);
  border: 1px solid var(--accent2);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-family: 'Oswald', sans-serif;
  font-weight: 700; color: var(--accent2);
}
.profile-name { font-family: 'Oswald', sans-serif; font-size: 22px; color: var(--accent); letter-spacing: 1px; }
.profile-role { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--text2); margin-bottom: 6px; }
.profile-detail { font-size: 11px; color: var(--text2); line-height: 2; }
.profile-detail span { color: var(--text); }

/* Members list */
.member-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.04); }
.member-row:hover { background: rgba(0,100,180,.07); }
.member-avatar-sm {
  width: 32px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, #0f2040, #0a1525);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--accent2);
}
.member-name-link { color: var(--text); text-decoration: none; font-size: 12px; }
.member-name-link:hover { color: var(--accent); }

/* Pagination */
.pagination { display: flex; gap: 4px; margin-top: 8px; }
.page-btn {
  padding: 4px 8px;
  background: var(--panel2); border: 1px solid var(--border);
  color: var(--text2); font-size: 11px; text-decoration: none; transition: all .15s;
}
.page-btn.active, .page-btn:hover { border-color: var(--accent2); color: var(--accent); }

/* Section header within content */
.content-head {
  background: linear-gradient(90deg, #0c1c2c 0%, #091520 100%);
  border: 1px solid var(--border); border-bottom: none;
  padding: 6px 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent2);
  display: flex; align-items: center; justify-content: space-between;
}
.content-head::before { content: ':: '; color: var(--accent); }

/* Breadcrumb */
.breadcrumb { font-size: 10px; color: var(--text2); margin-bottom: 6px; }
.breadcrumb a { color: var(--accent2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 4px; }

/* ===== FOOTER ===== */
.footer-glow {
  height: 2px; max-width: 1280px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent2) 30%, var(--accent) 50%, var(--accent2) 70%, transparent);
  box-shadow: 0 0 10px rgba(0,150,255,.4);
}
#footer {
  background: linear-gradient(180deg, #0a1520 0%, #06101a 100%);
  border-top: 2px solid var(--accent2);
  padding: 10px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: var(--text2);
  max-width: 1280px; margin: 0 auto;
}
.footer-links a { color: var(--accent2); text-decoration: none; margin-left: 10px; transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.powered { color: #334; font-size: 9px; letter-spacing: 1px; }

/* ===== RANG-BADGES ===== */
.rank-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  padding: 1px 5px;
  border: 1px solid currentColor;
  opacity: 0.85;
}

/* ===== SIGNATUR BILD ===== */
.sig-image {
  display: block;
  max-width: 100%;
  max-height: 242px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-top: 6px;
  border: 1px solid var(--border);
}

/* ===== RANG-VERWALTUNG ADMIN ===== */
.perm-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.perm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--text2);
  text-align: center;
  letter-spacing: 0.5px;
}

.perm-item input[type=checkbox] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border2);
}

.rank-row:last-child { border-bottom: none; }

.rank-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== FORUM BILDER ===== */
.post-body img.forum-img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 8px 0;
  border: 1px solid var(--border);
  background: #000;
  cursor: pointer;
}

.post-body .img-source {
  font-size: 10px;
  font-style: italic;
  color: var(--text2);
  margin-top: -4px;
  margin-bottom: 6px;
  word-break: break-all;
}

/* Upload Button im Editor */
.editor-toolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.editor-btn {
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 10px;
  padding: 3px 8px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .15s;
}

.editor-btn:hover { border-color: var(--accent2); color: var(--accent); }

.editor-btn.uploading { color: var(--gold); border-color: var(--gold); }

/* Lightbox */
#img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#img-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border: 1px solid var(--border);
}

/* ===== FORUM VIDEOS ===== */
.forum-video-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 8px 0 0;
  background: #000;
  border: 1px solid var(--border);
}

/* YouTube/Vimeo iframe — 16:9 */
.forum-video-wrap iframe.forum-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* HTML5 Video */
.forum-video-wrap video.forum-video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #000;
}

/* ===== BBCODE EDITOR ===== */
.editor-wrap {
  border: 1px solid var(--border);
  background: #0a1525;
}

.editor-menubar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--panel2);
  border-bottom: 1px solid var(--border);
}

.editor-menubar button {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .15s;
  min-width: 26px;
  line-height: 1.4;
}

.editor-menubar button:hover {
  border-color: var(--accent2);
  color: var(--accent);
}

.editor-menubar .sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 3px;
  flex-shrink: 0;
}

.editor-textarea {
  width: 100%;
  min-height: 180px;
  padding: 10px;
  background: #0a1525;
  border: none;
  border-top: 1px solid var(--border2);
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.editor-textarea:focus {
  box-shadow: inset 0 0 0 1px var(--accent2);
}


/* ===== SPOILER ===== */
.spoiler {
  display: inline-block;
  background: var(--border);
  color: transparent;
  cursor: pointer;
  border-radius: 2px;
  padding: 0 4px;
  user-select: none;
  transition: background .2s, color .2s;
  position: relative;
}
.spoiler::before {
  content: 'Spoiler';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--text2);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  pointer-events: none;
}
.spoiler.revealed {
  background: rgba(0,170,255,0.1);
  color: var(--text);
}
.spoiler.revealed::before { display: none; }
.spoiler-inner { pointer-events: none; }

/* ============================================
   RESPONSIVE / MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Layout: Sidebar komplett weg, nur Content */
  #wrapper {
    grid-template-columns: 1fr;
    padding: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .sidebar-left,
  .sidebar-right,
  .sidebar { display: none !important; }

  /* Verhindert horizontales Scrollen durch breite Elemente */
  #header, #nav, #content, .box, .forum-row, .thread-row, .post-layout {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Header */
  #header {
    height: auto;
    min-height: 80px;
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .header-clan { font-size: 26px; letter-spacing: 2px; }
  .header-sub  { font-size: 9px; letter-spacing: 3px; }
  .header-badge { display: none; }

  /* Nav: scrollbar horizontal, kein Hamburger-Aufwand */
  #nav {
    height: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #nav::-webkit-scrollbar { display: none; }
  .nav-item, .nav-link {
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
    height: 36px;
    display: flex;
    align-items: center;
  }
  .nav-right {
    display: none; /* Login-Info im Header ausblenden auf Mobile */
  }

  /* Content */
  #content { padding: 6px; gap: 6px; border: none; }

  /* Clan stats bar */
  .clan-info {
    grid-template-columns: repeat(2, 1fr);
  }

  /* News */
  .news-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .news-meta { text-align: left; }

  /* Forum Übersicht */
  .forum-row { flex-wrap: wrap; gap: 4px; }
  .forum-stats { min-width: 100%; text-align: left; padding-left: 34px; }

  /* Thread-Liste */
  .thread-row { flex-wrap: wrap; }
  .thread-stats { min-width: 100%; text-align: left; padding-left: 28px; font-size: 9px; }

  /* Posts */
  .post-layout { flex-direction: column; }
  .post-sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-right: none;
    border-bottom: 1px solid var(--border2);
    text-align: left;
  }
  .post-avatar { width: 40px; height: 40px; font-size: 16px; margin: 0; flex-shrink: 0; }
  .post-username { font-size: 12px; margin-bottom: 1px; }
  .post-role, .post-postcount { display: inline; margin-right: 8px; }

  /* Post-Head */
  .post-head { flex-wrap: wrap; gap: 4px; }
  .post-head > * { font-size: 10px; }

  /* Editor Toolbar */
  .editor-menubar { gap: 1px; }
  .editor-menubar button { padding: 3px 5px; font-size: 10px; min-width: 22px; }
  .editor-menubar .sep { margin: 0 2px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 10px; padding: 4px 6px; }

  /* Content-Head */
  .content-head { font-size: 10px; padding: 4px 8px; flex-wrap: wrap; gap: 4px; }

  /* Profile */
  .profile-grid { grid-template-columns: 1fr !important; }

  /* Admin */
  .admin-grid { grid-template-columns: 1fr !important; }

  /* Buttons */
  .btn { font-size: 10px; padding: 4px 8px; }

  /* Pagination */
  .pagination { flex-wrap: wrap; justify-content: center; }

  /* Forum-Beiträge auf Index */
  .forum-img { max-width: 100% !important; }

  /* Kalender Seite */
  .calendar-grid { grid-template-columns: 1fr !important; }

  /* Members Tabelle → Mobile-Liste */
  .data-table thead { display: none; }
  .data-table tr { display: flex; flex-wrap: wrap; align-items: center; padding: 8px; border-bottom: 1px solid var(--border2); gap: 6px; }
  .data-table td { padding: 2px 4px; border: none; }
  .data-table td:nth-child(1) { flex-shrink: 0; } /* Avatar */
  .data-table td:nth-child(2) { flex: 1; min-width: 120px; } /* Name+Rang */
  .data-table td:nth-child(3) { font-size: 10px; } /* Posts */
  .data-table td:nth-child(4),
  .data-table td:nth-child(5) { display: none; } /* Ort + Zuletzt ausblenden */

  /* Search */
  form[method="GET"] input[type="text"] {
    width: 100% !important;
  }

  /* Reactions */
  .post-reactions { gap: 4px; }

  /* Input/Textarea volle Breite */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  textarea,
  select { width: 100%; }

  /* Viewport Meta erzwingen */
  img { max-width: 100%; height: auto; }
}

/* Tablet (768px - 1024px): Sidebar rechts ausblenden, links drin */
@media (min-width: 769px) and (max-width: 1024px) {
  #wrapper { grid-template-columns: 160px 1fr; }
  .sidebar-right { display: none !important; }
}

/* Mobile Bar */
@media (max-width: 768px) {
  #mobile-bar { display: flex !important; }
}

/* ===== LINK PREVIEW CARD ===== */
.link-preview-card {
  display: inline-flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--panel2);
  max-width: 420px;
  margin: 6px 0;
  overflow: hidden;
  transition: border-color .15s;
}
.link-preview-card:hover { border-color: var(--accent2); }
.link-preview-card a { text-decoration: none; }
.lpc-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border2);
}
.lpc-body { padding: 8px 10px; }
.lpc-title {
  font-size: 11px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lpc-desc {
  font-size: 10px;
  color: var(--text2);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lpc-url {
  font-size: 9px;
  color: var(--text2);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Members Mobile */
.members-rank-mobile { display: none; }
@media (max-width: 768px) {
  .members-col-hide    { display: none !important; }
  .members-col-desktop { display: none !important; }
  .members-rank-mobile { display: block; margin-top: 2px; }
  .members-header      { display: none !important; }
  .member-row          { flex-wrap: nowrap; }
}

/* ============================================
   THEMES
   ============================================ */

/* ── 2. V3F STYLE (Schwarz / Weiß / Silber) ── */
body.theme-vanelsing {
  --bg:      #0a0a0a;
  --bg2:     #111111;
  --bg3:     #070707;
  --panel:   #161616;
  --panel2:  #1e1e1e;
  --border:  #2a2a2a;
  --border2: #1a1a1a;
  --accent:  #e8e8e8;
  --accent2: #b8b8b8;
  --accent3: #ffffff;
  --neon:    #ffffff;
  --red:     #8b0000;
  --green:   #4a7c4a;
  --gold:    #c9a84c;
  --white:   #ffffff;
  --text:    #d0d0d0;
  --text2:   #707070;
  --input:   #111111;
}
body.theme-vanelsing #header {
  background: linear-gradient(180deg, #000000 0%, #111111 100%);
  border-bottom: 2px solid #888888;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
body.theme-vanelsing #header .header-logo-v3f {
  display: block;
  height: 70px;
  width: auto;
  flex-shrink: 0;
}
body.theme-vanelsing .header-clan { color: #ffffff; letter-spacing: 3px; }
body.theme-vanelsing .header-clan span { color: #b8b8b8; }
body.theme-vanelsing .header-sub { color: #888888; }
body.theme-vanelsing #nav {
  background: #0a0a0a;
  border-bottom: 1px solid #333333;
}
body.theme-vanelsing .nav-link { color: #707070; }
body.theme-vanelsing .nav-link.active,
body.theme-vanelsing .nav-link:hover { color: #ffffff; border-bottom-color: #c9a84c; }
body.theme-vanelsing .footer-glow {
  background: linear-gradient(90deg, transparent, #555 30%, #aaa 50%, #555 70%, transparent);
}
body.theme-vanelsing .box-head,
body.theme-vanelsing .content-head {
  background: linear-gradient(90deg, #161616 0%, #111111 100%);
  border-color: #2a2a2a;
  color: #e8e8e8;
}
body.theme-vanelsing .box-head::before,
body.theme-vanelsing .content-head::before { color: #c9a84c; }
body.theme-vanelsing .btn {
  border-color: #555555;
  color: #e8e8e8;
  background: #161616;
}
body.theme-vanelsing .btn:hover { background: #e8e8e8; color: #0a0a0a; }
body.theme-vanelsing .online-dot { background: #e8e8e8; }

/* ── 3. FALLOUT PIPBOY (Grün / CRT) ── */
body.theme-pipboy {
  --bg:      #030d03;
  --bg2:     #051005;
  --bg3:     #020802;
  --panel:   #071507;
  --panel2:  #0a1c0a;
  --border:  #1a3a1a;
  --border2: #102010;
  --accent:  #5cff5c;
  --accent2: #3dcc3d;
  --accent3: #80ff80;
  --neon:    #5cff5c;
  --red:     #ff4444;
  --green:   #5cff5c;
  --gold:    #aaff44;
  --white:   #ccffcc;
  --text:    #a0e0a0;
  --text2:   #508050;
  --input:   #051005;
  font-family: 'Courier New', monospace !important;
}
body.theme-pipboy * { font-family: 'Courier New', monospace !important; }
body.theme-pipboy #header {
  background: #030d03;
  border-bottom: 2px solid #3dcc3d;
  position: relative;
}
body.theme-pipboy #header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px);
  pointer-events: none;
}
body.theme-pipboy .header-clan { color: #5cff5c; text-shadow: 0 0 10px #5cff5c; }
body.theme-pipboy .header-clan span { color: #3dcc3d; }
body.theme-pipboy #nav { background: #051005; border-bottom: 1px solid #3dcc3d; }
body.theme-pipboy .nav-link { color: #508050; }
body.theme-pipboy .nav-link.active,
body.theme-pipboy .nav-link:hover { color: #5cff5c; border-bottom-color: #5cff5c; text-shadow: 0 0 6px #5cff5c; }
body.theme-pipboy .box-head,
body.theme-pipboy .content-head {
  background: #071507;
  border-color: #1a3a1a;
  color: #5cff5c;
  text-shadow: 0 0 4px #5cff5c44;
}
body.theme-pipboy .box-head::before,
body.theme-pipboy .content-head::before { color: #3dcc3d; }
body.theme-pipboy .btn { border-color: #3dcc3d; color: #5cff5c; background: #071507; }
body.theme-pipboy .btn:hover { background: #3dcc3d; color: #030d03; }
body.theme-pipboy .footer-glow {
  background: linear-gradient(90deg, transparent, #3dcc3d 30%, #5cff5c 50%, #3dcc3d 70%, transparent);
  box-shadow: 0 0 10px rgba(92,255,92,0.4);
}

/* ── 4. APERTURE SCIENCE (Orange / Portal) ── */
body.theme-aperture {
  --bg:      #0d0800;
  --bg2:     #150e00;
  --bg3:     #090500;
  --panel:   #1a1000;
  --panel2:  #221500;
  --border:  #3a2800;
  --border2: #281a00;
  --accent:  #ff8c00;
  --accent2: #cc6a00;
  --accent3: #ffaa44;
  --neon:    #ff8c00;
  --red:     #ff3300;
  --green:   #88cc00;
  --gold:    #ff8c00;
  --white:   #fff4e0;
  --text:    #e8c888;
  --text2:   #886644;
  --input:   #150e00;
}
body.theme-aperture #header {
  background: linear-gradient(180deg, #0d0800 0%, #1a1000 100%);
  border-bottom: 2px solid #ff8c00;
}
body.theme-aperture .header-clan { color: #ff8c00; }
body.theme-aperture .header-clan span { color: #fff4e0; }
body.theme-aperture .header-sub { color: #cc6a00; }
body.theme-aperture #nav { background: #150e00; border-bottom: 1px solid #cc6a00; }
body.theme-aperture .nav-link { color: #886644; }
body.theme-aperture .nav-link.active,
body.theme-aperture .nav-link:hover { color: #ff8c00; border-bottom-color: #ff8c00; }
body.theme-aperture .box-head,
body.theme-aperture .content-head {
  background: linear-gradient(90deg, #1a1000 0%, #150e00 100%);
  border-color: #3a2800;
  color: #ff8c00;
}
body.theme-aperture .box-head::before,
body.theme-aperture .content-head::before { color: #cc6a00; }
body.theme-aperture .btn { border-color: #cc6a00; color: #ff8c00; background: #1a1000; }
body.theme-aperture .btn:hover { background: #ff8c00; color: #0d0800; }
body.theme-aperture .footer-glow {
  background: linear-gradient(90deg, transparent, #cc6a00 30%, #ff8c00 50%, #cc6a00 70%, transparent);
}
/* Aperture Logo Gimmick */
body.theme-aperture .header-sub::after { content: ' · APERTURE SCIENCE ·'; color: #cc6a0066; }

/* ── 5. DEAD SPACE (Marineblau / Eiskalt) ── */
body.theme-deadspace {
  --bg:      #010508;
  --bg2:     #020810;
  --bg3:     #010306;
  --panel:   #040c18;
  --panel2:  #071220;
  --border:  #0f2840;
  --border2: #081a30;
  --accent:  #00d4ff;
  --accent2: #0099cc;
  --accent3: #44eeff;
  --neon:    #00d4ff;
  --red:     #ff2244;
  --green:   #00ff88;
  --gold:    #44ccff;
  --white:   #d0eeff;
  --text:    #88bbdd;
  --text2:   #446688;
  --input:   #020810;
}
body.theme-deadspace #header {
  background: linear-gradient(180deg, #010508 0%, #040c18 100%);
  border-bottom: 2px solid #00d4ff;
  box-shadow: 0 2px 20px rgba(0,212,255,0.15);
}
body.theme-deadspace .header-clan { color: #00d4ff; text-shadow: 0 0 15px rgba(0,212,255,0.5); }
body.theme-deadspace .header-clan span { color: #d0eeff; }
body.theme-deadspace #nav { background: #020810; border-bottom: 1px solid #0099cc; }
body.theme-deadspace .nav-link { color: #446688; }
body.theme-deadspace .nav-link.active,
body.theme-deadspace .nav-link:hover { color: #00d4ff; border-bottom-color: #00d4ff; text-shadow: 0 0 8px #00d4ff66; }
body.theme-deadspace .box-head,
body.theme-deadspace .content-head {
  background: linear-gradient(90deg, #040c18 0%, #020810 100%);
  border-color: #0f2840;
  color: #00d4ff;
}
body.theme-deadspace .btn { border-color: #0099cc; color: #00d4ff; background: #040c18; }
body.theme-deadspace .btn:hover { background: #00d4ff; color: #010508; }
body.theme-deadspace .footer-glow {
  background: linear-gradient(90deg, transparent, #0099cc 30%, #00d4ff 50%, #0099cc 70%, transparent);
  box-shadow: 0 0 15px rgba(0,212,255,0.3);
}

/* ── 6. BLOOD & IRON (Rot / Anthrazit / Warhammer) ── */
body.theme-bloodiron {
  --bg:      #0a0404;
  --bg2:     #100606;
  --bg3:     #070202;
  --panel:   #160808;
  --panel2:  #1e0c0c;
  --border:  #3a1010;
  --border2: #280808;
  --accent:  #cc2200;
  --accent2: #991a00;
  --accent3: #ff4422;
  --neon:    #ff3300;
  --red:     #cc2200;
  --green:   #446644;
  --gold:    #aa8822;
  --white:   #f0e0e0;
  --text:    #c8a8a8;
  --text2:   #886666;
  --input:   #100606;
}
body.theme-bloodiron #header {
  background: linear-gradient(180deg, #0a0404 0%, #160808 100%);
  border-bottom: 2px solid #cc2200;
  box-shadow: 0 2px 15px rgba(204,34,0,0.2);
}
body.theme-bloodiron .header-clan { color: #cc2200; }
body.theme-bloodiron .header-clan span { color: #f0e0e0; }
body.theme-bloodiron #nav { background: #100606; border-bottom: 1px solid #991a00; }
body.theme-bloodiron .nav-link { color: #886666; }
body.theme-bloodiron .nav-link.active,
body.theme-bloodiron .nav-link:hover { color: #cc2200; border-bottom-color: #cc2200; }
body.theme-bloodiron .box-head,
body.theme-bloodiron .content-head {
  background: linear-gradient(90deg, #160808 0%, #100606 100%);
  border-color: #3a1010;
  color: #cc2200;
}
body.theme-bloodiron .box-head::before,
body.theme-bloodiron .content-head::before { color: #991a00; }
body.theme-bloodiron .btn { border-color: #991a00; color: #cc2200; background: #160808; }
body.theme-bloodiron .btn:hover { background: #cc2200; color: #0a0404; }
body.theme-bloodiron .footer-glow {
  background: linear-gradient(90deg, transparent, #991a00 30%, #cc2200 50%, #991a00 70%, transparent);
  box-shadow: 0 0 10px rgba(204,34,0,0.3);
}
