/* ============================================================
   FORUM — Boards, Threads, Beiträge, Umfragen, Suche
   ============================================================ */

/* ---- aus forum.php ---- */
/* ── Forum Admin Button ── */
.forum-admin-btn {
    width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 0.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
}
.forum-admin-btn:hover {
    background: rgba(108,123,255,0.1); border-color: rgba(108,123,255,0.3);
    color: rgba(255,255,255,0.8);
}
.forum-admin-btn.active {
    background: rgba(108,123,255,0.2); border-color: rgba(108,123,255,0.5);
    color: #fff; box-shadow: 0 0 10px rgba(108,123,255,0.2);
}

/* ── Admin Panel ── */
.forum-admin-panel {
    margin-bottom: 20px; background: rgba(255,255,255,0.02);
    border: 0.5px solid rgba(108,123,255,0.18); border-radius: 10px;
    overflow: hidden; animation: fapIn .15s ease;
}
@keyframes fapIn { from{opacity:0;transform:translateY(-5px)} to{opacity:1;transform:translateY(0)} }

.fap-tabs { display:flex; background:rgba(0,0,0,0.12); border-bottom:0.5px solid rgba(255,255,255,0.07); }
.fap-tab  {
    padding:10px 18px; font-size:12px; font-weight:600;
    text-transform:uppercase; letter-spacing:.06em;
    background:none; border:none; border-bottom:2px solid transparent;
    color:rgba(255,255,255,0.32); cursor:pointer; transition:color .12s;
}
.fap-tab:hover     { color:rgba(255,255,255,0.65); }
.fap-tab--active   { color:#9ab0ff; border-bottom-color:#6c7bff; }

.fap-tabcontent { padding:16px; }
.fap-row {
    display:grid; grid-template-columns:1fr 1fr; gap:14px;
}
@media (max-width:680px) { .fap-row { grid-template-columns:1fr; } }

.fap-box {
    background:rgba(0,0,0,0.15); border:0.5px solid rgba(255,255,255,0.07);
    border-radius:8px; padding:14px; display:flex; flex-direction:column; gap:5px;
}
.fap-box-title {
    font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em;
    color:rgba(255,255,255,0.35); padding-bottom:8px;
    border-bottom:0.5px solid rgba(255,255,255,0.06); margin-bottom:4px;
}
.fap-label { font-size:11px; font-weight:500; color:rgba(255,255,255,0.38); margin-top:4px; }
.fap-hint  { font-weight:400; font-size:10px; opacity:.7; }

.fap-input {
    width:100%; padding:7px 10px; background:rgba(0,0,0,0.22);
    border:0.5px solid rgba(255,255,255,0.1); border-radius:6px;
    color:#e6e6e6; font-family:inherit; box-sizing:border-box;
    transition:border-color .12s;
}
.fap-input:focus, .fap-select:focus { outline:none; border-color:rgba(108,123,255,0.45); }
.fap-input::placeholder { color:rgba(255,255,255,0.18); }
.fap-select option { background:#1a1d2e; }

.fap-btn {
    padding:7px 14px; font-size:12px; font-weight:500; border-radius:6px;
    border:0.5px solid rgba(255,255,255,0.1); cursor:pointer; font-family:inherit;
    transition:opacity .12s, background .12s;
}
.fap-btn--primary { background:#4a5de0; color:#fff; border-color:transparent; }
.fap-btn--primary:hover { opacity:.85; }
.fap-btn--danger  { background:rgba(200,0,0,0.18); color:#f1948a; border-color:rgba(231,76,60,.25); }
.fap-btn--danger:hover  { background:rgba(200,0,0,0.32); }
.fap-btn-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

.fap-link-btn {
    background:none; border:none; color:rgba(108,123,255,0.75); cursor:pointer;
    font-size:11px; font-family:inherit; text-decoration:underline;
    text-underline-offset:2px; padding:0; transition:color .12s;
}
.fap-link-btn:hover { color:#9ab0ff; }

.fap-fb { font-size:12px; font-weight:500; }
.fap-fb--ok  { color:#5dd6a1; }
.fap-fb--err { color:#f1948a; }

.fap-loading { display:flex; align-items:center; gap:8px; padding:14px; font-size:12px; color:rgba(255,255,255,0.28); justify-content:center; }
.fap-spinner {
    width:13px; height:13px; flex-shrink:0; border-radius:50%;
    border:2px solid rgba(255,255,255,0.08); border-top-color:rgba(108,123,255,.7);
    animation:fapSpin .65s linear infinite;
}
@keyframes fapSpin { to{transform:rotate(360deg)} }
.fap-empty { padding:14px; text-align:center; font-size:12px; color:rgba(255,255,255,0.22); }

/* ── Access Tabs ── */
.acc-for-tabs { display:flex; gap:5px; }
.acc-for-tab {
    padding:4px 12px; font-size:11px; font-weight:500;
    border:0.5px solid rgba(255,255,255,0.1); border-radius:99px;
    background:rgba(255,255,255,0.02); color:rgba(255,255,255,.38); cursor:pointer;
    transition:border-color .12s, color .12s, background .12s;
}
.acc-for-tab--active {
    border-color:rgba(108,123,255,.4); background:rgba(108,123,255,.1); color:rgba(255,255,255,.82);
}

.acc-user-results {
    max-height:130px; overflow-y:auto;
    border:0.5px solid rgba(255,255,255,0.08); border-radius:6px; background:rgba(0,0,0,0.18);
}
.acc-user-result {
    display:flex; align-items:center; gap:8px; padding:6px 10px;
    font-size:12px; cursor:pointer; color:#e6e6e6; transition:background .1s;
    border-bottom:0.5px solid rgba(255,255,255,0.05);
}
.acc-user-result:last-child { border-bottom:none; }
.acc-user-result:hover { background:rgba(255,255,255,0.05); }
.acc-user-result img { width:20px; height:20px; border-radius:50%; object-fit:cover; flex-shrink:0; }

.acc-user-selected {
    display:flex; align-items:center; justify-content:space-between;
    padding:5px 10px; background:rgba(108,123,255,0.08);
    border:0.5px solid rgba(108,123,255,.28); border-radius:6px;
    font-size:12px; color:#9ab0ff; margin-top:4px;
}

.acc-rules-list { display:flex; flex-direction:column; gap:4px; margin-top:8px; max-height:240px; overflow-y:auto; }
.acc-rules-list::-webkit-scrollbar { width:4px; }
.acc-rules-list::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:2px; }

.acc-rule-item {
    display:flex; align-items:center; gap:7px; padding:6px 10px;
    background:rgba(0,0,0,0.13); border:0.5px solid rgba(255,255,255,0.06);
    border-radius:6px; font-size:12px;
}
.acc-rule-board { flex:1; font-weight:500; color:#e6e6e6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.acc-rule-type  { padding:2px 7px; border-radius:99px; font-size:10px; font-weight:600; flex-shrink:0; white-space:nowrap; }
.acc-rule-type--read  { background:rgba(108,123,255,.14); color:#9ab0ff; }
.acc-rule-type--write { background:rgba(46,204,113,.13);  color:#5dd6a1; }
.acc-rule-who   { color:rgba(255,255,255,.48); flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.acc-rule-del   { flex-shrink:0; color:rgba(231,76,60,.6); font-size:12px; }
.acc-rule-del:hover { color:#e74c3c; }
/* ── Thread-Flags + Subscribe in Headline ── */
.headline-thread-flags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    font-family: inherit;
    line-height: 1;
    cursor: default;
    transition: background .15s, color .15s, border-color .15s;
}
.flag--sticky { background:rgba(108,123,255,0.1); color:#8899ff; border-color:rgba(108,123,255,0.3); }
.flag--closed { background:rgba(200,0,0,0.08); color:#e74c3c; border-color:rgba(200,0,0,0.25); }
.flag--subscribe {
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.45);
    border-color: rgba(255,255,255,0.12);
}
.flag--subscribe:hover {
    background: rgba(255,200,60,0.08);
    color: #ffc83c;
    border-color: rgba(255,200,60,0.35);
}
.flag--subscribe-active {
    background: rgba(255,200,60,0.1) !important;
    color: #ffc83c !important;
    border-color: rgba(255,200,60,0.35) !important;
}
.flag--mod {
    cursor: pointer;
    background: rgba(108,123,255,0.08);
    color: #8899ff;
    border-color: rgba(108,123,255,0.25);
}
.flag--mod:hover {
    background: rgba(108,123,255,0.18);
    color: #aabbff;
    border-color: rgba(108,123,255,0.5);
}


/* ---- aus forum_search.php ---- */
/* ================================================================
   FORUM SEARCH PAGE
================================================================ */

/* ── Back Button ── */
.fs-back-btn {
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,0.5); text-decoration: none;
    padding: 5px 12px;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    transition: background .12s, color .12s;
}
.fs-back-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); }

/* ── Suchfeld (oben, volle Breite) ── */
.fs-searchbar-wrap {
    padding: 16px 0 20px;
}
.fs-searchbar-form { width: 100%; }

.fs-searchbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0 16px;
    height: 48px;
    transition: border-color .15s, background .15s;
}
.fs-searchbar:focus-within {
    border-color: rgba(255,215,0,0.3);
    background: rgba(255,255,255,0.06);
}
.fs-searchbar__icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .4; stroke: #fff; }
.fs-searchbar__input {
    flex: 1; background: none; border: none; outline: none;
    color: #e8ecf5; font-size: 15px; font-family: inherit;
    caret-color: #ffd700; min-width: 0;
}
.fs-searchbar__input::placeholder { color: rgba(255,255,255,.25); }
.fs-searchbar__clear {
    background: none; border: none; color: rgba(255,255,255,.3); cursor: pointer;
    font-size: 14px; padding: 4px 6px; border-radius: 4px; flex-shrink: 0;
    transition: color .12s, background .12s;
}
.fs-searchbar__clear:hover { color: #fff; background: rgba(255,255,255,.07); }
.fs-searchbar__btn {
    flex-shrink: 0; padding: 7px 18px; border: none; border-radius: 7px;
    background: rgba(108,123,255,0.75); color: #fff;
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: opacity .12s;
}
.fs-searchbar__btn:hover { opacity: .88; }

/* ── Layout: Sidebar + Content ── */
.fs-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
    padding-bottom: 40px;
}
@media (max-width: 700px) {
    .fs-layout { grid-template-columns: 1fr; }
    .fs-sidebar { display: flex; flex-wrap: wrap; gap: 8px; }
    .fs-filter-block { flex: 1; min-width: 140px; }
}

/* ── Sidebar ── */
.fs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}
.fs-filter-block {
    background: rgba(255,255,255,0.02);
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
}
.fs-filter-title {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,0.3);
    padding: 10px 12px 6px;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.fs-filter-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.04);
    transition: background .1s, color .1s;
    cursor: pointer;
}
.fs-filter-item:last-child { border-bottom: none; }
.fs-filter-item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.85); }
.fs-filter-item--active {
    background: rgba(108,123,255,0.1);
    color: #9ab0ff;
    font-weight: 600;
}
.fs-filter-item--active:hover { background: rgba(108,123,255,0.15); }
.fs-filter-item--sub { padding-left: 22px; font-size: 11px; }
.fs-filter-item__icon { font-size: 13px; flex-shrink: 0; opacity: .7; }

/* ── Ergebnis-Header ── */
.fs-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 14px;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
    margin-bottom: 16px;
    font-size: 13px;
}
.fs-results-count { color: rgba(255,255,255,0.7); }
.fs-results-count strong { color: #e8ecf5; }
.fs-results-count em { color: #9ab0ff; font-style: normal; }
.fs-results-meta { font-size: 11px; color: rgba(255,255,255,0.28); }

/* ── Result Item ── */
.fs-list { display: flex; flex-direction: column; gap: 10px; }

.fs-item {
    background: rgba(255,255,255,0.02);
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px 16px;
    transition: border-color .12s, background .12s;
}
.fs-item:hover {
    border-color: rgba(108,123,255,0.3);
    background: rgba(255,255,255,0.03);
}

.fs-item__head {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 6px;
}
.fs-item__type {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 2px 7px; border-radius: 4px; flex-shrink: 0;
}
.fs-item__type--thread { background: rgba(108,123,255,0.15); color: #9ab0ff; }
.fs-item__type--post   { background: rgba(46,204,113,0.12);  color: #5dd6a1; }

.fs-item__board {
    font-size: 11px; color: rgba(255,255,255,0.35);
    text-decoration: none; transition: color .12s;
}
.fs-item__board:hover { color: rgba(255,255,255,0.65); }

.fs-item__badge {
    font-size: 10px; padding: 1px 6px; border-radius: 4px;
}
.fs-item__badge--sticky { background: rgba(108,123,255,0.12); color: #8fa4ff; }
.fs-item__badge--closed { background: rgba(200,0,0,0.12);     color: #e74c3c; }

.fs-item__title {
    display: block;
    font-size: 14px; font-weight: 600; color: #e8ecf5;
    text-decoration: none; line-height: 1.4;
    margin-bottom: 6px;
    transition: color .12s;
}
.fs-item__title:hover { color: #c5d3ff; }

.fs-mark {
    background: rgba(255,215,0,0.2);
    color: #ffd700;
    border-radius: 2px;
    padding: 0 1px;
    font-style: normal;
}

.fs-item__snippet {
    font-size: 12px; color: rgba(255,255,255,0.45);
    line-height: 1.6; margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-item__footer {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap; font-size: 11px; color: rgba(255,255,255,0.3);
}
.fs-item__author {
    display: flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.45);
}
.fs-item__avatar {
    width: 18px; height: 18px; border-radius: 3px;
    object-fit: cover; flex-shrink: 0;
}
.fs-item__date { color: rgba(255,255,255,0.25); }
.fs-item__replies { color: rgba(255,255,255,0.3); }
.fs-item__page {
    font-size: 10px; padding: 1px 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    color: rgba(255,255,255,0.4);
}

/* ── Empty State ── */
.fs-empty {
    display: flex; flex-direction: column; align-items: center;
    padding: 60px 20px; text-align: center; gap: 10px;
}
.fs-empty__icon  { font-size: 40px; opacity: .4; }
.fs-empty__title { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.5); }
.fs-empty__desc  { font-size: 13px; color: rgba(255,255,255,0.28); line-height: 1.6; }
.fs-empty__desc a { color: #9ab0ff; text-decoration: underline; }

/* ── Pagination ── */
.fs-pagination {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 5px;
    padding-top: 24px; margin-top: 8px;
    border-top: 0.5px solid rgba(255,255,255,0.06);
}
.fs-page {
    min-width: 34px; height: 34px; padding: 0 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.5); text-decoration: none;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    transition: background .12s, color .12s, border-color .12s;
}
.fs-page:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); }
.fs-page--active {
    background: rgba(108,123,255,0.2);
    border-color: rgba(108,123,255,0.45);
    color: #fff;
}
.fs-page--arrow { min-width: auto; padding: 0 14px; }
.fs-page-gap { color: rgba(255,255,255,0.25); font-size: 13px; padding: 0 4px; }

/* ---- aus forum_survey.php ---- */
/* ================================================================
   SURVEY WIDGET
================================================================ */
.sv-widget {
    margin: 0;
}

/* Header */
.sv-header {
    display: flex; align-items: flex-start; gap: 8px;
    margin-top: 10px; padding: 10px 0 5px 0; flex-wrap: wrap; border-top: 0.5px solid rgba(255,255,255,0.06);
}
.sv-icon     { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.sv-question { flex:1; font-size:13px; font-weight:600; color:#e8ecf5; line-height:1.4; min-width:0; }
.sv-badges   { display:flex; gap:5px; flex-wrap:wrap; align-items:center; }
.sv-badge {
    font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 99px;
    background: rgba(108,123,255,0.12); color: rgba(255,255,255,0.45);
    border: 0.5px solid rgba(255,255,255,0.1);
}
.sv-badge--secret { background:rgba(255,200,0,0.1);  color:rgba(255,200,0,0.6); }
.sv-badge--closed { background:rgba(200,0,0,0.1);    color:rgba(231,76,60,0.7); }

/* Options */
.sv-options { display:flex; flex-direction:column; gap:6px; margin:10px 0; }

.sv-option-row { display:flex; align-items:center; gap:6px; }
.sv-option-row .sv-option { flex:1; }

.sv-voters-btn {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    transition: background .12s, border-color .12s, color .12s;
}
.sv-voters-btn:hover { background: rgba(108,123,255,0.12); border-color: rgba(108,123,255,0.35); color: #c0caff; }

.sv-badges-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin: 4px 0 8px;
}

.sv-option {
    position: relative;
    border-radius: 3px;

    border: 1px solid rgba(255,255,255,0.10);

    overflow: hidden;
    transition:
        border-color .15s ease,
        background .15s ease;

    background: rgba(255,255,255,0.03);

    padding: 5px 10px;

    box-shadow:
        0 1px 3px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.sv-option:hover {
    border-color: rgba(108,123,255,0.35);

    background: rgba(108,123,255,0.06);

    box-shadow:
        0 2px 5px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);
}


.sv-option--voted { border-color:rgba(108,123,255,0.4); background:rgba(108,123,255,0.06); }
.sv-option__bar-wrap { position:absolute; inset:0; pointer-events:none; }
.sv-option__bar {
    height:100%; background:rgba(108,123,255,0.15);
    transition:width .4s ease; border-radius:0px;
}
.sv-option--voted .sv-option__bar { background:rgba(108,123,255,0.18); }
.sv-option__content {
    position:relative; display:flex; align-items:center; gap:8px;
    font-size:12.5px; z-index:1;
}
.sv-option__check { width:14px; font-size:11px; color:#818cf8; flex-shrink:0; font-weight:700; }
.sv-option__text  { flex:1; color:#d0d5e8; }
.sv-option__pct   { color:rgba(255,255,255,0.45); font-size:11px; }
.sv-option__cnt   { color:rgba(255,255,255,0.28); font-size:11px; min-width:60px; text-align:right; }
.sv-option__voters { display:flex; align-items:center; gap:3px; margin-top:5px; position:relative; z-index:1; }
.sv-voter-av { width:25px; height:25px; border-radius:3px; object-fit:cover; border:1px solid rgba(255,255,255,0.1); }
.sv-voter-more { font-size:10px; color:rgba(255,255,255,0.35); padding-left:2px; }

/* Footer */
.sv-footer {
    display:flex; align-items:center; gap:8px; flex-wrap:wrap;
    padding-top:8px; border-top:0.5px solid rgba(255,255,255,0.06);
    font-size:11px;
}
.sv-total     { color:rgba(255,255,255,0.3); flex:1; }
.sv-login-hint{ color:rgba(255,255,255,0.25); font-size:11px; }

.sv-revoke-btn {
    background:none; border:0.5px solid rgba(255,255,255,0.1);
    border-radius:5px; color:rgba(255,255,255,0.38); font-size:11px;
    cursor:pointer; padding:3px 9px; font-family:inherit;
    transition:border-color .12s, color .12s;
}
.sv-revoke-btn:hover { border-color:rgba(255,100,100,0.4); color:rgba(255,100,100,0.7); }

/* Management Buttons */
.sv-mgmt { display:flex; gap:4px; margin-left:auto; }
.sv-mgmt-btn {
    background:none; border:0.5px solid rgba(255,255,255,0.1);
    border-radius:5px; color:rgba(255,255,255,0.35); font-size:12px;
    cursor:pointer; padding:2px 8px; font-family:inherit;
    transition:border-color .12s, color .12s, background .12s;
}
.sv-mgmt-btn:hover            { border-color:rgba(108,123,255,0.4); color:rgba(255,255,255,0.75); background:rgba(108,123,255,0.08); }
.sv-mgmt-btn--danger:hover    { border-color:rgba(231,76,60,0.4);   color:rgba(231,76,60,0.8); }

/* Box-Wrapper (in forum_thread_comments.php) */
/* B.sv-post-survey {
    margin-top: 8px;
    border-top: 0.5px solid rgba(255,255,255,0.06);
    padding-top: 10px;
} */

/* ---- aus forum_thread_comments.php ---- */
@keyframes eqSpin { to { transform: rotate(360deg); } }

/* FLAGS */


/* REAKTIONEN */
.forum-reactions { display:flex; gap:6px; flex-wrap:wrap; }
.react-btn       { display:flex; align-items:center; gap:5px; padding:4px 10px; border-radius:4px; border:1px solid rgba(255,255,255,0.08);
                   background:rgba(255,255,255,0.04); cursor:pointer; font-size:15px; color:#aaa; transition:0.15s; }
.react-btn:hover  { background:rgba(224,177,63,0.12); border-color:rgba(224,177,63,0.4); }
.react-btn.active { background:rgba(224,177,63,0.15); border-color:rgba(224,177,63,0.5); color:#e0b13f; }
.react-btn:disabled { cursor:default; opacity:0.5; }
.react-cnt        { font-size:13px; font-weight:600; }

/* AKTIONEN */
.post-actions,
.comment-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.comment-footer  { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.btn-action      { padding:3px 10px; border:1px solid rgba(255,255,255,0.12); border-radius:5px;
                   background:none; color:#888; font-size:11px; cursor:pointer; transition:0.15s; }
.btn-action:hover          { background:rgba(255,255,255,0.08); color:#fff; }
.btn-action--danger:hover  { background:rgba(200,0,0,0.15); border-color:#e74c3c; color:#e74c3c; }
.btn-action--mod:hover     { background:rgba(108,123,255,0.15); border-color:#6c7bff; color:#6c7bff; }

/* META */
.edited-hint  { font-size:10px; color:#555; font-style:italic; margin-left:6px; }
.deleted-badge{ font-size:10px; background:rgba(200,0,0,0.2); color:#e74c3c; padding:1px 5px; border-radius:4px; margin-left:6px; }
.comment-deleted { opacity:0.55; }
.deleted-notice  { padding:10px; color:#888; font-size:13px; font-style:italic; }

/* REPLY BOX */
.reply-box       { margin-top:24px; padding:16px; background:rgba(255,255,255,0.03);
                   border:1px solid rgba(255,255,255,0.08); border-radius:8px; }

.reply-box-locked{ text-align:center; padding:16px; color:#888; font-size:13px;
                   background:rgba(255,255,255,0.02); border-radius:6px; margin-top:16px; }
.reply-box-locked a { color:#6c7bff; }

/* QUOTE PREVIEW */
.quote-preview { background:rgba(0,0,0,0.2); border-left:3px solid #6c7bff;
                 padding:8px 12px; margin-bottom:10px; border-radius:4px;
                 font-size:12px; color:#aaa; position:relative; }
.quote-close   { position:absolute; top:4px; right:8px; cursor:pointer;
                 color:#888; font-size:14px; background:none; border:none; }

/* THREAD STYLES */
.thread_headline { display:flex; justify-content:space-between; align-items:center;
                   padding-bottom:10px; margin-bottom:5px;
                   border-bottom:0.5px solid rgba(255,255,255,0.06);
                   color:#f2f2f2; font-size:1.05rem; font-weight:700;
                   letter-spacing:0.2px; }
.thread_content  { background:rgba(14,16,20,0.92); border:1px solid #1b1d22; border-radius:5px;
                   padding:10px; margin:15px 0; color:#e6e6e6;
                   box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), inset 0 0 0 1px rgba(0,0,0,0.9); }
.post-username a, .comment-username a { color:#e6e6e6; font-weight:600; text-decoration:none; }
.post-username a:hover, .comment-username a:hover { text-decoration:underline; }

/* ACHIEVEMENT-PUNKTE + TITEL UNTER AVATAR/NICKNAME */
.post-user, .comment-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}
.comment-user-points {
    font-size: 11px;
    color: rgba(255, 200, 80, 0.85);
    font-weight: 600;
    white-space: nowrap;
}
.comment-user-title {
    font-size: 11px;
    font-weight: 600;
    color: #c0caff;
    white-space: nowrap;
    max-width: 140px;
	padding: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SURVEY NACH POST */
/* .sv-post-survey {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid rgba(255,255,255,0.07);
}
.sv-post-survey .sv-widget {
    border-color: rgba(108,123,255,0.2);
    background: rgba(108,123,255,0.03);
} */


/* ---- aus forum_threads.php ---- */
.subforum-header,
.row-flex         { display:flex; align-items:center; width:100%; }
.subforum-header  { padding:8px 12px; font-size:12px; opacity:0.7; margin-bottom:6px; }

.subforum-list    { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.subforum-list li {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    margin-bottom: 4px;
    background-color: var(--bg-gray-transparent);
    border: 1px solid var(--border-card);
    border-radius: 4px;
    cursor: pointer;
}
.subforum-list li:hover { background: rgba(50,50,70,0.35); }

.thread-sticky    { border-left:2px solid rgba(108,123,255,0.5) !important; }
.thread-closed    { opacity:0.75; }
.thread-unread .col-topic { font-weight:700; }

.h-topic,  .col-topic   { flex:1; text-align:left; }
.h-author, .col-author  { width:160px; text-align:center; }
.h-replies,.col-replies,
.h-views,  .col-views   { width:90px; text-align:center; }
.h-last,   .col-last    { width:150px; text-align:center; white-space:nowrap; }
.h-mod,    .col-mod     { width:36px; text-align:center; }

.col-author, .col-replies,
.col-views,  .col-last  { font-size:12px; opacity:0.85; }

.thread-flag  { font-size:12px; margin-right:4px; }
.unread-dot   { color:#6c7bff; }

.btn-thread-mod {
    padding:1px 7px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.12);
    border-radius:4px; color:#888; font-size:11px;
    cursor:pointer;
}
.btn-thread-mod:hover { background:rgba(255,255,255,0.12); color:#fff; }

.no-threads { padding:24px 0; color:#777; text-align:center; }

.no-replies {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-body);
    background: var(--bg-gray-transparent);
    border: 1px solid var(--border-card);
    border-radius: 4px;
}/* ---- aus forum_js.php (globaler Block, JS-interne Modal-Styles bleiben unangetastet) ---- */
@keyframes eqSpin { to { transform: rotate(360deg); } }

/* Klipy-Grid Scrollbar */
#klipy-grid::-webkit-scrollbar       { width: 5px; }
#klipy-grid::-webkit-scrollbar-track { background: transparent; }
#klipy-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* Inline Edit Area */
#edit-inline-area {
    margin-top: 8px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

/* Mod-Buttons (Swal) */
.swal-mod-btn {
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: #ddd;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.swal-mod-btn:hover         { background: rgba(255,255,255,0.1); }
.swal-mod-btn--danger:hover { background: rgba(200,0,0,0.15); border-color: #e74c3c; color: #e74c3c; }

.new-thread-box { margin-bottom: 16px; }

/* ── BILD-INFO-BAR ───────────────────────────── */
#img-info-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(255,165,0,0.06);
    border: 1px solid rgba(255,165,0,0.25);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    transition: background 0.3s, border-color 0.3s;
}

.img-info-icon {
    font-size: 15px;
    flex-shrink: 0;
    align-self: flex-start;
}

.img-info-text {
    color: #c8a04a;
}

.img-info-text a {
    color: #f0a500;
    text-decoration: underline;
}

.img-info-check {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ddd;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: background 0.12s;
    user-select: none;
}

.img-info-check:hover {
    background: rgba(255,255,255,0.08);
}

.img-info-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #7c9ef5;
    cursor: pointer;
    flex-shrink: 0;
}

/* ================================================================
   QUILL KONTEXTMENÜ  –  Win11 Style
================================================================ */
.qctx {
    position: fixed;
    z-index: 99999;
    min-width: 200px;
    background: #1e2030;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    font-size: 12.5px;
    color: #dde1f0;
    user-select: none;
    animation: qctxIn .1s ease;
}
@keyframes qctxIn {
    from { opacity:0; transform:scale(.96) translateY(-4px); }
    to   { opacity:1; transform:scale(1)   translateY(0); }
}

/* ── Icon-Leiste ── */
.qctx__bar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 6px;
}
.qctx__bar-sep {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.12);
    margin: 0 3px;
    flex-shrink: 0;
}
.qctx__bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #d0d5e8;
    font-size: 13px;
    cursor: pointer;
    transition: background .1s, color .1s;
    flex-shrink: 0;
    padding: 0;
}
.qctx__bar-btn b, .qctx__bar-btn i,
.qctx__bar-btn u, .qctx__bar-btn s { pointer-events: none; }
.qctx__bar-btn:hover  { background: rgba(255,255,255,0.1); color: #fff; }
.qctx__bar-btn.active { background: rgba(108,123,255,0.25); color: #a0b4ff; }
.qctx__bar-btn.disabled { opacity:.3; cursor:default; pointer-events:none; }

/* ── Separator ── */
.qctx__sep {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 2px 4px;
}

/* ── Menüpunkte ── */
.qctx__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .1s;
    white-space: nowrap;
}
.qctx__item:hover { background: rgba(108,123,255,0.16); }
.qctx__item--disabled { opacity:.3; cursor:default; pointer-events:none; }

.qctx__icon {
    width: 16px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.5);
}
.qctx__label   { flex:1; font-weight:500; font-size:12.5px; }
.qctx__shortcut {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    padding-left: 14px;
}

/* ================================================================
   SURVEY INLINE PANEL
   Nahtlos unter dem Quill-Editor – gleiche Border, gleicher Stil
================================================================ */
.sv-inline-panel {
    border: 1px solid rgba(255,255,255,0.12);
    border-top: 1px solid rgba(108,123,255,0.3);
    border-radius: 0 0 10px 10px;
    background: rgba(0,0,0,0.35);
    padding: 10px 14px 14px;
    animation: svpIn .12s ease;
}
@keyframes svpIn {
    from { opacity:0; transform:translateY(-3px); }
    to   { opacity:1; transform:translateY(0); }
}

.svp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
}
.svp-title {
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase; letter-spacing: .07em;
}
.svp-hint {
    font-size: 11px; color: rgba(255,255,255,0.2); font-style: italic;
}

.svp-options { display:flex; flex-direction:column; gap:5px; margin-bottom:8px; }
.svp-opt-row { display:flex; align-items:center; gap:6px; }
.svp-opt-input {
    flex: 1;
    padding: 7px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #e6e6e6;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    outline: none;
    box-sizing: border-box;
    transition: border-color .12s, background .12s;
}
.svp-opt-input:focus {
    border-color: rgba(108,123,255,0.5);
    background: rgba(108,123,255,0.04);
}
.svp-opt-input::placeholder { color: rgba(255,255,255,0.18); }
.svp-opt-del {
    background: none; border: none;
    color: rgba(231,76,60,0.45); cursor: pointer;
    font-size: 14px; padding: 0 4px; flex-shrink:0;
    transition: color .12s;
}
.svp-opt-del:hover { color: #e74c3c; }
.svp-opt-placeholder { width:22px; flex-shrink:0; }

.svp-add-btn {
    background: none;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 6px;
    color: rgba(255,255,255,0.28);
    cursor: pointer; font-size: 12px;
    padding: 5px 12px; width: 100%;
    margin-bottom: 10px; font-family: inherit;
    text-align: left;
    transition: border-color .12s, color .12s;
}
.svp-add-btn:hover { border-color:rgba(255,255,255,0.28); color:rgba(255,255,255,0.6); }

.svp-flags { display:flex; gap:20px; flex-wrap:wrap; }
.svp-flag-label {
    display:flex; align-items:center; gap:8px;
    cursor:pointer; user-select:none;
    font-size:12px; color:rgba(255,255,255,0.4);
}
.svp-cb { position:absolute; opacity:0; width:0; height:0; }
.svp-toggle-track {
    position:relative; display:inline-block;
    width:30px; height:17px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
    border-radius:9px; flex-shrink:0;
    transition:background .2s,border-color .2s;
}
.svp-toggle-thumb {
    position:absolute; left:2px; top:50%;
    transform:translateY(-50%);
    width:11px; height:11px; background:#6b7280;
    border-radius:50%; transition:transform .2s,background .2s;
}
.svp-cb:checked + .svp-toggle-track { background:rgba(108,123,255,0.3); border-color:rgba(108,123,255,0.55); }
.svp-cb:checked + .svp-toggle-track .svp-toggle-thumb { transform:translateY(-50%) translateX(13px); background:#818cf8; }

/* Aktiver Survey-Button in Toolbar */
.ql-toolbar .ql-survey { transition: background .15s; }

/* Duration Row */
.svp-duration-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 0.5px solid rgba(255,255,255,0.07);
}
.svp-duration-label {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
}
.svp-duration {
    flex: 1;
    padding: 5px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #e6e6e6;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}
.svp-duration:focus { border-color: rgba(108,123,255,0.45); }

/* Timer Badge */
.sv-badge--timer {
    background: rgba(108,200,108,0.1);
    color: rgba(150,230,150,0.8);
    border-color: rgba(108,200,108,0.2);
}

/* ================================================================
   LINK-PREVIEW KARTEN (Editor-Vorschau, wie Telegram)
================================================================ */
.lp-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.lp-card {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    animation: lpIn .15s ease;
}
@keyframes lpIn {
    from { opacity:0; transform:translateY(-3px); }
    to   { opacity:1; transform:translateY(0); }
}
.lp-card-url {
    font-size: 11px;
    color: rgba(124,158,245,0.7);
    padding: 6px 12px 0;
    word-break: break-all;
}
.lp-card-body {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 8px 12px 12px;
    align-items: flex-start;
}
.lp-card-close {
    position: absolute;
    top: 4px; right: 6px;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    width: 22px; height: 22px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: background .12s, color .12s;
}
.lp-card-close:hover { background: rgba(231,76,60,0.3); color: #fff; }
.lp-card-content { flex: 1; min-width: 0; }
.lp-card-site {
    font-size: 11px;
    font-weight: 600;
    color: rgba(124,158,245,0.85);
    margin-bottom: 2px;
}
.lp-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #e6e6e6;
    margin-bottom: 3px;
    line-height: 1.35;
}
.lp-card-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lp-card-img {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}
.lp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vorschau im fertigen Post (nach Absenden) */
.lp-post-card {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    padding: 10px 12px;
    text-decoration: none;
    transition: border-color .12s, background .12s;
}
.lp-post-card:hover { border-color: rgba(124,158,245,0.4); background: rgba(124,158,245,0.04); }
.lp-post-card-content { flex: 1; min-width: 0; }
.lp-post-card-site {
    font-size: 11px; font-weight: 600;
    color: rgba(124,158,245,0.85); margin-bottom: 2px;
}
.lp-post-card-title {
    font-size: 13px; font-weight: 600; color: #e6e6e6;
    margin-bottom: 3px; line-height: 1.35;
}
.lp-post-card-desc {
    font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-post-card-img {
    flex-shrink: 0; width: 80px; height: 80px;
    border-radius: 6px; overflow: hidden; background: rgba(0,0,0,0.2);
}
.lp-post-card-img img { width:100%; height:100%; object-fit:cover; display:block; }
/* ============================================================
   AUS LIVE-CSS ÜBERNOMMEN (Sektion 20 FORUM)
   ============================================================ */
   20.  FORUM  (ehem. inc_forum.css + style_main/inc_forum.css)
   ============================================================ */

/* Überschrift */
.forum-title { text-align: center; font-size: 2.5rem; margin-bottom: 20px; }

.category-header th { font-size: 1.2rem; padding: 10px; }
.subcategory          { border-bottom: 1px solid var(--border-gray-dark); }
.subcategory .title   { width: 40%; }
.subcategory .last-post { font-size: 0.9rem; }
.subcategory .last-post a { text-decoration: none; }
.subcategory .last-post a:hover { text-decoration: underline; }

/* Zitat */
.forum_quote {
    padding: 5px;
    margin: 5px 10px;
    border: 1px solid #666666;
    background: #151a18;
    border-radius: 4px;
}

/* Forum Content Block */
.content_forum_block {
    padding: 10px;
    border: 1px solid var(--border-card);
    border-radius: 6px;
    background-color: rgba(30,30,40,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

/* Grid-Wrapper (Forum-Startseite) */
.grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.content-block {
    flex: 1 1 450px;
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #080b10;
    background-color: var(--bg-gray-transparent);
    border-radius: 5px;
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3), 5px 5px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.content-block:hover {
    transform: translateY(-2px);
    box-shadow: -6px 6px 12px rgba(0,0,0,0.4), 6px 6px 12px rgba(0,0,0,0.4);
}

.block-title { font-size: 18px; color: var(--text-yellow); text-shadow: 0 0 5px #000; margin-bottom: 10px; text-align: center; }
.block-title a { color: var(--text-yellow); text-decoration: none; }
.block-title a:hover { color: #fffacd; }

.grid-container { display: flex; flex-wrap: wrap; gap: 10px; }

.item-card { display: block; padding: 10px; margin: 5px; color: #cce7ff; text-decoration: none; transition: 0.2s ease; border-radius: 4px; }
.item-card:hover { background: rgba(40,40,60,0.8); }

.item-list li {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    margin-bottom: 4px;
    background-color: var(--bg-gray-transparent);
    border: 1px solid var(--border-card);
    border-radius: 4px;
}

.item-card.empty-item .item-title       { color: #888; }
.item-card.empty-item:hover .item-title { color: #aaa; }

/* Thread-Container */
.thread-container { flex: 1; min-width: 300px; }
.forum-threads    { flex: 1; min-width: 300px; }

.thread-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }

.thread-list li {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    margin-bottom: 4px;
    background-color: var(--bg-gray-transparent);
    border: 1px solid var(--border-card);
    border-radius: 4px;
}
.thread-list li:hover { background: rgba(28,32,44,0.95); }
.thread-list li a { color: #cfd8e3; font-size: 14px; text-decoration: none; flex-grow: 1; line-height: 1.2; }
.thread-list li a:hover { color: #7cc4ff; }

.active-thread { font-weight: 600; color: #4da3ff; }
.thread-user   { font-size: 0.75em; color: #8b93a1; white-space: nowrap; }

/* Post-Block */
.post-block {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 0 0 12px;
    border: 1px solid rgba(224,177,63,0.25);
    border-radius: 4px;
    background-color: rgba(40,40,50,0.5);
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3), 5px 5px 10px rgba(0,0,0,0.3);
    color: var(--text-white);
}

.comment-block {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 0 0 12px;
    border-radius: 4px;
    background-color: rgba(20,23,30,0.8);
    border: 1px solid var(--border-box);
    box-shadow: -3px 3px 8px rgba(0,0,0,0.5);
}

.post-user, .comment-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    flex-shrink: 0;
}
.post-user img, .comment-user img {
    width: 80px; height: 80px;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid #555;
}
.post-username, .comment-username { font-size: 0.85em; color: var(--text-secondary); text-align: center; word-break: break-word; }

.post-content, .comment-content {
    flex: 1;
    position: relative;
    border-left: 1px solid var(--border-box);
    padding: 10px;
}

.post-date { position: absolute; top: 0; right: 15px; font-size: 0.75em; color: #888; }

.comment-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #7c8290;
}
.comment-date__time { display: flex; align-items: center; gap: 6px; }
.comment-date__time i { font-size: 14px; }
.comment-number {
    background: rgba(255,255,255,0.06);
    color: #8a8f9c;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    flex-shrink: 0;
}
.comment-number:hover { background: rgba(224,177,63,0.15); color: #e0b13f; }

.post-block .comment-date__time { color: #c9a869; }

.post-content p, .comment-content p { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.post-content h3 { margin: 0; }
.comment-content p { margin-top: 5px; line-height: 1.4; }

/* Kommentar hover */
.post-comment {
    padding: 14px;
    margin-bottom: 12px;
    border-left: 3px solid #6e6e6e;
    border-radius: 3px;
    background-color: var(--bg-gray-transparent);
    color: #d0d0d0;
}
.post-comment:hover { background-color: #1a1d26; border-left-color: #3a3c42; }

/* Thread-Post (Detail) */
.thread-post {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 3px;
    border: 1px solid var(--border-box);
    background-color: rgba(40,40,50,0.5);
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3), 5px 5px 10px rgba(0,0,0,0.3);
    color: var(--text-white);
}
.thread-post .thread-user { font-size: 0.85em; color: #aaa; }

.thread-comments .comment {
    padding: 14px;
    margin-bottom: 12px;
    border-left: 3px solid #6e6e6e;
    border: 1px solid #080b10;
    border-radius: 3px;
    background-color: var(--bg-gray-transparent);
    color: #d0d0d0;
}
.thread-comments .comment:hover { background-color: #1a1d26; border-left-color: #3a3c42; }

/* Read-All */
.forum-readall-row      { width: 100%; text-align: center; margin: 20px 0; flex-basis: 100%; }
.forum-readall-container{ margin-bottom: 10px; text-align: right; }

.subboard-unread-count {
    display: inline-block;
    min-width: 22px;
    padding: 2px 6px;
    margin-left: 6px;
    font-size: 0.75em;
    font-weight: bold;
    color: #fff;
    background-color: #1e6bb8;
    border-radius: 12px;
    text-align: center;
    line-height: 1.2;
}
.subboard-unread-count:hover { background-color: #66b3ff; }

.btn.btn-readall {
    padding: 6px 12px;
    font-size: 0.9em;
    font-weight: bold;
    background-color: #1e6bb8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn.btn-readall:hover { background-color: #155a9c; }

.forum-card.empty-subforum .forum-card-title       { color: #888; }
.forum-card.empty-subforum:hover .forum-card-title { color: #aaa; }

/* Gleiche Regel unter dem tatsächlich im Markup verwendeten Klassennamen
   (forum_boards.php nutzt .content_card / .content_card_title, nicht
   .forum-card — Namens-Mismatch, war schon in der Live-CSS so) */
.content_card_title { display: block; }
.content_card.empty-subforum .content_card_title       { color: #888; }
.content_card.empty-subforum:hover .content_card_title { color: #aaa; }

/* Blockquote */
blockquote {
    margin: 12px 0;
    padding: 12px 16px;
    border-left: 4px solid #6c7ae0;
    background: #1e1f26;
    color: #d6d6d6;
    border-radius: 6px;
    position: relative;
}

/* Quill-Größen */
.ql-size-small  { font-size: 0.75em; color: #b8b8b8; }
.ql-size-normal { font-size: 1em; color: #e6e6e6; }
.ql-size-large  { font-size: 1.25em; font-weight: 600; color: #fff; }
.ql-size-huge   { font-size: 1.6em; font-weight: 700; color: #fff; letter-spacing: 0.2px; }

.ql-syntax {
    background: #1e1f26;
    color: #e6e6e6;
    padding: 14px 16px;
    margin: 12px 0;
    border-radius: 8px;
    border: 1px solid #2c2f3a;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.ql-container { position: relative; resize: vertical; overflow: auto; min-height: 140px; max-height: 600px; }

/* BBCode Post-Styles */
.post-text > *:first-child { margin-top: 0; }
.post-text > *:last-child  { margin-bottom: 0; }

.post-text .bb-h1, .post-text h1 { font-size: 1.7em; font-weight: 700; color: #f0f2ff; margin: 16px 0 8px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 6px; }
.post-text .bb-h2, .post-text h2 { font-size: 1.35em; font-weight: 600; color: #e8eaff; margin: 14px 0 6px; }
.post-text .bb-h3, .post-text h3 { font-size: 1.1em; font-weight: 600; color: #dde0f8; margin: 12px 0 5px; }

.post-text .bb-u  { text-decoration: underline; }
.post-text .bb-o  { text-decoration: overline; }

.post-text .bb-mark, .post-text mark { background: rgba(255,220,60,0.25); color: #ffe86e; padding: 1px 3px; border-radius: 3px; }
.post-text .bb-highlight { background: rgba(108,123,255,0.2); color: #aab4ff; padding: 1px 5px; border-radius: 4px; }

.post-text .bb-kbd, .post-text kbd {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: monospace;
    font-size: 12px;
    color: #c8d0e8;
}

.post-text sup { font-size: 0.75em; vertical-align: super; }
.post-text sub { font-size: 0.75em; vertical-align: sub; }

.post-text .bb-left    { text-align: left; }
.post-text .bb-center  { text-align: center; }
.post-text .bb-right   { text-align: right; }
.post-text .bb-justify { text-align: justify; }
.post-text [style*="text-align:center"],  .post-text [style*="text-align: center"]  { text-align: center; }
.post-text [style*="text-align:right"],   .post-text [style*="text-align: right"]   { text-align: right; }
.post-text [style*="text-align:justify"], .post-text [style*="text-align: justify"] { text-align: justify; }

.post-text .bb-quote, .post-text .bb-bq, .post-text blockquote {
    margin: 10px 0; padding: 10px 14px;
    border-left: 3px solid #6c7bff;
    background: rgba(108,123,255,0.07);
    border-radius: 0 6px 6px 0;
    color: #b0b8d8;
    font-style: italic;
}
.post-text .bb-quote cite { display: block; font-size: 12px; font-style: normal; font-weight: 600; color: #8898cc; margin-bottom: 6px; }

.post-text .bb-code, .post-text pre {
    background: #0f111a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #a8b4d8;
}
.post-text .bb-code code, .post-text pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }

.post-text .bb-inline-code, .post-text code {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 85%;
    color: #a5b4fc;
}

.post-text pre[data-lang]::before {
    content: attr(data-lang);
    display: block;
    font-size: 10px;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #5a6088;
    margin-bottom: 8px;
}

.post-text .bb-list, .post-text ul, .post-text ol { padding-left: 1.6em; margin: 6px 0; }
.post-text .bb-list li, .post-text ul li, .post-text ol li { margin: 3px 0; line-height: 1.6; }

.post-text .bb-table, .post-text table { border-collapse: collapse; width: auto; max-width: 100%; margin: 10px 0; font-size: 13px; }
.post-text .bb-table td, .post-text .bb-table th,
.post-text table td, .post-text table th { border: 1px solid rgba(255,255,255,0.12); padding: 6px 12px; text-align: left; vertical-align: top; }
.post-text .bb-table th, .post-text table th { background: rgba(255,255,255,0.06); font-weight: 600; color: #d0d6f0; }
.post-text .bb-table tr:nth-child(even) td, .post-text table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.post-text .bb-video-wrapper { position: relative; width: 100%; border: 1px solid #000; }
.post-text .bb-video-wrapper iframe { width: 100%; height: auto; aspect-ratio: 16/9; border: 1px solid #000; }

.post-text .bb-img, .post-text img { max-width: 100%; height: auto; border-radius: 4px; display: inline-block; vertical-align: middle; }

.post-text .bb-spoiler, .post-text .bb-more { border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; margin: 8px 0; overflow: hidden; }
.post-text .bb-spoiler > summary, .post-text .bb-more > summary {
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: #9aa8d0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .15s;
}
.post-text .bb-spoiler > summary::before { content: '▶'; font-size: 10px; }
.post-text .bb-spoiler[open] > summary::before { content: '▼'; }
.post-text .bb-more > summary::before { content: '▶'; font-size: 10px; }
.post-text .bb-more[open] > summary::before { content: '▼'; }
.post-text .bb-spoiler > summary:hover, .post-text .bb-more > summary:hover { background: rgba(255,255,255,0.07); }
.post-text .bb-spoiler > div, .post-text .bb-more > .bb-more-body { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.08); }

.post-text a, .post-text .bb-link { color: #818cf8; text-decoration: none; transition: color .15s; }
.post-text a:hover, .post-text .bb-link:hover { color: #a5b0ff; text-decoration: underline; }
.post-text .bb-link--wiki::before   { content: '📖 '; }
.post-text .bb-link--google::before { content: '🔍 '; }

.post-text .bb-hr, .post-text hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 14px 0; }
.post-text p { margin: 0; }
.post-text p:last-child { margin-bottom: 0; }


/* /* ═══════════════════════════════════════════ */
   /* POST-RANG BADGE */
/* ═══════════════════════════════════════════ */ */
/* .post-rank { */
    /* display: inline-block; */
    /* margin-top: 4px; */
    /* padding: 2px 8px; */
    /* border-radius: 4px; */
    /* font-size: 10px; */
    /* font-weight: 600; */
    /* letter-spacing: 0.04em; */
    /* white-space: nowrap; */
    /* max-width: 140px; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    /* border: 1px solid transparent; */
/* } */

/* /* Tier-Farben */ */
/* .post-rank--sand    { background: rgba(180,160,100,0.15); border-color: rgba(180,160,100,0.35); color: #c8b078; } */
/* .post-rank--bronze  { background: rgba(205,127,50,0.15);  border-color: rgba(205,127,50,0.35);  color: #cd7f32; } */
/* .post-rank--gold    { background: rgba(250,199,117,0.15); border-color: rgba(250,199,117,0.4);  color: #e6b84a; } */
/* .post-rank--platin  { background: rgba(181,212,244,0.15); border-color: rgba(181,212,244,0.35); color: #90bce0; } */
/* .post-rank--diamant { background: rgba(206,203,246,0.15); border-color: rgba(206,203,246,0.4);  color: #b0a8f0; } */
/* .post-rank--admin   { background: rgba(216,90,48,0.2);    border-color: rgba(216,90,48,0.5);    color: #ff7a50; } */

/* /* Im post-user / comment-user Block: Spaltenausrichtung */ */
/* .post-user, */
/* .comment-user { */
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    /* gap: 4px; */
    /* min-width: 80px; */
/* } */

/* /* Rang unter Profilbild (Profilseite) */ */
/* .profile-rank-badge { */
    /* display: block; */
    /* text-align: center; */
    /* margin-top: 8px; */
    /* font-size: 12px; */
    /* padding: 4px 10px; */
    /* border-radius: 6px; */
    /* font-weight: 600; */
/* } */


/* Responsive Forum */
@media (max-width: 768px) {
    .forum-title { font-size: 2rem; margin-bottom: 15px; }
    .table th, .table td { padding: 8px; }
    .subcategory .title { width: auto; }
    .post-block, .comment-block { flex-direction: column; align-items: flex-start; }
    .post-user, .comment-user  { flex-direction: row; align-items: center; width: auto; }
    .post-user img, .comment-user img { margin-right: 10px; margin-bottom: 0; }
    .post-date, .comment-date  { position: static; margin-left: auto; margin-bottom: 5px; }
}

@media (max-width: 1400px) {
    .content-block { flex: 0 0 auto; min-width: 250px; max-width: 425px; padding: 0; }
    .grid-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .item-card { margin: 0; }
}

@media (max-width: 900px) {
    .content-block { min-width: 100%; padding: 0; }
    .grid-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .item-card { padding: 5px 10px; margin: 5px 0; }
    .block-title { font-size: 1.2em; font-weight: bold; margin-bottom: 5px; text-align: center; }
}


/* content_grid Responsive Breakpoints */

/* Ab 1400px → 3 Spalten (innerhalb .content_2col bleibt 2-spaltig) */
@media (max-width: 1400px) {
    .content_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ab 1200px → 2 Spalten */
@media (max-width: 1200px) {
    .content_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ab 768px → 3 Spalten (Mobile-Wechsel) */
@media (max-width: 768px) {
    .content_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ab 650px → 2 Spalten */
@media (max-width: 650px) {
    .content_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================


/* ---- content_grid / content_card (aus Sektion 11) ---- */

/* .content_grid { display: flex; flex-wrap: wrap; justify-content: space-between; } */

.content_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* exakt 3 Spalten */
    gap: 0px;
}

.content_card {
    display: block;
    padding: 2px 5px;
    margin: 5px;
    color: #cce7ff;
    text-decoration: none;
    transition: all 0.15s ease;

    /* dezent */
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-card);
    border-radius: 6px;

    /* eine Zeile */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	
	text-align: center;
}

.content_card:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
    border-color: rgba(120,180,255,0.25);
}

/* ============================================================
   ERGÄNZUNGEN — fehlten auch schon in der Live-CSS
   ============================================================ */

/* Breadcrumb (Forum > Board > Thread) */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    line-height: 1;
    margin: 0;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }

/* btn-primary (alte Klasse, hier als Alias auf unser Button-System) */
.btn.btn-primary {
    padding: 6px 12px;
    font-size: 0.9em;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    background: var(--accent);
    color: var(--accent-text);
    transition: background var(--transition);
}
.btn.btn-primary:hover { background: var(--accent-hover); }

/* Zugriffsregeln-Panel (Admin: "Wer darf in diesem Board posten") */
.acc-for-panel {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.15);
}
.acc-rule-sub {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 14px;
    margin-top: 2px;
}
.acc-rule-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(108,123,255,0.15);
    color: #a0aaff;
}
.acc-rule-type--clan { background: rgba(224,177,63,0.15); color: var(--accent); }
.acc-rule-type--team { background: rgba(108,123,255,0.15); color: #a0aaff; }
.acc-rule-type--user { background: rgba(76,175,80,0.15); color: #4caf50; }