/* Forum (ersetzt forumstyle.css und die Inline-Styles der CI3-Views) */

.carousel-indicators {
    display: none !important;
}

.landing-wrapper {
    height: 0px !important;
    min-height: 0px !important;
    margin-bottom: 25px !important;
}

.home-wrapper {
    display: none;
}

/* Container wie bei Teams */
@media (min-width: 1300px) {
    .container-forum-v7 {
        max-width: 1315px !important;
    }
}

@media (min-width: 768px) {
    .container-forum-v7 {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

.container-forum-v7 {
    font-size: 13px;
    color: #fff;
}

.container-forum-v7 a {
    word-break: normal;
}

/* ---------- Kästen wie die Info-Kästen der anderen Seiten ---------- */
.forum-box {
    background-color: #1d1d1d;
    border-bottom: 1px solid #47483a;
    margin-bottom: 25px;
}

.forum-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid #262626;
    color: #fff;
}

/* Zeilen abwechselnd einfärben, damit lange Listen leichter zu lesen sind */
/* :where() hält die Spezifität niedrig: Hover und angeheftete Themen (braun) gehen vor */
.forum-row:where(:nth-child(even of .forum-row:not(.forum-head))) {
    background-color: #242424;
}

a.forum-row:hover,
a.forum-row:focus {
    background-color: #2e2e2e;
    color: #fff;
    text-decoration: none;
}

.forum-head {
    background-color: #252525;
    border-top: 0;
    border-bottom: 1px solid #47483a;
    color: var(--template-color, #faffa9);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.forum-list-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 70px 70px minmax(0, 3fr);
}

.forum-sub-row {
    grid-template-columns: minmax(0, 6fr) 80px minmax(0, 4fr);
}

.forum-topic-row {
    grid-template-columns: minmax(0, 6fr) 80px 80px minmax(0, 3fr);
}

.forum-cell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-cell-title,
.forum-cell-last {
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-cell-title > span,
.forum-cell-last > span {
    min-width: 0;
}

.forum-cell-num {
    text-align: center;
}

.forum-list-row .forum-cell-title {
    font-weight: 700;
    display: block;
    white-space: nowrap;
}

/* Themen bündig mit dem Ordnersymbol darunter: das Symbol (15px) sitzt mittig im 36px-Kreis, also ca. 10px eingerückt.
   Die Spaltenüberschrift bleibt bündig mit den Kategorie-Überschriften. */
.forum-list-row:not(.forum-head) .forum-cell-title {
    padding-left: 10px;
}

.forum-list-row .forum-cell-forum,
.forum-list-row .forum-cell-last {
    white-space: nowrap;
}

.forum-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background-color: #131313;
    color: #727272;
    text-align: center;
    font-size: 15px;
}

.forum-row.is-pinned {
    background-color: #2b2219;
}

.is-pinned .forum-icon {
    color: var(--template-color, #faffa9);
}

.forum-strong {
    font-weight: 700;
    color: #fff;
}

.forum-strong:hover,
.forum-strong:focus,
.forum-cell-last a:hover {
    color: var(--template-color, #faffa9);
    text-decoration: none;
}

.forum-cell-last a {
    color: #fff;
    font-weight: 700;
}

.forum-sub,
.forum-muted {
    display: block;
    color: #9a9a9a;
    font-size: 12px;
}

.forum-muted {
    display: inline;
}

.forum-avatar-sm {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.forum-likes {
    display: inline-block;
    padding: 0 7px;
    border-radius: 2px;
    background-color: #1e7e34;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.forum-empty {
    padding: 14px;
    color: #9a9a9a;
}

/* ---------- Reiter ---------- */
.forum-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 14px 0 14px;
    background-color: #1d1d1d;
}

.forum-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #9a9a9a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
}

.forum-tabs button.active,
.forum-tabs button:hover,
.forum-tabs button:focus {
    color: var(--template-color, #faffa9);
    border-bottom-color: var(--template-color, #faffa9);
    outline: none;
}

/* ---------- Statistik / Online ---------- */
.forum-stat {
    padding: 18px 14px;
    text-align: center;
    font-size: 14px;
}

.forum-stat i {
    display: block;
    font-size: 30px;
    margin-bottom: 8px;
    color: var(--template-color, #faffa9);
}

.forum-online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 12px 14px;
}

/* ---------- Navigation, Knöpfe, Meldungen ---------- */
.forum-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.forum-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.forum-breadcrumb a,
.forum-breadcrumb span {
    background-color: #252525;
    padding: 7px 11px;
    color: var(--template-color, #faffa9);
}

.forum-breadcrumb span[aria-current] {
    color: #fff;
}

.forum-breadcrumb a:hover,
.forum-breadcrumb a:focus {
    background-color: #bc2317;
    color: #000;
    text-decoration: none;
}

.forum-breadcrumb .forum-breadcrumb-sep {
    color: #727272;
}

.forum-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--template-color, #faffa9);
    background-color: var(--template-color, #faffa9);
    color: #131313;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    word-break: normal;
}

.forum-button:hover,
.forum-button:focus {
    background-color: #bc2317;
    border-color: #bc2317;
    color: #000;
    text-decoration: none;
}

.forum-button-secondary,
.forum-button-small {
    background-color: #252525;
    border-color: #47483a;
    color: var(--template-color, #faffa9);
}

.forum-button-small {
    padding: 4px 10px;
    font-size: 11px;
}

.forum-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.forum-actions form {
    margin: 0;
}

.forum-alert {
    padding: 10px 14px;
    margin-bottom: 15px;
    background-color: #3a1512;
    border-left: 3px solid #bc2317;
    color: #fff;
}

.forum-alert-inline {
    margin-bottom: 0;
}

.forum-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--template-color, #faffa9);
    color: #131313;
    vertical-align: middle;
}

.forum-badge-closed {
    background-color: #bc2317;
    color: #fff;
}

/* ---------- Thema ---------- */
/* style.css färbt <strong> global schwarz (strong { color: #000 }).
   Alte CKEditor-Beiträge nutzen <strong>, der neue Editor <b> – im Forum beide in Textfarbe. */
.forum-post-text strong,
.forum-post-text b,
.forum-signature strong,
.forum-signature b,
.pell-content strong,
.pell-content b {
    color: inherit;
    font-weight: 700;
}

.forum-topic-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 11px 14px;
    background-color: #252525;
    border-bottom: 1px solid #47483a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--template-color, #faffa9);
    word-break: break-word;
}

.forum-topic-title .forum-badge {
    margin: 0;
}

.forum-post {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    margin-bottom: 15px;
    background-color: #1d1d1d;
    border-bottom: 1px solid #47483a;
}

.forum-author {
    padding: 18px 12px;
    text-align: center;
    background-color: #191919;
}

.forum-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.forum-author-name {
    display: block;
    font-weight: 700;
    word-break: break-word;
}

a.forum-author-name:not(.forum-role-admin):not(.forum-role-mod) {
    color: inherit;
}

a.forum-author-name:hover,
a.forum-author-name:focus-visible {
    text-decoration: underline;
}

/* Rangabzeichen unter dem Namen */
.forum-author-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 6px 0 4px;
    color: var(--template-color, #faffa9);
    font-size: 11px;
    font-weight: 700;
}

.forum-rank-img {
    height: 44px;
    width: auto;
}

.forum-role-admin {
    color: #ff3b3b;
}

.forum-role-mod {
    color: orange;
}

.forum-author-meta {
    color: #9a9a9a;
    font-size: 12px;
}

.forum-post-main {
    padding: 14px 18px;
    min-width: 0;
}

.forum-post-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Likes-Kasten nicht mitstrecken, wenn das Datum umbricht */
    gap: 10px;
    margin-bottom: 10px;
}

.forum-post-head .forum-likes {
    flex: 0 0 auto;
}

/* Beitragsinhalt (gefiltertes HTML) */
.forum-post-text {
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.forum-post-text img {
    max-width: 100%;
    height: auto;
}

.forum-post-text ul,
.forum-post-text ol {
    margin: 0 0 10px 25px;
    padding: 0;
}

.forum-post-text ul {
    list-style: disc;
}

.forum-post-text ol {
    list-style: decimal;
}

.forum-post-text blockquote {
    margin: 10px 0;
    padding: 6px 12px;
    border-left: 4px solid #47483a;
    background-color: #191919;
    color: #cfcfcf;
}

.forum-post-text a {
    color: var(--template-color, #faffa9);
    word-break: break-all;
}

.forum-post-text table td,
.forum-post-text table th {
    border: 1px solid #47483a;
    padding: 4px 8px;
}

.forum-likers {
    margin-top: 12px;
    text-align: right;
    color: #ababab;
    font-size: 12px;
}

.forum-likers span {
    color: #28a745;
}

.forum-signature {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #47483a;
    font-size: 11px;
    font-style: italic;
    color: #9a9a9a;
}

/* ---------- Formulare und Editor ---------- */
.forum-reply {
    padding: 14px 18px;
}

.forum-form-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--template-color, #faffa9);
    margin-bottom: 15px;
}

.forum-label {
    display: block;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.forum-input,
.forum-textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 8px 10px;
    border: 1px solid #47483a;
    background-color: #131313;
    color: #fff;
}

.forum-input:focus,
.forum-textarea:focus,
.forum-editor-wrap:focus-within {
    outline: none;
    border-color: var(--template-color, #faffa9);
}

.forum-editor-wrap {
    margin-bottom: 15px;
    border: 1px solid #47483a;
    background-color: #131313;
}

.forum-editor-wrap .pell-actionbar {
    display: flex;
    flex-wrap: wrap;
    background-color: #252525;
    border-bottom: 1px solid #47483a;
}

.forum-editor-wrap .pell-button {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.forum-editor-wrap .pell-button:hover,
.forum-editor-wrap .pell-button:focus,
.forum-editor-wrap .pell-button-selected {
    background-color: #131313;
    color: var(--template-color, #faffa9);
    outline: none;
}

.forum-color-icon {
    display: inline-block;
    font-weight: 700;
    line-height: 1;
    padding-bottom: 1px;
    border-bottom: 3px solid var(--template-color, #faffa9);
}

.forum-size-icon {
    display: inline-block;
    line-height: 1;
    font-size: 11px;
}

.forum-size-icon b {
    font-size: 15px;
}

.forum-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    background-color: #1d1d1d;
    border-bottom: 1px solid #47483a;
}

.forum-menu[hidden] {
    display: none;
}

.forum-size-menu {
    align-items: center;
}

.forum-size-option {
    padding: 4px 10px;
    border: 1px solid #47483a;
    background-color: #131313;
    color: #fff;
    line-height: 1.2;
    cursor: pointer;
}

.forum-size-option:hover,
.forum-size-option:focus {
    border-color: var(--template-color, #faffa9);
    color: var(--template-color, #faffa9);
    outline: none;
}

.forum-color-swatch {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid #131313;
    outline: 1px solid #47483a;
    cursor: pointer;
}

.forum-color-swatch:hover,
.forum-color-swatch:focus {
    outline: 2px solid var(--template-color, #faffa9);
}

.forum-color-default {
    position: relative;
}

/* weißes Feld mit Schrägstrich = Farbe zurücksetzen */
.forum-color-default::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -2px;
    bottom: -2px;
    border-left: 2px solid #bc2317;
    transform: rotate(45deg);
}

.forum-upload-status {
    padding: 6px 10px;
    background-color: #1d1d1d;
    border-bottom: 1px solid #47483a;
    color: #9a9a9a;
    font-size: 13px;
}

.forum-upload-status.forum-upload-error {
    color: #ff6b6b;
}

.forum-editor-wrap .pell-button:disabled {
    opacity: .4;
    cursor: wait;
}

.forum-editor-wrap .pell-content {
    min-height: 220px;
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
    outline: none;
    font-size: 14px;
    line-height: 1.6;
}

.forum-editor-wrap .pell-content ul {
    list-style: disc;
    margin-left: 25px;
}

.forum-editor-wrap .pell-content ol {
    list-style: decimal;
    margin-left: 25px;
}

.forum-editor-wrap .pell-content blockquote {
    border-left: 4px solid #47483a;
    padding-left: 10px;
}

.forum-editor-wrap .pell-content img {
    max-width: 100%;
}

.forum-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.forum-denied {
    padding: 30px 20px;
    text-align: center;
}

.forum-denied h2 {
    font-size: 16px;
    font-weight: 700;
    color: #ff3b3b;
    text-transform: uppercase;
}

.forum-denied .forum-button {
    margin: 8px 4px 0 4px;
}

/* Seitenlinks im Forum: Abstand wie zwischen den Kästen */
.container-forum-v7 .seitenlinks .pagination {
    margin-top: 5px;
    margin-bottom: 25px;
}

/* Letzter Kasten ohne Abstand nach unten, den Abstand zum Footer regelt .footer */
.container-forum-v7 > :last-child,
.container-forum-v7 > .forum-reply:last-of-type {
    margin-bottom: 0;
}

/* ---------- Handy ---------- */
@media (max-width: 767px) {
    .forum-list-row,
    .forum-topic-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .forum-sub-row {
        grid-template-columns: minmax(0, 1fr) 60px;
    }

    .forum-list-row .forum-cell-num,
    .forum-topic-row .forum-cell-num,
    .forum-sub-row .forum-cell-last,
    .forum-list-row .forum-cell-forum {
        display: none;
    }

    .forum-icon {
        display: none;
    }

    .forum-list-row:not(.forum-head) .forum-cell-title {
        padding-left: 0;
    }

    .forum-list-row .forum-cell-last {
        flex-wrap: wrap;
        row-gap: 0;
    }

    .forum-list-row .forum-cell-last .forum-muted {
        flex-basis: 100%;
    }

    .forum-post {
        grid-template-columns: minmax(0, 1fr);
    }

    .forum-author {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
        padding: 10px 14px;
    }

    .forum-avatar {
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .forum-author-meta {
        display: none;
    }
}

.container-forum-v7 > .seitenlinks:last-child .pagination {
    margin-bottom: 0;
}

/* Suche im Forum (forum/suche) */
.forum-search-snippet {
    display: block;
    margin-top: 6px;
    color: #d3d3d3;
    font-size: 13px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

.forum-search-snippet mark,
.forum-search-row .forum-strong mark {
    padding: 0 2px;
    background-color: var(--template-color, #faffa9);
    color: #131313;
}

/* Editor: HTML-Quelltext */
.forum-editor-source {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
}

.forum-editor-wrap .pell-button[aria-pressed="true"] {
    background-color: #131313;
    color: var(--template-color, #faffa9);
}

.forum-editor-wrap textarea.forum-editor {
    display: block;
    width: 100%;
    min-height: 260px;
    margin: 0;
    padding: 10px;
    border: 0;
    background-color: #131313;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
}

.forum-editor-wrap textarea.forum-editor[hidden] {
    display: none;
}

/* Hinweis "bearbeitet am …" in der Kopfzeile eines Beitrags */
.forum-edited {
    font-style: italic;
}

/* ---------- Thema verschieben (Moderatoren) ---------- */
.forum-alert.forum-alert-ok {
    background-color: #16301a;
    border-left-color: #6fdc6f;
}

.forum-move {
    position: relative;
}

.forum-move > summary {
    list-style: none;
    cursor: pointer;
}

.forum-move > summary::-webkit-details-marker {
    display: none;
}

.forum-move[open] > summary {
    border-color: var(--template-color, #faffa9);
}

.forum-move-form {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(340px, 85vw);
    padding: 12px;
    background-color: #1d1d1d;
    border: 1px solid #47483a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}

.forum-move-form .forum-label {
    margin: 0;
}

.forum-move-form .forum-button {
    align-self: flex-start;
}

/* ---------- Archiv (archivierte Themen, schreibgeschützt) ---------- */
.forum-badge-archived {
    background-color: #5a5a5a;
    color: #fff;
}

.forum-alert.forum-alert-archived {
    background-color: #262626;
    border-left-color: #9a9a9a;
}

.forum-alert-archived i {
    margin-right: 6px;
}

.forum-alert-archived a {
    margin-left: 6px;
}

.forum-archive-intro {
    margin: 0 0 15px;
}

.forum-archive-intro i,
.forum-search-archive i {
    margin-right: 6px;
}

.forum-search-archive {
    margin: 10px 0 0;
    font-size: 13px;
}
