/* =====================================================================
   WoltLab-Aufbau (Forum, Beiträge, Profile, Konversationen, Header-Panel)
   in den Farben der Website (Schwarz/Blau).
   ===================================================================== */
.wbb { --wbb-border: rgba(255, 255, 255, .08); --wbb-head: rgba(255, 255, 255, .035); --wbb-row-hover: rgba(var(--accent-rgb), .045);
    font-size: 14px; padding-top: 22px; padding-bottom: 20px; }
.wbb a { color: var(--accent); }
.wbb a:hover { color: #9fdcff; }
.wbb .ico { width: 16px; height: 16px; }
.wbb-muted { color: var(--muted); }
.wbb-user { font-weight: 600; }

/* ---------- Brotkrümel + Seitenkopf ---------- */
.wbb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13px; margin-bottom: 12px; }
.wbb-crumbs a { color: var(--muted) !important; display: inline-flex; align-items: center; gap: 6px; }
.wbb-crumbs a:hover { color: #fff !important; }
.wbb-crumbs a + a::before { content: '›'; margin: 0 8px; color: var(--dim); }
.wbb-crumbs .ico { width: 14px; height: 14px; }
.wbb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.wbb-title { font: 400 28px/1.25 var(--body); letter-spacing: -.01em; text-transform: none; margin: 0; color: #fff; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wbb-desc { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.wbb-head-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.wbb-head-meta { margin-top: 8px; }

/* ---------- Buttons ---------- */
.wbb-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .07);
    color: var(--text) !important; font: 400 14px var(--body); cursor: pointer; line-height: 1.5; white-space: nowrap; transition: background .12s; text-decoration: none; list-style: none; }
.wbb-btn:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }
.wbb-btn .ico { width: 15px; height: 15px; }
.wbb-btn-primary { background: var(--accent-2); color: #fff !important; }
.wbb-btn-primary:hover { background: var(--accent); color: #04121f !important; }
.wbb-btn-small { padding: 4px 10px; font-size: 13px; }
summary.wbb-btn::-webkit-details-marker { display: none; }

/* ---------- Layout mit Seitenleiste ---------- */
.wbb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.wbb-content { min-width: 0; }
.wbb-sidebar { display: flex; flex-direction: column; gap: 24px; }
.wbb-box { background: var(--panel); border: 1px solid var(--wbb-border); border-radius: 6px; padding: 16px 18px; }
.wbb-box-title { font: 400 18px var(--body); text-transform: none; letter-spacing: 0; color: #fff; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.wbb-box-text { font-size: 13.5px; color: var(--muted); }
.wbb-sidelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wbb-sidelist li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.wbb-sidelist li > div { min-width: 0; display: flex; flex-direction: column; }
.wbb-sidelist li a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbb-sidelist li.is-left { opacity: .5; }
.wbb-online { font-size: 13.5px; line-height: 1.7; }
.wbb-boxmenu { list-style: none; margin: 0 -8px; padding: 0; }
.wbb-boxmenu a { display: block; padding: 6px 8px; border-radius: 4px; color: var(--text) !important; }
.wbb-boxmenu a:hover { background: rgba(255, 255, 255, .05); }
.wbb-boxmenu .active a { color: var(--accent) !important; font-weight: 600; }
.wbb-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Definitionslisten (Statistiken) ---------- */
.wbb-dl { display: grid; grid-template-columns: auto auto; gap: 1px 10px; margin: 0; font-size: 13px; align-content: center; }
.wbb-dl dt { color: var(--muted); text-align: right; }
.wbb-dl dd { margin: 0; color: var(--text); font-weight: 600; }
.wbb-dl-wide { grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; }
.wbb-dl-wide dt { text-align: left; }
.wbb-dl-wide dd { text-align: right; }

/* ---------- Hinweise ---------- */
.wbb-info, .wbb-warning, .wbb-error, .wbb-success { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 4px; margin: 0 0 18px; border-left: 4px solid; }
.wbb-info { background: rgba(var(--accent-rgb), .08); border-color: var(--accent); color: #cfe9ff; }
.wbb-warning { background: rgba(251, 191, 36, .08); border-color: var(--warn); color: #fde8b0; }
.wbb-error { background: rgba(251, 113, 133, .08); border-color: var(--err); color: #ffd3da; }

/* ---------- Kleinteile ---------- */
.wbb-badge { display: inline-flex; align-items: center; padding: 0 7px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--text); font: 600 11.5px/18px var(--body); }
.wbb-badge-new { background: var(--accent-2); color: #fff; }
.wbb-flag { display: inline-flex; color: var(--muted); }
.wbb-flag .ico { width: 15px; height: 15px; }
.wbb-label { --lc: #5d6b80; display: inline-block; padding: 1px 7px; border-radius: 3px; background: var(--lc); color: #fff !important; font: 600 12px/1.6 var(--body);
    margin-right: 6px; vertical-align: 1px; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); white-space: nowrap; }
a.wbb-label:hover { filter: brightness(1.15); color: #fff !important; }
.wbb-label-lg { font-size: 14px; padding: 2px 9px; }
.wbb-meta { list-style: none; margin: 3px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 12.5px; color: var(--muted); }
.wbb-meta li { display: inline-flex; align-items: center; gap: 5px; }
.wbb-meta li + li::before { content: '·'; margin: 0 7px; color: var(--dim); }
.wbb-meta .ico { width: 14px; height: 14px; }
.wbb-head-meta { font-size: 13.5px; }
.wbb-av24, .wbb-av32, .wbb-av48 { border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-2); }
.wbb-av24 { width: 24px; height: 24px; } .wbb-av32 { width: 32px; height: 32px; } .wbb-av48 { width: 48px; height: 48px; }
.wbb-av32 img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.wbb-av128 { position: relative; display: block; width: 128px; height: 128px; }
.wbb-av128 img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.wbb-online-dot { position: absolute; right: 8px; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); border: 3px solid var(--panel); }
.wbb-usertitle { --rc: #8d96ab; display: inline-block; padding: 1px 8px; border-radius: 3px; background: var(--rc); color: #fff; font: 600 12px/1.6 var(--body); text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.wbb-section { background: var(--panel); border: 1px solid var(--wbb-border); border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.wbb-section-title { font: 400 20px var(--body); text-transform: none; letter-spacing: 0; color: #fff; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--wbb-border); }
.wbb-interaction { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.wbb-interaction .pager { margin: 0; justify-content: flex-start; }
.wbb-interaction:empty { display: none; }
.wbb .pager a, .wbb .pager span { min-width: 30px; height: 30px; border-radius: 4px; font-weight: 400; }
.wbb .pager .cur { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

/* ---------- Forenliste ---------- */
.wbb-cat { margin-bottom: 30px; }
.wbb-cat-head { padding: 0 0 10px; border-bottom: 2px solid var(--accent-2); margin-bottom: 0; }
.wbb-cat-head h2 { font: 400 20px var(--body); text-transform: none; letter-spacing: 0; margin: 0; }
.wbb-cat-head h2 a { color: #fff !important; }
.wbb-cat-head h2 a:hover { color: var(--accent) !important; }
.wbb-cat-head p { color: var(--muted); margin: 3px 0 0; font-size: 13px; }
.wbb-boardlist { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--wbb-border); border-top: 0; border-radius: 0 0 6px 6px; }
.wbb-board { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 260px; gap: 16px; align-items: center; padding: 15px 18px; border-top: 1px solid var(--wbb-border); }
.wbb-board:first-child { border-top: 0; }
.wbb-board:hover { background: var(--wbb-row-hover); }
.wbb-board-icon { color: var(--accent); display: grid; place-items: center; }
.wbb-board-icon .ico { width: 30px; height: 30px; stroke-width: 1.5; }
.wbb-board.is-link .wbb-board-icon { color: var(--muted); }
.wbb-board-main h3 { margin: 0; font: 600 16px var(--body); display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
.wbb-board-desc { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.wbb-subboards { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: 13px; }
.wbb-subboards a { display: inline-flex; align-items: center; gap: 5px; }
.wbb-subboards .ico { width: 13px; height: 13px; color: var(--muted); }
.wbb-lastpost { display: flex; gap: 10px; align-items: center; min-width: 0; font-size: 13px; }
.wbb-lastpost-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.wbb-lastpost-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.wbb-lastpost small { font-size: 12.5px; }

/* ---------- Themenliste (tabellarisch) ---------- */
.wbb-table { background: var(--panel); border: 1px solid var(--wbb-border); border-radius: 6px; overflow: hidden; }
.wbb-trow { display: grid; grid-template-columns: 32px minmax(0, 1fr) 150px 210px; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--wbb-border); }
.wbb-trow:hover:not(.wbb-thead) { background: var(--wbb-row-hover); }
.wbb-thead { background: var(--wbb-head); border-top: 0; padding-top: 9px; padding-bottom: 9px; font-size: 13px; }
.wbb-thead .col-subject { grid-column: 1 / 3; }
.wbb-thead a { color: var(--muted) !important; }
.wbb-thead a.active, .wbb-thead a:hover { color: #fff !important; }
.wbb-thead a.active::after { content: ' ▾'; color: var(--accent); }
.wbb-trow.is-sticky { background: rgba(var(--accent-rgb), .05); }
.wbb-trow.is-sticky .wbb-flag { color: var(--accent); }
.wbb-trow.is-unread .wbb-thread-link { font-weight: 700; }
.wbb-trow .col-subject h3 { margin: 0; font: 400 15px/1.45 var(--body); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; text-transform: none; letter-spacing: 0; }
.wbb-thread-link { font-weight: 600; }
.wbb-trow .col-stats { font-size: 12.5px; }
.wbb-trow .col-last { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.wbb-trow .col-last > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.wbb-time { font-size: 12.5px; color: var(--muted) !important; }
.wbb-minipages a { padding: 0 5px; border: 1px solid var(--wbb-border); border-radius: 3px; margin-right: 3px; font-size: 11.5px; }
.wbb-minipages::before { margin-right: 4px !important; }
.wbb-empty { display: block !important; text-align: center; color: var(--muted); padding: 30px !important; }

/* ---------- Formulare ---------- */
.wbb-input, .wbb select { width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); border-radius: 4px; color: var(--text); padding: 8px 11px; font: 14px var(--body); outline: none; }
.wbb-input:focus, .wbb select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.wbb select option { background: var(--panel); }
.wbb-form dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wbb-form dt { font-size: 13px; color: var(--muted); margin-top: 8px; }
.wbb-form dt:first-child { margin-top: 0; }
.wbb-form dd { margin: 0; }
.wbb-form-submit { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.wbb-formrow { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; margin: 0 0 18px; }
.wbb-formrow:last-child { margin-bottom: 0; }
.wbb-formrow dt { padding-top: 8px; text-align: right; color: var(--muted); font-size: 14px; }
.wbb-formrow dd { margin: 0; }
.wbb-searchform { display: flex; gap: 10px; }

/* ---------- Dropdowns (Bearbeiten, Moderation) ---------- */
.wbb-dropdown { position: relative; }
.wbb-dropdown > summary { list-style: none; }
.wbb-dropdown > summary::-webkit-details-marker { display: none; }
.wbb-dropdown-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 260px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .9); display: flex; flex-direction: column; }
.wbb-dropdown-up .wbb-dropdown-menu { top: auto; bottom: calc(100% + 4px); }
.wbb-dropdown-menu form { margin: 0; }
.wbb-dropdown-menu a, .wbb-dropdown-menu button:not(.wbb-btn) { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 4px; border: 0; background: none;
    color: var(--text) !important; font: 14px var(--body); cursor: pointer; text-align: left; }
.wbb-dropdown-menu a:hover, .wbb-dropdown-menu button:not(.wbb-btn):hover { background: rgba(var(--accent-rgb), .12); }
.wbb-dropdown-menu .danger { color: var(--err) !important; }
.wbb-dropdown-row { display: flex; gap: 6px; padding: 6px 10px; }
.wbb-dropdown-row select { flex: 1; padding: 4px 8px; font-size: 13px; }

/* ---------- Beiträge ---------- */
.wbb-messages { display: flex; flex-direction: column; gap: 20px; }
.wbb-message { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--wbb-border); border-radius: 6px; scroll-margin-top: 90px; }
.wbb-message:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wbb-message.is-unread { border-left: 3px solid var(--accent); }
.wbb-msg-author { padding: 22px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border-right: 1px solid var(--wbb-border); background: rgba(0, 0, 0, .15); border-radius: 6px 0 0 6px; }
.wbb-msg-username { font: 600 16px var(--body); margin: 4px 0 0; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.wbb-credits { margin-top: 8px; font-size: 12px; width: 100%; grid-template-columns: 1fr auto; text-align: left; gap: 3px 8px; }
.wbb-credits dt { text-align: left; }
.wbb-credits dd { text-align: right; }
.wbb-msg-content { display: flex; flex-direction: column; min-width: 0; }
.wbb-msg-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--wbb-border); font-size: 13px; }
.wbb-msg-time { color: var(--muted) !important; }
.wbb-msg-no { margin-left: auto; color: var(--muted) !important; font-size: 12.5px; }
.wbb-msg-body { padding: 20px; flex: 1; font-size: 15px; }
.wbb-msg-foot { padding: 0 20px 14px; }
.wbb-signature { border-top: 1px solid var(--wbb-border); padding-top: 12px; margin-bottom: 12px; font-size: 13px !important; color: var(--muted); }
.wbb-msg-note { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 0 0 10px; }
.wbb-msg-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wbb-reactions { display: flex; gap: 6px; flex-wrap: wrap; }
.wbb-reaction { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.wbb-msg-buttons { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.wbb-msg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; border: 0; background: none; color: var(--muted) !important; font: 13px var(--body); cursor: pointer; list-style: none; }
.wbb-msg-btn:hover { background: rgba(255, 255, 255, .06); color: #fff !important; }
.wbb-msg-btn.active { color: var(--accent) !important; }
.wbb-msg-btn .ico { width: 14px; height: 14px; }
.wbb-msg-btn .emoji { font-size: 15px; }
.wbb-react-wrap { position: relative; }
.wbb-react-picker { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px); display: flex; gap: 2px; padding: 5px; background: var(--panel);
    border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .9); opacity: 0; visibility: hidden; transition: .15s; z-index: 20; }
.wbb-react-wrap:hover .wbb-react-picker, .wbb-react-wrap.open .wbb-react-picker { opacity: 1; visibility: visible; transform: translateX(-50%); }
.wbb-react-picker button { font-size: 22px; line-height: 1; border: 0; background: none; padding: 5px; border-radius: 50%; cursor: pointer; transition: transform .12s; }
.wbb-react-picker button:hover { transform: scale(1.25); }
.wbb-react-picker button.on { background: rgba(var(--accent-rgb), .2); }
.wbb-quickreply { margin-top: 24px; }
.wbb-quickreply .wbb-msg-body { padding: 16px 20px; }
.wbb-quickreply .wbb-form-submit { padding: 0 20px 16px; margin: 0; }

/* ---------- Profil ---------- */
.wbb-profile { background: var(--panel); border: 1px solid var(--wbb-border); border-radius: 6px; overflow: hidden; margin-bottom: 0; }
.wbb-cover { position: relative; height: 230px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent-2) 70%, #000), color-mix(in srgb, var(--accent) 40%, #000) 60%, #05070c); background-size: cover; background-position: center; }
.wbb-cover-edit { position: absolute; right: 14px; top: 14px; background: rgba(0, 0, 0, .55); }
.wbb-profile-bar { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 22px; padding: 0 24px 20px; align-items: end; }
.wbb-profile-av { margin-top: -64px; }
.wbb-profile-av img { border: 4px solid var(--panel); }
.wbb-profile-info { padding-top: 14px; min-width: 0; }
.wbb-profile-stats { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 12px 0 0; }
.wbb-profile-stats > div { display: flex; flex-direction: column-reverse; }
.wbb-profile-stats dt { font-size: 12px; color: var(--muted); }
.wbb-profile-stats dd { margin: 0; font-size: 18px; color: #fff; }
.wbb-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--wbb-border); margin: 20px 0 22px; overflow-x: auto; }
.wbb-tabs a { padding: 10px 16px; color: var(--muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.wbb-tabs a:hover { color: #fff !important; }
.wbb-tabs a.active { color: #fff !important; border-bottom-color: var(--accent); }
.wbb-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wbb-activity li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--wbb-border); }
.wbb-activity li:first-child { padding-top: 0; }
.wbb-activity-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wbb-activity-excerpt { background: var(--panel); border: 1px solid var(--wbb-border); border-radius: 4px; padding: 10px 14px; color: #c9d2e3; font-size: 13.5px; }

/* ---------- Suchergebnisse, Benachrichtigungen ---------- */
.wbb-results { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--wbb-border); border-radius: 6px; }
.wbb-result { padding: 16px 20px; border-top: 1px solid var(--wbb-border); }
.wbb-result:first-child { border-top: 0; }
.wbb-result h3 { margin: 0 0 4px; font: 600 16px var(--body); text-transform: none; letter-spacing: 0; }
.wbb-result p { margin: 0 0 4px; color: #c9d2e3; font-size: 13.5px; }
.wbb-notifications { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--wbb-border); border-radius: 6px; }
.wbb-notifications li { border-top: 1px solid var(--wbb-border); }
.wbb-notifications li:first-child { border-top: 0; }
.wbb-notifications a { display: flex; gap: 14px; padding: 14px 18px; color: var(--text) !important; }
.wbb-notifications a:hover { background: var(--wbb-row-hover); }
.wbb-notifications p { margin: 0 0 2px; }
.wbb-notifications .is-unread { background: rgba(var(--accent-rgb), .06); box-shadow: inset 3px 0 0 var(--accent); }
.wbb-notifications small { display: inline-flex; align-items: center; gap: 5px; }
.wbb-notifications .ico { width: 13px; height: 13px; }
.wbb-addmember { display: flex; gap: 6px; margin-top: 12px; }
.wbb-autocomplete { position: relative; flex: 1; }
.wbb-ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 40; background: var(--panel); border: 1px solid var(--line-2); border-radius: 4px; padding: 4px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .9); }
.wbb-ac-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; background: none; color: var(--text); font: 14px var(--body); border-radius: 3px; cursor: pointer; text-align: left; }
.wbb-ac-list button:hover, .wbb-ac-list button.on { background: rgba(var(--accent-rgb), .15); }
.cover-prev { height: 90px; border-radius: 8px; border: 1px solid var(--line-2); background: linear-gradient(120deg, var(--accent-2), #05070c); background-size: cover; background-position: center; }

/* =====================================================================
   Header-Benutzerpanel (Avatar, Glocke, Konversationen, Suche)
   ===================================================================== */
.userpanel { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.userpanel > li { position: relative; display: flex; }
.up-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 0; background: none; color: #e9eef7; cursor: pointer; }
.up-btn:hover, .up-item.open .up-btn { background: rgba(255, 255, 255, .07); color: #fff; }
.up-btn .ico { width: 22px; height: 22px; }
.up-badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font: 700 11px/18px var(--body); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.usermenu-btn { padding: 2px !important; border-radius: 50% !important; background: none !important; border: 2px solid transparent !important; }
.usermenu-btn:hover, [data-dropdown].open .usermenu-btn { border-color: var(--accent) !important; }
.usermenu-btn .av { width: 34px; height: 34px; }
.dropdown-head { flex-direction: row !important; align-items: center !important; gap: 12px !important; }
.dropdown-head > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.up-panel { position: absolute; right: -8px; top: calc(100% + 10px); width: 380px; max-width: calc(100vw - 24px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .95); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s var(--ease); z-index: 70; overflow: hidden; }
.up-item.open .up-panel { opacity: 1; visibility: visible; transform: none; }
.up-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.up-panel-head strong { font-size: 15px; }
.up-head-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.up-head-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.up-head-btn .ico { width: 17px; height: 17px; }
.up-list { max-height: 420px; overflow-y: auto; }
.up-entry { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text) !important; font-size: 13.5px; line-height: 1.45; }
.up-entry:hover { background: rgba(var(--accent-rgb), .07); }
.up-entry.unread { background: rgba(var(--accent-rgb), .06); box-shadow: inset 3px 0 0 var(--accent); }
.up-entry img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.up-entry small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.up-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.up-panel-foot { display: block; text-align: center; padding: 11px; font-size: 13.5px; font-weight: 600; color: var(--accent) !important; border-top: 1px solid var(--line); }
.up-panel-foot:hover { background: rgba(255, 255, 255, .03); }
.tb-bar .userpanel .up-btn { width: 34px; height: 34px; }
.tb-bar .userpanel .up-btn .ico { width: 19px; height: 19px; }
.tb-bar .usermenu-btn .av { width: 28px; height: 28px; }

/* Suchleiste unter dem Header */
.searchbar { position: sticky; top: 68px; z-index: 45; background: rgba(8, 12, 20, .97); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px -18px #000; }
.searchbar[hidden] { display: none; }
.searchbar-in { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.searchbar-in > .ico { width: 20px; height: 20px; color: var(--muted); }
.searchbar-in input { flex: 1; background: none; border: 0; outline: none; color: #fff; font: 17px var(--body); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .wbb-layout { grid-template-columns: 1fr; }
    .wbb-board { grid-template-columns: 40px minmax(0, 1fr) 220px; }
    .wbb-board .wbb-board-stats { display: none; }
}
@media (max-width: 860px) {
    .wbb-message { grid-template-columns: 1fr; }
    .wbb-msg-author { flex-direction: row; text-align: left; border-right: 0; border-bottom: 1px solid var(--wbb-border); padding: 12px 16px; border-radius: 6px 6px 0 0; flex-wrap: wrap; }
    .wbb-msg-author .wbb-av128 { width: 44px; height: 44px; }
    .wbb-msg-author .wbb-online-dot { width: 12px; height: 12px; right: 0; bottom: 0; border-width: 2px; }
    .wbb-msg-username { margin: 0; }
    .wbb-credits { display: none; }
    .wbb-trow { grid-template-columns: 32px minmax(0, 1fr) 170px; }
    .wbb-trow .col-stats { display: none; }
    .wbb-thead .col-stats { display: none; }
    .wbb-profile-bar { grid-template-columns: 1fr; justify-items: start; }
    .wbb-formrow { grid-template-columns: 1fr; gap: 6px; }
    .wbb-formrow dt { text-align: left; padding-top: 0; }
}
@media (max-width: 640px) {
    .wbb-title { font-size: 23px; }
    .wbb-board { grid-template-columns: 32px minmax(0, 1fr); padding: 13px 14px; }
    .wbb-board .wbb-lastpost { display: none; }
    .wbb-board-icon .ico { width: 24px; height: 24px; }
    .wbb-trow { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
    .wbb-trow .col-avatar, .wbb-trow .col-last, .wbb-thead .col-last { display: none; }
    .wbb-thead .col-subject { grid-column: auto; }
    .wbb-cover { height: 150px; }
    .up-panel { position: fixed; left: 12px; right: 12px; top: 72px; width: auto; }
    .userpanel { gap: 0; }
    .up-btn { width: 36px; }
}

/* =====================================================================
   Stil nach Vorlage (WoltLab 6, dunkel) – in den Farben von District Gaming
   ===================================================================== */
.wbb { --c-card: var(--panel); --c-border: rgba(236, 238, 238, .08); --c-dim: #8a93a5; --c-text: #c9d1de; --radius: 4px;
    --shadow-card: rgb(0 0 0 / 35%) 0 12px 28px 0, rgb(0 0 0 / 20%) 0 2px 4px 0;
    font: 15px/1.48 'Roboto', Arial, Helvetica, sans-serif; color: var(--c-text); max-width: 1400px; }
.wbb h1, .wbb h2, .wbb h3, .wbb h4 { font-family: 'Roboto', Arial, sans-serif; }
.wbb .wbb-title { font-size: 23px; font-weight: 600; line-height: 1.15; }
.wbb .wbb-desc { font-size: 15px; }
.wbb .prose { font-family: 'Roboto', Arial, sans-serif; color: var(--c-text); }

/* Buttons wie in der Vorlage: gefüllt in Akzentfarbe */
.wbb .wbb-btn { border-radius: var(--radius); padding: 8px 14px; background: rgba(255, 255, 255, .08); font-size: 14px; }
.wbb .wbb-btn-primary { background: var(--accent-2); }
.wbb .wbb-btn-primary:hover { background: color-mix(in srgb, var(--accent-2) 80%, #000); color: #fff !important; }

/* Seitenleiste: Karten */
.wbb .wbb-box { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 20px; }
.wbb .wbb-box-title { font-size: 18px; font-weight: 400; margin-bottom: 20px; }

/* ---------- Kategorien + Forenknoten ---------- */
.wbb .wbb-cat { margin: 0 0 20px; }
.wbb .wbb-cat + .wbb-cat { margin-top: 20px; }
.wbb .wbb-cat-head { position: relative; padding: 0 0 8px; border: 0; margin: 0; color: var(--accent); }
.wbb .wbb-cat-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 3px solid var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
.wbb .wbb-cat-head h2 { font-size: 18px; font-weight: 600; line-height: 1.28; }
.wbb .wbb-cat-head h2 a { color: inherit !important; }
.wbb .wbb-cat-head h2 a:hover { color: #fff !important; }
.wbb .wbb-cat-head p { font-size: 12px; color: var(--c-dim); }
.wbb .wbb-boardlist { background: var(--c-card); border: 1px solid var(--c-border); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-card); padding: 10px; display: flex; flex-direction: column; row-gap: 20px; }
.wbb-node { display: grid; grid-template-areas: "icon content last" "icon stats last" "icon subs last"; grid-template-columns: min-content 1fr 40%;
    grid-template-rows: max-content max-content 1fr; column-gap: 10px; padding: 10px; border-radius: var(--radius); }
.wbb-node:hover { background: rgba(255, 255, 255, .025); }
.wbb-node-icon { grid-area: icon; color: var(--c-dim); align-self: start; padding-top: 2px; }
.wbb-node-icon .ico { width: 32px; height: 32px; stroke-width: 1.6; }
.wbb-node.is-link .wbb-node-icon { color: var(--c-dim); }
.wbb-node-content { grid-area: content; min-width: 0; }
.wbb-node-title { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.28; display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
.wbb-node-title a { color: #fff !important; }
.wbb-node-title a:hover { color: var(--accent) !important; }
.wbb-node-desc { color: var(--c-text); font-size: 14px; margin-top: 2px; }
.wbb-node-stats { grid-area: stats; display: flex; gap: 10px; margin-top: 5px; font-size: 12px; color: var(--c-dim); }
.wbb-node-stats dl { display: flex; margin: 0; }
.wbb-node-stats dt::after { content: ':'; padding-left: 1px; }
.wbb-node-stats dd { margin: 0 0 0 5px; color: var(--c-text); }
.wbb-node-subs { grid-area: subs; list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; }
.wbb-node-subs a { display: inline-flex; align-items: center; gap: 5px; color: var(--c-text) !important; }
.wbb-node-subs a:hover { color: var(--accent) !important; }
.wbb-node-subs .ico { width: 14px; height: 14px; color: var(--c-dim); }
.wbb-node-last { grid-area: last; align-self: center; min-width: 0; }
.wbb .wbb-lastpost { display: grid; grid-template-areas: "av title" "av meta"; grid-template-columns: min-content 1fr; column-gap: 10px; align-items: center; font-size: 14px; }
.wbb .wbb-lastpost > img { grid-area: av; }
.wbb-lastpost-title { grid-area: title; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbb-lastpost-title a { color: #fff !important; font-weight: 400; }
.wbb-lastpost-title a:hover { color: var(--accent) !important; }
.wbb-lastpost-meta { grid-area: meta; font-size: 12px; color: var(--c-dim); display: flex; gap: 6px; flex-wrap: wrap; }
.wbb-lastpost-meta span + span::before, .wbb-lastpost-meta a + span::before { content: '·'; margin-right: 6px; }
.wbb-author { font-weight: 700; }
.wbb-author:hover { text-decoration: underline; }

/* Präfixe/Labels */
.wbb .wbb-label { --lc: var(--accent-2); border-radius: var(--radius); font-size: 12px; font-weight: 400; padding: 1px 6px; margin-right: 5px; }

/* ---------- Themenliste ---------- */
.wbb .wbb-table { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.wbb .wbb-trow { grid-template-columns: 40px minmax(0, 1fr) 100px 200px; padding: 12px 15px; border-top-color: var(--c-border); }
.wbb .wbb-thead { background: none; font-size: 14px; color: var(--accent); border-bottom: 3px solid var(--accent); }
.wbb .wbb-thead a { color: var(--accent) !important; font-weight: 600; }
.wbb .wbb-thead a:hover, .wbb .wbb-thead a.active { color: #fff !important; }
.wbb .wbb-trow .col-avatar img { width: 40px; height: 40px; }
.wbb .wbb-trow .col-subject h3 { font-size: 18px; font-weight: 400; line-height: 1.28; }
.wbb .wbb-thread-link { font-weight: 400; color: #fff !important; }
.wbb .wbb-thread-link:hover { color: var(--accent) !important; }
.wbb .wbb-trow.is-sticky { background: rgba(var(--accent-rgb), .06); }
.wbb .col-stats { text-align: center; position: relative; }
.wbb-stat-simple { font-size: 18px; color: #fff; }
.wbb-stat-full { display: none; position: absolute; inset: 0; margin: auto; height: max-content; justify-content: center; font-size: 12px; }
.wbb-trow:hover .wbb-stat-simple { display: none; }
.wbb-trow:hover .wbb-stat-full { display: grid; }
.wbb .wbb-meta { font-size: 12px; color: var(--c-dim); }

/* ---------- Beiträge: Autorenkarte + Inhaltskarte ---------- */
.wbb .wbb-messages { gap: 30px; }
.wbb .wbb-message { display: flex; align-items: flex-start; background: none; border: 0; box-shadow: none; gap: 30px; }
.wbb .wbb-message:target .wbb-msg-content { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card); }
.wbb .wbb-message.is-unread .wbb-msg-content { border-left: 3px solid var(--accent); }
.wbb .wbb-msg-author { position: relative; flex: 0 0 240px; align-self: flex-start; padding: 20px; background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; text-align: center; }
.wbb-msg-banner { position: absolute; top: 0; left: 0; width: 100%; height: 115px; background: linear-gradient(135deg, var(--accent-2), color-mix(in srgb, var(--accent) 50%, #05070c)); background-size: cover; background-position: center; }
.wbb .wbb-msg-author .wbb-av128 { margin-top: 30px; z-index: 1; }
.wbb .wbb-msg-author .wbb-av128 img { border: 4px solid #fff; }
.wbb .wbb-msg-author .wbb-online-dot { border-color: #fff; right: 10px; bottom: 10px; }
.wbb .wbb-msg-username { font-size: 18px; font-weight: 400; position: relative; }
.wbb .wbb-msg-username .wbb-author { font-weight: 700; }
.wbb .wbb-usertitle { border-radius: var(--radius); font-weight: 400; position: relative; }
.wbb .wbb-credits { border-top: 1px solid var(--c-border); padding-top: 12px; margin-top: 12px; position: relative; }
.wbb .wbb-msg-content { flex: 1; min-width: 0; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.wbb .wbb-msg-head { border-bottom-color: var(--c-border); padding: 15px 20px; font-size: 12px; }
.wbb .wbb-msg-time { color: var(--c-dim) !important; }
.wbb .wbb-msg-body { padding: 20px; font-size: 15px; }
.wbb .wbb-msg-btn { color: var(--c-dim) !important; font-size: 14px; }
.wbb .wbb-msg-btn:hover { color: #fff !important; background: rgba(255, 255, 255, .06); }
.wbb .wbb-quickreply .wbb-msg-content .editor { margin: 0; }
.wbb .wbb-msg-author .wbb-av128 { width: 128px; height: 128px; }

/* ---------- Formulare in Karten ---------- */
.wbb .wbb-section { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.wbb .wbb-input, .wbb select { background: var(--bg); border-color: #2e3442; border-radius: var(--radius); }

/* Profil */
.wbb .wbb-profile, .wbb .wbb-results, .wbb .wbb-notifications { border-radius: var(--radius); border-color: var(--c-border); box-shadow: var(--shadow-card); }

@media (max-width: 1100px) {
    .wbb-node { grid-template-areas: "icon content" "icon stats" "icon subs" "icon last"; grid-template-columns: min-content 1fr; }
    .wbb-node-last { margin-top: 8px; }
}
@media (max-width: 860px) {
    .wbb .wbb-message { flex-direction: column; gap: 0; }
    .wbb .wbb-msg-author { flex: none; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: var(--radius) var(--radius) 0 0; }
    .wbb-msg-banner { height: 100%; opacity: .35; }
    .wbb .wbb-msg-author .wbb-av128 { width: 48px; height: 48px; margin: 0; }
    .wbb .wbb-msg-author .wbb-av128 img { border-width: 2px; }
    .wbb .wbb-msg-content { width: 100%; border-radius: 0 0 var(--radius) var(--radius); border-top: 0; }
    .wbb .wbb-trow { grid-template-columns: 40px minmax(0, 1fr) 160px; }
}
@media (max-width: 640px) {
    .wbb-node-icon .ico { width: 26px; height: 26px; }
    .wbb .wbb-trow { grid-template-columns: minmax(0, 1fr); }
    .wbb .wbb-trow .col-subject h3 { font-size: 16px; }
}

/* Forum/Profile/Konversationen breiter als der Rest der Seite */
.wrap.wbb { max-width: min(1680px, 94vw); }
.wbb .wbb-layout { grid-template-columns: minmax(0, 1fr) 320px; }

/* Inhaltskarte immer mind. so hoch wie die Autorenkarte, Buttons unten */
.wbb .wbb-message { align-items: stretch; }
.wbb .wbb-message > .wbb-msg-author { align-self: flex-start; }
.wbb .wbb-message > .wbb-msg-content { align-self: stretch; display: flex; flex-direction: column; }
.wbb .wbb-msg-content > .wbb-msg-body { flex: 1 1 auto; }
.wbb .wbb-msg-content > .wbb-msg-foot { margin-top: auto; }
@media (max-width: 860px) { .wbb .wbb-message > .wbb-msg-author { align-self: stretch; } }
