/* Forum Layout - phpBB Style */
.forum-layout { min-height: 100vh; display: flex; flex-direction: column; }
.forum-topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; max-width: 960px; margin: 0 auto; }
.forum-topbar span { font-size: 0.82rem; color: #64748b; }
.forum-topbar-links { display: flex; align-items: center; gap: 8px; }

.forum-main { flex: 1; width: 100%; max-width: 960px; margin: 20px auto; padding: 0 16px; }
.forum-main h1 { display: none; }

/* Kategorie Block */
.forum-category { margin-bottom: 12px; border: 1px solid #e2e8f0; background: #fff; border-radius: 10px; overflow: hidden; }

/* Kategorie Header */
.forum-cat-header {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: grid;
    grid-template-columns: 1fr 80px 80px 180px;
    align-items: center;
    border-radius: 10px 10px 0 0;
}
.forum-cat-header-labels { display: contents; }
.forum-cat-header-label { font-size: 0.7rem; font-weight: 600; text-align: center; text-transform: uppercase; }
.forum-cat-header-label:last-child { text-align: left; padding-left: 10px; }

.forum-cat-desc {
    padding: 4px 12px;
    font-size: 0.75rem;
    color: #3b82f6;
    background: #eff6ff;
    border-bottom: 1px solid #e2e8f0;
}

/* Forum Zeile */
.forum-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 180px;
    padding: 10px 12px;
    border-top: 1px solid #e2e8f0;
    align-items: center;
    background: #fff;
    transition: background 0.1s;
}
.forum-row:nth-child(odd) { background: #f8fafc; }
.forum-row:hover { background: #eff6ff; }

.forum-row-info { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }

.forum-row-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    border: 2px solid #93c5fd;
}

.forum-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.forum-row-name { font-weight: 700; color: #2563eb; text-decoration: none; font-size: 0.9rem; }
.forum-row-name:hover { color: #1d4ed8; text-decoration: underline; }
.forum-row-desc { font-size: 0.76rem; color: #64748b; }

.forum-row-count {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.forum-row-last {
    font-size: 0.73rem;
    color: #64748b;
    line-height: 1.5;
    padding-left: 10px;
}
.forum-row-last strong { color: #2563eb; font-weight: 700; }
.forum-row-last a { color: #2563eb; text-decoration: none; }
.forum-row-last a:hover { text-decoration: underline; }

/* Leere Kategorie */
.forum-empty { padding: 14px 12px; color: #64748b; font-size: 0.82rem; background: #f8fafc; }

/* Footer Stats */
.forum-footer-stats {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.forum-stat { display: flex; flex-direction: column; align-items: center; }
.forum-stat-value { font-size: 1rem; font-weight: 700; color: #fff; }
.forum-stat-label { font-size: 0.68rem; color: #bfdbfe; margin-top: 1px; }

/* Portal */
.portal { max-width: 960px; margin: 0 auto; padding: 20px 16px; flex: 1; }
.portal-welcome { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; border-radius: 6px; padding: 36px 30px; margin-bottom: 20px; text-align: center; }
.portal-welcome h1 { font-size: 1.6rem; margin-bottom: 8px; }
.portal-welcome p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 20px; }
.portal-welcome-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.portal-welcome-actions .btn-login-small { background: white; color: #3b82f6; }
.portal-welcome-actions .btn-login-small:hover { background: #f0f7ff; }
.portal-welcome-actions .btn-cancel { color: white; border-color: rgba(255,255,255,0.5); }
.portal-welcome-actions .btn-cancel:hover { background: rgba(255,255,255,0.1); }

.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portal-grid .portal-box:last-child { grid-column: 1 / -1; }
.portal-grid .portal-box-wide { grid-column: 1 / -1; }
.portal-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; }
.portal-box-header { background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%); color: white; padding: 8px 14px; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; }
.portal-box-content { padding: 14px; }

.portal-list { list-style: none; padding: 0; }
.portal-list li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.portal-list li:last-child { border-bottom: none; }
.portal-list li a { color: #3b82f6; text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.portal-list li a:hover { text-decoration: underline; }
.portal-list-meta { display: block; font-size: 0.73rem; color: var(--text-light); margin-top: 2px; }
.portal-list-meta-inline { font-size: 0.73rem; color: var(--text-light); margin-left: 8px; }

.portal-stats { display: flex; justify-content: space-around; gap: 10px; margin-bottom: 12px; }
.portal-stat-item { display: flex; flex-direction: column; align-items: center; }
.portal-stat-val { font-size: 1.4rem; font-weight: 700; color: #3b82f6; }
.portal-stat-lbl { font-size: 0.7rem; color: var(--text-light); }
.portal-newest { text-align: center; font-size: 0.82rem; color: var(--text-light); padding-top: 10px; border-top: 1px solid #e2e8f0; }
.portal-newest strong { color: var(--text); }

.portal-page-footer { width: 100%; max-width: 960px; margin: 0 auto; padding: 20px 16px; display: flex; justify-content: center; gap: 20px; font-size: 0.78rem; color: var(--text-light); flex-wrap: wrap; margin-top: auto; border-top: 1px solid #e2e8f0; background: var(--card); }
.portal-page-footer a { color: var(--text-light); text-decoration: none; }
.portal-page-footer a:hover { color: #3b82f6; }

.portal-forum-preview { margin-top: 20px; }

@media (max-width: 768px) {
    .portal-grid { grid-template-columns: 1fr; }
    .portal-grid .portal-box-wide { grid-column: auto; }
    .portal-welcome { padding: 24px 16px; }
    .portal-welcome h1 { font-size: 1.3rem; }
    .portal { padding: 12px 10px; }
    .portal-stats { gap: 8px; }
    .portal-stat-item { padding: 8px 12px; }
    .forum-stats-numbers { flex-direction: column; gap: 4px; }
    .shout-smileys { gap: 2px; }
    .smiley-pick { width: 28px; height: 28px; font-size: 0.95rem; }
    .shout-textarea-row { flex-direction: column; }
    .shout-textarea-row textarea { width: 100%; }
    .shout-send-btn { width: 100%; padding: 10px; }
}

.stats-card { margin-top: 16px; padding: 24px; text-align: center; }
.stats-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 12px 20px; background: var(--bg); border-radius: 8px; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }
.stat-newest { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-light); }
.stat-newest strong { color: var(--text); }

/* BBCode Toolbar */
.bbcode-toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-bottom: none; border-radius: 4px 4px 0 0; }
.bbt-btn { width: 32px; height: 32px; border: 1px solid #e2e8f0; border-radius: 4px; background: white; cursor: pointer; font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.bbt-btn:hover { background: #3b82f6; color: white; border-color: #3b82f6; }
.bbt-italic { font-style: italic; }
.bbt-underline { text-decoration: underline; }
.bbt-sep { width: 1px; background: #e2e8f0; margin: 0 4px; }

/* Smiley Picker */
.smiley-picker { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-top: none; }
.smiley-btn { width: 32px; height: 32px; border: none; background: none; font-size: 1.2rem; cursor: pointer; border-radius: 4px; transition: background 0.15s; }
.smiley-btn:hover { background: #e2e8f0; }

/* BBCode Rendered */
.bbcode-quote { background: #f1f5f9; border-left: 4px solid #3b82f6; border-radius: 4px; padding: 12px 14px; margin: 10px 0; font-size: 0.88rem; position: relative; }
.bbcode-quote cite { display: block; font-weight: 700; color: #3b82f6; font-size: 0.8rem; margin-bottom: 6px; font-style: normal; }
.bbcode-quote .quote-content { color: #475569; }

/* Einklappbare Zitate */
.quote-collapsible .quote-content { overflow: hidden; transition: max-height 0.3s ease; }
.quote-collapsible.quote-collapsed .quote-content { max-height: 120px; mask-image: linear-gradient(to bottom, black 60%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%); }
.quote-toggle { display: block; margin-top: 6px; background: none; border: none; color: #3b82f6; font-size: 0.78rem; font-weight: 600; cursor: pointer; padding: 2px 0; }
.quote-toggle:hover { text-decoration: underline; }
.bbcode-code { background: #1e293b; color: #e2e8f0; padding: 12px; border-radius: 4px; font-size: 0.82rem; overflow-x: auto; margin: 10px 0; }
.bbcode-img { max-width: 100%; height: auto; border-radius: 4px; margin: 8px 0; }
.bbcode-list { padding-left: 20px; margin: 8px 0; }

/* Posts */
.post { display: flex; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.post-sidebar { width: 160px; flex-shrink: 0; background: #f8fafc; border-right: 1px solid #e2e8f0; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.post-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #3b82f6; }
.post-avatar-placeholder { width: 60px; height: 60px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.post-username { font-weight: 700; font-size: 0.85rem; margin-top: 4px; }
.post-rank { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.post-user-stats { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 0.7rem; color: var(--text-light); }
.post-user-stats span { white-space: nowrap; }
.post-content { flex: 1; padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; gap: 6px; }
.post-date { font-size: 0.75rem; color: var(--text-light); }
.post-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.post-actions .btn-sm { padding: 5px 12px; border: 1px solid #3b82f6; border-radius: 6px; background: #eff6ff; cursor: pointer; font-size: 0.76rem; color: #3b82f6; font-weight: 500; white-space: nowrap; transition: all 0.15s; }
.post-actions .btn-sm:hover { background: #3b82f6; color: white; }
.post-actions .btn-sm-danger { color: #ef4444; border-color: #ef4444; background: #fef2f2; }
.post-actions .btn-sm-danger:hover { background: #ef4444; color: white; }
.post-body { font-size: 0.9rem; line-height: 1.7; word-break: break-word; flex: 1; }
.post-edited { font-size: 0.72rem; color: var(--text-light); font-style: italic; margin-top: 12px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.post-signature { font-size: 0.8rem; color: var(--text-light); margin-top: 14px; padding-top: 10px; border-top: 1px solid #e2e8f0; }

/* Thread Badges */
.thread-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; margin-left: 8px; }
.locked-badge { background: #fef2f2; color: #ef4444; }
.pinned-badge { background: #eff6ff; color: #3b82f6; }

/* Reply Form */
.reply-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin-top: 16px; }
.reply-form h3 { font-size: 1rem; margin-bottom: 12px; }

/* Quote Preview (nicht editierbar) */
.quote-preview-area { margin-bottom: 10px; }
.quote-block { background: #f1f5f9; border-left: 4px solid #3b82f6; border-radius: 4px; padding: 10px 14px; margin-bottom: 8px; position: relative; }
.quote-block-header { font-size: 0.78rem; font-weight: 700; color: #3b82f6; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.quote-block-text { font-size: 0.85rem; color: #475569; white-space: pre-wrap; }
.quote-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1rem; padding: 0 4px; }

/* Thread Locked Notice */
.thread-locked-notice { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin-top: 16px; font-size: 0.85rem; color: var(--text-light); text-align: center; }
.thread-locked-notice a { color: #3b82f6; text-decoration: none; }
.thread-locked-notice a:hover { text-decoration: underline; }

/* Typing Indicator */
.typing-indicator { font-size: 0.8rem; color: #3b82f6; font-style: italic; padding: 8px 0; display: none; }

/* Forum Online Box */
.forum-online-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: 0.82rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.forum-online-box strong { color: var(--text); }

/* New Post Highlight */
.new-post-highlight { animation: postFadeIn 0.5s ease; }
@keyframes postFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Notification Badge */
.notif-badge { background: #ef4444; color: white; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: none; align-items: center; justify-content: center; margin-left: 4px; }

/* Toast Notification */
.ws-toast { position: fixed; bottom: 20px; right: 20px; background: #1e293b; color: white; padding: 14px 18px; border-radius: 8px; font-size: 0.85rem; display: flex; gap: 12px; align-items: center; box-shadow: 0 4px 20px rgba(0,0,0,0.3); transform: translateY(100px); opacity: 0; transition: all 0.3s ease; z-index: 9999; }
.ws-toast.show { transform: translateY(0); opacity: 1; }
.ws-toast a { color: #60a5fa; text-decoration: none; font-weight: 600; }
.ws-toast a:hover { text-decoration: underline; }

/* New Thread Form */
.new-thread-form { background: var(--card); border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin-top: 12px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-textarea { width: 100%; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 0.9rem; color: var(--text); outline: none; resize: vertical; font-family: inherit; line-height: 1.6; transition: border-color 0.2s; }
.form-textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }
.form-textarea-editor { border-radius: 0 0 4px 4px; border-top: none; }
.mod-options { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; padding: 12px; margin-bottom: 16px; font-size: 0.85rem; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-cancel { padding: 8px 18px; font-size: 0.85rem; color: var(--text-light); text-decoration: none; border: 1px solid #e2e8f0; border-radius: 8px; transition: all 0.2s; }
.btn-cancel:hover { background: #f8fafc; color: var(--text); }

/* Breadcrumb */
.breadcrumb { font-size: 0.8rem; color: var(--text-light); margin-bottom: 16px; }
.breadcrumb a { color: #3b82f6; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Forum Info Bar */
.forum-info-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%); border-radius: 10px; padding: 14px 16px; }
.forum-info-bar h1 { font-size: 1.3rem; margin: 0; color: white; }
.forum-info-bar p { color: rgba(255,255,255,0.8); margin: 0; }

/* Mod Bar */
.forum-mods-bar { font-size: 0.78rem; color: var(--text-light); margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Thread Row Variants */
.thread-row.pinned { background: #eff6ff !important; border-left: 3px solid #3b82f6; }
.thread-row.locked { opacity: 0.7; }
.thread-check { width: 16px; height: 16px; accent-color: #3b82f6; flex-shrink: 0; }

/* Mod Toolbar */
.mod-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 0; margin-top: 8px; border-top: 1px solid #e2e8f0; }
.mod-toolbar .btn-sm { padding: 6px 14px; border: 1px solid #3b82f6; border-radius: 6px; background: #eff6ff; cursor: pointer; font-size: 0.8rem; color: #3b82f6; font-weight: 500; white-space: nowrap; transition: all 0.15s; }
.mod-toolbar .btn-sm:hover { background: #3b82f6; color: white; }
.mod-toolbar .btn-sm-danger { color: #ef4444; border-color: #ef4444; background: #fef2f2; }
.mod-toolbar .btn-sm-danger:hover { background: #ef4444; color: white; }

/* Pagination / Load More */
.pagination { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.page-link { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 0.82rem; color: #3b82f6; text-decoration: none; }
.page-link:hover { background: #eff6ff; }
.page-link.active { background: #3b82f6; color: white; border-color: #3b82f6; }
.loadmore-wrap { text-align: center; padding: 16px 0; }

/* Responsive */
@media (max-width: 768px) {
    .forum-cat-header { display: block; }
    .forum-cat-header-label { display: none; }
    .forum-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px;
    }
    .forum-row-count { display: none; }
    .forum-row-last { padding-left: 0; margin-top: 4px; }
    .forum-footer-stats { gap: 20px; padding: 10px; }
    .post { flex-direction: column; }
    .post-sidebar { width: 100%; flex-direction: row; gap: 12px; border-right: none; border-bottom: 1px solid #e2e8f0; padding: 10px 14px; }
    .post-avatar, .post-avatar-placeholder { width: 40px; height: 40px; }
    .post-user-stats { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .mod-toolbar { flex-direction: column; align-items: flex-start; }

    /* Bessere Touch-Targets (min 44px) */
    .btn-sm, .post-actions .btn-sm, .mod-toolbar .btn-sm { min-height: 44px; min-width: 44px; padding: 10px 14px; font-size: 0.82rem; }
    .react-btn { min-height: 44px; min-width: 44px; padding: 8px 12px; font-size: 0.9rem; }
    .bbt-btn { width: 44px; height: 44px; }
    .smiley-btn { width: 44px; height: 44px; font-size: 1.4rem; }
    .page-link { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; }
    .nav-link { min-height: 44px; display: flex; align-items: center; }
    .btn-login-small { min-height: 44px; padding: 10px 18px; }

    /* Post-Aktionen besser auf Mobile */
    .post-actions { gap: 8px; margin-top: 6px; width: 100%; }
    .post-header { flex-direction: column; align-items: flex-start; }

    /* Forum-Zeilen besser tippen */
    .forum-row-name { font-size: 1rem; padding: 4px 0; }
    .forum-row-info { padding: 4px 0; }

    /* Info-Bar */
    .forum-info-bar { padding: 12px; }
    .forum-info-bar h1 { font-size: 1.1rem; }

    /* Reply-Form */
    .reply-form { padding: 14px; }
    .form-textarea { font-size: 16px; } /* Verhindert iOS Zoom */

    /* Breadcrumb */
    .breadcrumb { font-size: 0.75rem; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }

    /* YouTube Embed */
    .yt-play-btn { width: 56px; height: 40px; border-radius: 10px; }
    .yt-play-btn::after { border-width: 8px 0 8px 14px; }

    /* Scroll-Top Button */
    .scroll-top-btn { bottom: 16px; right: 16px; }
}

/* Swipe-Hint Animation für Posts */
@media (max-width: 768px) {
    .post-content { overflow-x: hidden; }
    .forum-main { padding: 0 10px; }
    .post { margin-bottom: 8px; border-radius: 8px; }
}


/* Scroll to Top */
.scroll-top-btn { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: #3b82f6; color: white; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0; transition: opacity 0.3s, transform 0.3s; transform: translateY(20px); z-index: 999; box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.scroll-top-btn.show { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: #2563eb; }

/* Hover Card */
.hover-card { position: absolute; width: 260px; background: white; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.hover-card.show { opacity: 1; pointer-events: auto; }
.hc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hc-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hc-avatar-ph { width: 40px; height: 40px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; }
.hc-rank { display: block; font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }
.hc-stats { display: flex; gap: 12px; font-size: 0.75rem; color: #64748b; }
.hc-sig { margin-top: 8px; font-size: 0.73rem; color: #64748b; font-style: italic; border-top: 1px solid #f1f5f9; padding-top: 8px; }

/* Ungelesene Threads */
.thread-row.unread .forum-row-name { font-weight: 800; }
.thread-row.unread .forum-row-icon { background: linear-gradient(135deg, #3b82f6, #60a5fa); border-color: #3b82f6; }
.thread-row.unread .forum-row-icon { color: white; }

/* Thread Vorschau Tooltip */
.forum-row-name[title] { position: relative; }


/* Like Button */
.post-reactions { margin-top: 10px; padding-top: 8px; border-top: 1px solid #f1f5f9; display: flex; gap: 6px; }
.react-btn { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 20px; padding: 4px 10px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.react-btn:hover { background: #eff6ff; border-color: #3b82f6; transform: scale(1.1); }
.react-btn.reacted { background: #3b82f6; color: white; border-color: #3b82f6; }
.react-count { font-weight: 600; margin-left: 2px; font-size: 0.75rem; }

/* BBCode Preview */
.bbcode-preview { display: none; margin-top: 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.bbcode-preview-label { background: #e2e8f0; padding: 4px 12px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; color: var(--text-light); }
.bbcode-preview-content { padding: 12px; font-size: 0.88rem; line-height: 1.6; }


/* Post Number */
.post-number { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }

/* Spoiler */
.bbcode-spoiler { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; margin: 10px 0; }
.bbcode-spoiler summary { padding: 8px 12px; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: #3b82f6; }
.bbcode-spoiler summary:hover { background: #eff6ff; }
.bbcode-spoiler > div { padding: 10px 12px; border-top: 1px solid #e2e8f0; }

/* YouTube Embed */
.bbcode-youtube { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; margin: 10px 0; background: #000; }
.bbcode-youtube iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.yt-placeholder:hover .yt-play-btn { transform: translate(-50%, -50%) scale(1.1); }
.yt-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; background: rgba(255,0,0,0.8); border-radius: 12px; pointer-events: none; }
.yt-play-btn::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }

/* Nav Active */
.nav-link.active { background: rgba(59,130,246,0.08); color: #3b82f6; }


/* Suche */
.search-box { margin-bottom: 20px; }
.search-form { display: flex; gap: 8px; }
.search-input { flex: 1; font-size: 0.95rem; }
.search-tabs { display: flex; gap: 4px; margin-top: 12px; }
.search-tab { padding: 6px 14px; border-radius: 6px; font-size: 0.82rem; font-weight: 500; color: var(--text-light); text-decoration: none; border: 1px solid #e2e8f0; }
.search-tab:hover { background: #f8fafc; }
.search-tab.active { background: #3b82f6; color: white; border-color: #3b82f6; }
.search-section { margin-bottom: 20px; }
.search-section-title { font-size: 0.95rem; margin-bottom: 10px; color: var(--text); }
.search-count { font-weight: 400; color: var(--text-light); font-size: 0.82rem; }
.search-result { padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 8px; background: #fff; }
.search-result:hover { border-color: #3b82f6; }
.search-result-title { font-weight: 600; color: #3b82f6; text-decoration: none; font-size: 0.9rem; }
.search-result-title:hover { text-decoration: underline; }
.search-result-snippet { font-size: 0.82rem; color: #475569; margin-top: 4px; line-height: 1.5; }
.search-result-meta { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }
.search-result-user { display: flex; gap: 12px; align-items: center; }
.search-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.search-avatar-ph { width: 40px; height: 40px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; }
.search-empty { text-align: center; padding: 40px; color: var(--text-light); font-size: 0.9rem; }

/* Profil */
.profile-header { display: flex; align-items: center; gap: 20px; padding: 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #3b82f6; }
.profile-avatar-ph { width: 80px; height: 80px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.profile-status { position: absolute; bottom: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid white; }
.profile-status.online { background: #22c55e; }
.profile-status.offline { background: #94a3b8; }
.profile-info { flex: 1; }
.profile-info h1 { font-size: 1.4rem; margin: 0; }
.profile-rank { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.profile-online { font-size: 0.78rem; margin-left: 8px; }
.profile-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.profile-stat { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; background: #f8fafc; border-radius: 8px; }
.profile-stat-val { font-size: 1.1rem; font-weight: 700; color: #3b82f6; }
.profile-stat-lbl { font-size: 0.68rem; color: var(--text-light); }
.profile-signature { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; margin-bottom: 16px; font-size: 0.85rem; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.profile-section h3 { font-size: 0.95rem; margin-bottom: 12px; }
.profile-item { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.profile-item:last-child { border-bottom: none; }
.profile-item a { color: #3b82f6; text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.profile-item a:hover { text-decoration: underline; }
.profile-item-snippet { display: block; font-size: 0.78rem; color: #64748b; margin-top: 2px; }
.profile-item-meta { display: block; font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } .profile-header { flex-direction: column; text-align: center; } .profile-stats { justify-content: center; } }


/* Forum Statistik (phpBB-Style) */
.forum-stats-full { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-top: 16px; overflow: hidden; }
.forum-stats-row { padding: 14px 18px; border-bottom: 1px solid #e2e8f0; }
.forum-stats-numbers { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.82rem; color: #475569; }
.forum-stats-numbers strong { color: #1e293b; }
.forum-stats-online { padding: 14px 18px; font-size: 0.82rem; color: #475569; }
.forum-stats-online > strong { display: block; margin-bottom: 4px; color: #1e293b; font-size: 0.85rem; }
.forum-stats-online > span { display: block; margin-bottom: 8px; }
.forum-stats-online-list { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.forum-stats-online-list a:hover { text-decoration: underline !important; }


/* Portal Online-Statistik */
.portal-online-stats { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; font-size: 0.82rem; color: #475569; }
.portal-online-stats strong { display: block; margin-bottom: 4px; color: #1e293b; }
.portal-online-stats > span { display: block; margin-bottom: 8px; }
.portal-online-list { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.portal-online-list a:hover { text-decoration: underline !important; }


/* Heute online */
.portal-today-online { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0; font-size: 0.82rem; color: #475569; }
.portal-today-online strong { display: block; margin-bottom: 4px; color: #64748b; font-size: 0.78rem; }
.forum-stats-today { padding: 12px 18px; border-top: 1px solid #e2e8f0; font-size: 0.82rem; color: #475569; }
.forum-stats-today strong { display: block; margin-bottom: 6px; color: #64748b; font-size: 0.8rem; }
.today-time { font-size: 0.72rem; color: #94a3b8; margin-right: 8px; }


/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.lightbox-img { position: relative; max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); object-fit: contain; }

/* Post-Permalink */
.post-permalink { color: inherit; text-decoration: none; }
.post-permalink:hover { color: #3b82f6; text-decoration: underline; }

/* Zurück-Button */
.thread-back-bar { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e2e8f0; }

/* Edit-Countdown */
.edit-countdown { font-size: 0.7rem; opacity: 0.7; font-weight: 400; }

/* Klickbare Bilder */
.post-body img { cursor: pointer; transition: opacity 0.2s; }
.post-body img:hover { opacity: 0.85; }


/* Keyboard Focus */
.forum-row.keyboard-focus { outline: 2px solid #3b82f6; outline-offset: -2px; background: #eff6ff !important; }

/* Activity Timeline */
.activity-timeline { display: flex; flex-direction: column; gap: 8px; }
.activity-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.activity-content { flex: 1; font-size: 0.82rem; color: #475569; }
.activity-content a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.activity-content a:hover { text-decoration: underline; }
.activity-time { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }

/* Online-Rekord */
.forum-stats-record { display: block; font-size: 0.75rem; color: #64748b; margin-top: 4px; font-style: italic; }


/* Bot-Namen in Statistik */
.forum-stats-bots { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e2e8f0; font-size: 0.78rem; color: #64748b; }
.forum-stats-bots-label { font-weight: 600; margin-right: 6px; }
.bot-name { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; font-size: 0.72rem; }


/* Settings-Felder mit Sichtbarkeits-Dropdown */
.settings-field { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.settings-field:last-of-type { border-bottom: none; }
.settings-field-main { flex: 1; }
.settings-field-vis { width: 120px; flex-shrink: 0; }
.form-input-sm { padding: 6px 8px; font-size: 0.75rem; }
.form-hint { font-size: 0.72rem; color: #94a3b8; margin-top: 3px; }

/* Profil-Details */
.profile-details { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-detail-item { display: flex; align-items: center; gap: 8px; }
.profile-detail-full { grid-column: 1 / -1; align-items: flex-start; }
.profile-detail-icon { font-size: 1.1rem; flex-shrink: 0; }
.profile-detail-label { font-size: 0.72rem; color: #64748b; text-transform: uppercase; font-weight: 600; min-width: 60px; }
.profile-detail-value { font-size: 0.85rem; color: #1e293b; font-weight: 500; }
@media (max-width: 768px) { .profile-details { grid-template-columns: 1fr; } .settings-field { flex-direction: column; } .settings-field-vis { width: 100%; } }


/* Profil Social Links */
.profile-social { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.profile-social-link { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: #475569; font-size: 0.82rem; font-weight: 500; transition: all 0.15s; }
.profile-social-link:hover { background: #eff6ff; border-color: #3b82f6; color: #3b82f6; }
.profile-social-icon { font-size: 1.1rem; }


/* Portal Neue Mitglieder */
.portal-members-list { display: flex; flex-direction: column; gap: 8px; }
.portal-member-item { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.portal-member-item:last-child { border-bottom: none; }
.portal-member-item:hover { background: #f8fafc; margin: 0 -8px; padding: 6px 8px; border-radius: 6px; }
.portal-member-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.portal-member-avatar-ph { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* Shoutbox */
.shout-msg { padding: 5px 0; font-size: 0.82rem; line-height: 1.5; border-bottom: 1px solid #f1f5f9; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.shout-msg:last-child { border-bottom: none; }
.shout-user { font-weight: 600; text-decoration: none; white-space: nowrap; }
.shout-user:hover { text-decoration: underline; }
.shout-text { flex: 1; word-break: break-word; }
.shout-time { font-size: 0.68rem; color: #94a3b8; margin-left: auto; white-space: nowrap; }
.shout-input-wrap { border-top: 1px solid #e2e8f0; padding-top: 10px; }
.shout-smileys { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.smiley-pick { width: 32px; height: 32px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.smiley-pick:hover { background: #eff6ff; border-color: #3b82f6; transform: scale(1.15); }
.shout-textarea-row { display: flex; gap: 8px; align-items: flex-end; }
.shout-textarea-row textarea { flex: 1; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.85rem; font-family: inherit; resize: none; line-height: 1.4; }
.shout-textarea-row textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }
.shout-send-btn { padding: 8px 18px; background: #3b82f6; color: white; border: none; border-radius: 8px; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.shout-send-btn:hover { background: #2563eb; }
