/* -------------------------------------------------------------
   assets/forum.css - Forum-Erweiterung zum Dark-Theme von timoogx.de
   (baut auf style.css der Hauptseite auf: gleiche Variablen/Bausteine)
   ------------------------------------------------------------- */

:root {
    --st-online:  #3ddc84;   /* grün  = online */
    --st-dnd:     #ff4d4d;   /* rot   = bitte nicht stören */
    --st-offline: #8a90a2;   /* grau  = offline */
}

.muted { color: var(--text-dim); }
.small { font-size: 12.5px; }
.ok { color: var(--success); }
.bad, .danger { color: var(--danger); }
.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.inline { display: inline; }
.stack > * + * { margin-top: 12px; }
.empty { text-align: center; color: var(--text-dim); padding: 28px 12px; background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty a { color: var(--accent-2); text-decoration: underline; }

/* sprachumschalter als Links */
.language-switcher a { color: var(--text-dim); padding: 6px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1; }
.language-switcher a:hover { color: var(--text); background: var(--card-hover); }
.language-switcher a.active { color: #fff; background: var(--accent-grad); }

/* ---------------- Buttons & Formulare (Ergänzungen) ---------------- */
.btn { margin-top: 0; text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 999px; }
.btn.danger, button.danger { color: var(--danger); }
.btn.danger:hover { background: rgba(255,92,122,.12); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: 0; color: var(--text-dim); cursor: pointer; font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.link-btn:hover { color: var(--text); background: var(--card-hover); }
.link-btn.danger:hover { color: var(--danger); }
input[type=number], input[type=url], input[type=file] { background: var(--card); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: 10px; font: inherit; width: 100%; }
input[type=file] { padding: 8px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
label.check { display: flex; align-items: center; gap: 10px; margin: 8px 0; color: var(--text-dim); font-size: 14px; cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-card-wide { max-width: 560px; margin: 0 auto; }
.auth-wrap { padding: 36px 0; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.flash-info { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.3); color: var(--accent-2); }
.announce { margin: 22px 0 0; padding: 14px 18px; border-radius: var(--radius); border: 1px solid rgba(124,92,255,.4); background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(34,211,238,.08)); }
.code-input { text-align: center; letter-spacing: .3em; font-size: 24px !important; text-transform: uppercase; font-weight: 700; }
.steps { color: var(--text-dim); padding-left: 20px; }
.steps li { margin: 6px 0; }
code, .code { background: var(--bg-alt); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.card-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; }
.card-box h2 { margin-top: 0; font-size: 18px; }

/* ---------------- Forum-Leiste ---------------- */
.forum-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.forum-bar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.forum-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.forum-nav a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--text-dim); }
.forum-nav a:hover { color: var(--text); background: var(--card-hover); }
.forum-nav a.active { color: #fff; background: var(--card); border: 1px solid var(--border); }
.forum-user { display: flex; align-items: center; gap: 10px; position: relative; }
.bell { position: relative; font-size: 18px; padding: 4px 8px; border-radius: 10px; }
.bell:hover { background: var(--card-hover); }
.bell-count { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.user-menu { position: relative; }
.user-menu summary { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); list-style: none; }
.um-name { font-weight: 700; font-size: 14px; }
.um-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--border); border-radius: 12px; min-width: 210px; padding: 6px; box-shadow: var(--shadow); z-index: 60; }
.um-pop a, .um-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.um-pop a:hover, .um-pop button:hover { background: var(--card-hover); }

/* ---------------- Layout ---------------- */
.forum-page { padding-top: 22px; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.forum-layout.single { grid-template-columns: minmax(0, 1fr); }
.forum-main.wide { max-width: 100%; }
.page-head { margin: 8px 0 18px; }
.page-head.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 4px; font-size: 28px; }
.page-head p { margin: 0; }
.crumbs { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs .cur { color: var(--text); }

.cat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.cat-head { padding: 14px 20px; background: linear-gradient(135deg, rgba(124,92,255,.14), rgba(34,211,238,.06)); border-bottom: 1px solid var(--border); }
.cat-head h2 { margin: 0; font-size: 17px; }
.cat-head p { margin: 2px 0 0; font-size: 13px; }

.forum-row, .topic-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 76px 76px 230px; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .15s; }
.forum-row:last-child, .topic-row:last-child { border-bottom: 0; }
.forum-row:hover, .topic-row:hover { background: var(--card-hover); }
.forum-row.slim { grid-template-columns: 46px minmax(0, 1fr) 76px 76px; }
.forum-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border); display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.forum-ico img { width: 100%; height: 100%; object-fit: cover; }
.forum-title, .topic-title { font-weight: 700; font-size: 15.5px; }
.forum-title:hover, .topic-title:hover { color: var(--accent-2); }
.forum-count { text-align: center; line-height: 1.2; }
.forum-count strong { display: block; font-size: 16px; }
.forum-count span { font-size: 11.5px; color: var(--text-dim); }
.forum-last { display: flex; gap: 10px; align-items: center; min-width: 0; font-size: 13.5px; }
.forum-last > span { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.forum-last small { font-size: 12px; }
.subforums { margin-top: 4px; color: var(--text-dim); }
.subforums a { color: var(--accent-2); }
.topic-row { grid-template-columns: 46px minmax(0, 1fr) 76px 76px 200px; }
.topic-row.pinned { background: rgba(124,92,255,.07); }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-dim); margin-left: 6px; }
.tag.warn { color: var(--gold); border-color: rgba(255,209,102,.4); }

.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.pg { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
a.pg:hover { background: var(--card-hover); }
.pg.cur { background: var(--accent-grad); border: 0; color: #fff; font-weight: 700; }
.pg.gap { background: none; border: 0; }

/* ---------------- Status-Punkte & Avatare ---------------- */
.av { position: relative; display: inline-block; width: var(--av, 48px); height: var(--av, 48px); flex: none; vertical-align: middle; }
.av-img { display: block; width: 100%; height: 100%; border-radius: 22%; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--border); }
.av-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; image-rendering: auto; }
.av-letter { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-weight: 700; font-size: calc(var(--av, 48px) * .46); }
.av-link { display: inline-block; line-height: 0; }
.st { position: absolute; right: -2px; bottom: -2px; width: max(10px, calc(var(--av, 48px) * .26)); height: max(10px, calc(var(--av, 48px) * .26)); max-width: 22px; max-height: 22px; border-radius: 50%; border: 2.5px solid var(--card); background: var(--st-offline); box-sizing: border-box; display: block; }
.st-online  { background: var(--st-online);  box-shadow: 0 0 6px rgba(61,220,132,.6); }
.st-dnd     { background: var(--st-dnd);     box-shadow: 0 0 6px rgba(255,77,77,.5); }
.st-offline { background: var(--st-offline); }
/* Punkte außerhalb von Avataren (Legende, Text) */
.legend .st, .pu-status .st, .profile-status .st, .st.static, .muted .st, .small .st { position: static; display: inline-block; width: 11px; height: 11px; border-width: 0; vertical-align: -1px; margin-right: 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }
.legend.big { margin-top: 24px; font-size: 14px; justify-content: center; }
.legend span { display: inline-flex; align-items: center; }
.cat .st, .post-user .st { border-color: var(--card); }
.widget .st { border-color: var(--card); }

.user-name { font-weight: 700; }
.user-name.deleted { color: var(--text-dim); font-weight: 400; font-style: italic; }
.user-link:hover .user-name { text-decoration: underline; }
.mc-dark { text-shadow: 0 0 1px rgba(255,255,255,.45), 0 0 6px rgba(255,255,255,.2); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bc, #7c5cff) 55%, transparent); background: color-mix(in srgb, var(--bc, #7c5cff) 14%, transparent); }

/* ---------------- Beiträge ---------------- */
.post { display: grid; grid-template-columns: 180px minmax(0, 1fr); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.post:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.post-user { background: var(--bg-alt); border-right: 1px solid var(--border); padding: 20px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pu-name { font-size: 15.5px; word-break: break-word; }
.pu-stats { text-align: left; width: 100%; margin-top: 8px; line-height: 1.7; }
.pu-status { display: flex; align-items: center; margin-top: 4px; }
.post-main { padding: 16px 22px; min-width: 0; display: flex; flex-direction: column; }
.post-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 14px; }
.post-body { word-wrap: break-word; overflow-wrap: anywhere; font-size: 15px; line-height: 1.7; }
.post-body img, .post-img { max-width: 100%; height: auto; border-radius: 10px; }
.post-body a { color: var(--accent-2); text-decoration: underline; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { margin: 14px 0 6px; line-height: 1.3; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body table { border-collapse: collapse; }
.post-body td, .post-body th { border: 1px solid var(--border); padding: 6px 10px; }
.post-body hr { border: 0; border-top: 1px solid var(--border); }
.post-body .mention { background: rgba(124,92,255,.18); padding: 0 5px; border-radius: 6px; text-decoration: none; color: #cfc4ff; }
.post-body pre.code, .post-body pre { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow: auto; font-size: 13px; }
.quote, .post-body blockquote { margin: 12px 0; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 10px 10px 0; padding: 10px 14px; }
.quote-head { font-size: 12.5px; color: var(--accent-2); font-weight: 700; margin-bottom: 4px; }
.spoiler { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; }
.spoiler summary { cursor: pointer; padding: 8px 14px; color: var(--accent-2); font-weight: 700; }
.spoiler > div, .spoiler-body { padding: 4px 14px 12px; }
.signature { margin-top: 18px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text-dim); }
.edited { margin-top: 8px; }
.post-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 14px; }
.like-btn { background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-dim); padding: 5px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; }
.like-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.like-btn.on { background: rgba(124,92,255,.2); border-color: var(--accent); color: #fff; }
.like-btn:disabled { cursor: default; opacity: .7; }
.reply-box { margin-top: 24px; }
.mod-menu { position: relative; }
.mod-menu summary { cursor: pointer; }
.mod-pop { position: absolute; right: 0; z-index: 40; margin-top: 8px; min-width: 240px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.mod-pop button { background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; text-align: left; }
.mod-pop button:hover { background: var(--card-hover); }
.mod-pop button.danger { color: var(--danger); }
.mod-pop label { font-size: 12.5px; color: var(--text-dim); display: flex; flex-direction: column; gap: 4px; }
dialog { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; max-width: 460px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h3 { margin-top: 0; }

/* ---------------- Editor ---------------- */
.editor { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 14px; overflow: hidden; }
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.ed-toolbar button, .ed-toolbar select { background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 5px 10px; cursor: pointer; font: inherit; font-size: 13px; width: auto; }
.ed-toolbar button:hover { background: var(--card-hover); border-color: var(--accent); }
.ed-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.ed-color { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); font-size: 13px; }
.ed-color input[type=color], .inline-color input[type=color] { width: 30px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.ed-color input[type=text] { width: 86px; padding: 4px 8px; font-size: 12.5px; font-family: monospace; }
.editor textarea { border: 0; border-radius: 0; min-height: 160px; resize: vertical; width: 100%; display: block; }
.editor textarea:focus { outline: none; }
.ed-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); font-size: 12px; flex-wrap: wrap; }
.ed-preview { padding: 14px 18px; border-top: 1px dashed var(--border); background: var(--bg-alt); }
.inline-color { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 3px 8px; }
.inline-color input[type=text] { border: 0; background: none; width: 100px; font-family: monospace; padding: 6px 4px; }
.color-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0; }

/* ---------------- Sidebar-Widgets ---------------- */
.forum-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 74px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.widget h3 { margin: 0 0 12px; font-size: 15px; }
.online-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.online-chip, .team-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 10px; font-size: 14px; }
.online-chip:hover, .team-row:hover { background: var(--card-hover); }
.team-grp { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.team-grp-name { font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-grid strong { display: block; font-size: 18px; }
.stat-grid span { font-size: 11.5px; color: var(--text-dim); }
.latest-row, .recent-row, .search-row, .notif-row { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; }
.latest-row:hover, .recent-row:hover, .search-row:hover, .notif-row:hover { background: var(--card-hover); }
.latest-row > span, .search-row > span, .notif-row > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.recent-row { flex-direction: column; align-items: flex-start; gap: 2px; border-bottom: 1px solid var(--border); border-radius: 0; }
.search-row, .notif-row { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 14px 18px; }
.notif-row.unread { border-color: var(--accent); background: rgba(124,92,255,.08); }

/* ---------------- Mitglieder / Profil / Team ---------------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.member-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: transform .15s, border-color .15s; }
.member-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.profile-card { padding: 0; overflow: hidden; margin-top: 8px; }
.profile-banner { height: 120px; background: linear-gradient(135deg, var(--bc, #7c5cff), #161923 85%); }
.profile-head { display: flex; gap: 22px; align-items: flex-end; padding: 0 28px 18px; margin-top: -52px; flex-wrap: wrap; }
.profile-head .av-img { border: 4px solid var(--card); }
.profile-head .st { border-color: var(--card); right: 2px; bottom: 2px; }
.profile-id { flex: 1; min-width: 200px; padding-bottom: 6px; }
.profile-id h1 { margin: 0; font-size: 26px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.profile-status { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.profile-actions { display: flex; gap: 8px; padding-bottom: 8px; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--border); }
.profile-stats > div { padding: 14px; text-align: center; border-right: 1px solid var(--border); }
.profile-stats > div:last-child { border-right: 0; }
.profile-stats strong { display: block; font-size: 18px; }
.profile-stats span { font-size: 12px; color: var(--text-dim); }
.profile-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 12px; }
.info-list dt { color: var(--text-dim); } .info-list dd { margin: 0; }
.staff-card { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.staff-card .av { margin-bottom: 4px; }
.staff-card .av-img { border-radius: 22%; }
.staff-role { background: color-mix(in srgb, var(--bc, #7c5cff) 22%, transparent); border: 1px solid color-mix(in srgb, var(--bc, #7c5cff) 60%, transparent); color: #fff; }

/* ---------------- Einstellungen ---------------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.settings-grid .content-section { margin-bottom: 0; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; cursor: pointer; background: var(--bg-alt); }
.radio-card:has(input:checked) { border-color: var(--accent); background: rgba(124,92,255,.12); }
.radio-card > span { display: flex; flex-direction: column; }
.radio-card .st { position: static; flex: none; border-width: 0; width: 14px; height: 14px; }
.avatar-edit { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------------- Administration ---------------- */
.admin-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; align-items: start; }
.admin-nav { position: sticky; top: 74px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { padding: 10px 14px; border-radius: 10px; color: var(--text-dim); display: flex; gap: 10px; font-size: 14.5px; }
.admin-nav a:hover { background: var(--card-hover); color: var(--text); }
.admin-nav a.active { background: var(--accent-grad); color: #fff; font-weight: 700; }
.admin-main { min-width: 0; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.tile strong { display: block; font-size: 26px; }
.tile span { color: var(--text-dim); font-size: 13px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.tbl, .table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td, .table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th, .table th { color: var(--text-dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.tbl tr:last-child td, .table tr:last-child td { border-bottom: 0; }
.tbl.perms td, .tbl.perms th { text-align: center; } .tbl.perms td:first-child, .tbl.perms th:first-child { text-align: left; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; }
.preview-box { padding: 14px; background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 10px; margin: 10px 0; font-size: 18px; }
.tabs-radio { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs-radio label { padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-alt); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.tabs-radio label:has(input:checked) { border-color: var(--accent); background: rgba(124,92,255,.14); }
.import-form h2 { font-size: 17px; margin: 22px 0 10px; } .import-form h2:first-child { margin-top: 0; }
.phase-list { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.phase-list li { color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.phase-list li.active { color: var(--text); font-weight: 700; }
.phase-list li.done { color: var(--success); }
.ph-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.phase-list li.active .ph-dot { background: var(--accent-2); animation: pulse 1s infinite; }
.phase-list li.done .ph-dot { background: var(--success); }
@keyframes pulse { 50% { opacity: .35; } }
.stat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; }
.import-log { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; max-height: 260px; overflow: auto; font-size: 12.5px; white-space: pre-wrap; }
.meter .skills { min-width: 36px; justify-content: center; transition: width .3s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
    .forum-layout { grid-template-columns: 1fr; }
    .forum-side { position: static; }
    .admin-wrap { grid-template-columns: 1fr; }
    .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .profile-cols, .settings-grid, .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .forum-row, .topic-row, .forum-row.slim { grid-template-columns: 42px minmax(0, 1fr); }
    .forum-count, .forum-last { display: none; }
    .post { grid-template-columns: 1fr; }
    .post-user { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 14px; gap: 10px; }
    .pu-stats { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .um-name { display: none; }
    .forum-bar-inner { padding: 8px 14px; }
}

.profile-banner { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.profile-banner-preview { height: 150px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(135deg, var(--card), #161923); background-size: cover; background-position: center; display:flex; align-items:center; justify-content:center; color:var(--text-dim); margin-bottom:18px; overflow:hidden; }
.profile-banner-preview span { padding:8px 12px; background:rgba(0,0,0,.45); border-radius:8px; }

/* Header ohne Link-Leiste: Sprachumschalter rechts */
.language-switcher { margin-left: auto; }
@media (max-width: 820px) { .language-switcher { margin-right: 0; } }
.status-text { margin-top: 4px; color: var(--text-dim); font-size: 14px; }

/* Startseite-Button im Kopf */
.home-btn { white-space: nowrap; margin-right: 14px; flex-shrink: 0; }
@media (max-width: 520px) { .home-btn { margin-right: 8px; padding-left: 10px; padding-right: 10px; } }

/* Profil-Menü (Einstellungen als Tabs) */
.settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.settings-tabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text-dim); font-size: 14.5px; }
.settings-tabs a:hover { color: var(--text); background: var(--card-hover); }
.settings-tabs a.active { color: #fff; background: var(--accent-grad); border-color: transparent; }
.settings-grid.tabbed { grid-template-columns: minmax(0, 720px); }
.settings-grid.tabbed > section[hidden] { display: none; }

/* Einstellungen im Admin-Menü-Stil */
.admin-wrap .settings-grid.tabbed { grid-template-columns: minmax(0, 1fr); }

/* Profil-Pinnwand */
.wall-form { margin-bottom: 18px; } .wall-form .btn { margin-top: 10px; }
.wall-post { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.wall-post:target { background: var(--card-hover); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.wall-body { flex: 1; min-width: 0; }
.wall-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.wall-post.pinned { background: var(--card-hover); border-radius: 10px; padding-left: 10px; padding-right: 10px; border-left: 3px solid var(--accent); }
.wall-pin-badge { font-size: 12px; margin-left: 6px; opacity: .85; }
.wall-pin { margin-left: auto; } .wall-pin + .wall-del { margin-left: 8px; }
.wall-del { margin-left: auto; display: inline; } .wall-del .link-btn { font-size: 13px; }

/* Better separated creation actions on the forum overview */
.forum-create-actions{display:flex;align-items:center;gap:12px!important;margin-top:20px!important;flex-wrap:wrap}
.forum-create-actions .btn{margin:0;min-height:42px;padding:11px 17px;border-radius:9px;font-weight:700}
.forum-create-actions .btn-primary{background:#6d5dfc;border-color:#6d5dfc;color:#fff}
.forum-create-actions .btn-create-category{background:#173b35;border-color:#2e8b73;color:#b8f3df}
.forum-create-actions .btn-create-forum{background:#183451;border-color:#3679b8;color:#c4e4ff}
.forum-create-actions .btn:hover{filter:brightness(1.12);transform:translateY(-1px)}
.forum-create-actions .btn-create-link{background:#3b2a47;border-color:#8052a5;color:#ead7ff}
.forum-create-actions a:nth-of-type(2){background:#173b35;border-color:#2e8b73;color:#b8f3df}
.forum-create-actions a:nth-of-type(3){background:#183451;border-color:#3679b8;color:#c4e4ff}
