/* WPX Forum — Frontend */
.wpxf-forum {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    font-size: 16px;
    line-height: 1.5;
}
.wpxf-forum input,
.wpxf-forum textarea,
.wpxf-forum select,
.wpxf-forum button {
    box-sizing: border-box;
}
.wpxf-breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}
.wpxf-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 4px;
}
.wpxf-toolbar a {
    text-decoration: none;
}

.wpxf-forum-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
}
.wpxf-forum-header-img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
}
.wpxf-forum-header h1 {
    flex: 1 1 min(100%, 320px);
    margin: 0;
    min-width: 0;
}
.wpxf-forum-header .wpxf-button {
    flex-shrink: 0;
}

.wpxf-overview-head {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.wpxf-forum-header--with-search,
.wpxf-search-header {
    align-items: flex-start;
}
.wpxf-forum-header__main {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    min-width: 0;
}
.wpxf-forum-header__main h1 {
    flex: 1 1 min(100%, 200px);
}
.wpxf-forum-header__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    margin-left: auto;
    flex: 0 1 min(340px, 100%);
    max-width: 100%;
    min-width: 200px;
}
.wpxf-forum-header__aside .wpxf-search-inline {
    align-self: stretch;
    width: 100%;
}
.wpxf-forum-header__aside > .wpxf-forum-header__new-topic {
    flex-shrink: 0;
    width: auto;
}
.wpxf-forum-header__aside > .wpxf-search-cancel {
    align-self: stretch;
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
}
.wpxf-search-query {
    margin: 0.15rem 0 0;
    flex: 1 1 100%;
    font-size: 0.88rem;
    color: #646970;
}
.wpxf-search-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wpxf-search-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
}
.wpxf-search-inline input[type="search"] {
    flex: 1 1 140px;
    min-width: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.86rem;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    box-sizing: border-box;
}
.wpxf-search-inline .wpxf-button {
    padding: 0.35rem 0.65rem;
    font-size: 0.86rem;
    white-space: nowrap;
}
.wpxf-search-section {
    margin: 0 0 1.25rem;
}
.wpxf-search-section__title {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
}
.wpxf-search-forums,
.wpxf-search-users,
.wpxf-search-results {
    margin: 0;
    padding: 0;
    list-style: none;
}
.wpxf-search-forums li,
.wpxf-search-users li,
.wpxf-search-results li {
    margin: 0 0 0.65rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}
.wpxf-search-snippet,
.wpxf-snippet {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #50575e;
    line-height: 1.4;
}
.wpxf-search-result-forum,
.wpxf-search-result-author,
.wpxf-search-user-meta {
    font-size: 0.82rem;
    color: #646970;
}
.wpxf-search-user-name {
    font-weight: 600;
}

.wpxf-unread-header .wpxf-button,
.wpxf-activity-header .wpxf-button,
.wpxf-archive-header .wpxf-button {
    margin-left: auto;
}

.wpxf-page-lead {
    margin: -0.25rem 0 0.85rem;
    font-size: 0.9rem;
    color: #646970;
    line-height: 1.4;
}
.wpxf-forum-header__main .wpxf-page-lead {
    margin: 0.15rem 0 0;
    flex: 1 1 100%;
}

/* Aktivitäts-Filter */
.wpxf-activity-filters {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
}
.wpxf-activity-filters__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
}
.wpxf-activity-filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 140px;
    min-width: 0;
    margin: 0;
}
.wpxf-activity-filters__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #646970;
}
.wpxf-activity-filters__field select {
    width: 100%;
    max-width: 100%;
    padding: 0.3rem 0.45rem;
    font-size: 0.86rem;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
}
.wpxf-activity-filters__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    flex: 0 0 auto;
}
.wpxf-activity-filters__actions .wpxf-button {
    margin: 0;
}
.wpxf-activity-filters__reset {
    font-size: 0.82rem;
    color: #646970;
    text-decoration: none;
}
.wpxf-activity-filters__reset:hover {
    color: #2A6B6B;
    text-decoration: underline;
}

/* Aktivitäts-Feed (kompakt) */
.wpxf-activity-wrap {
    margin-top: 0;
}
.wpxf-activity-empty {
    margin-top: 0;
}
.wpxf-activity-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.wpxf-activity-item {
    margin: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}
.wpxf-activity-feed .wpxf-activity-item:nth-child(even) {
    background: #fffef5;
}
.wpxf-activity-item__body {
    min-width: 0;
}
.wpxf-activity-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.2rem;
}
.wpxf-activity-item__badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    background: #D4EDED;
    color: #2A6B6B;
    line-height: 1.35;
}
.wpxf-activity-item--topic_created .wpxf-activity-item__badge,
.wpxf-activity-item--post_created .wpxf-activity-item__badge {
    background: #edfaef;
    color: #1e6b32;
}
.wpxf-activity-item--post_edited .wpxf-activity-item__badge {
    background: #fcf9e8;
    color: #8a6d1d;
}
.wpxf-activity-item--topic_moved .wpxf-activity-item__badge {
    background: #f3f0ff;
    color: #53389e;
}
.wpxf-activity-item__time {
    margin-left: auto;
    font-size: 0.78rem;
    color: #787c82;
}
.wpxf-activity-item__action {
    margin: 0 0 0.2rem;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #50575e;
}
.wpxf-activity-item__author {
    font-weight: 600;
    color: #1d2327;
    margin-right: 0.25rem;
}
.wpxf-activity-item__action-text {
    color: #646970;
}
.wpxf-activity-item__preview {
    margin: 0 0 0.25rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #50575e;
}
.wpxf-activity-item__move-reason,
.wpxf-activity-item__move-target {
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #50575e;
}
.wpxf-activity-item__move-label {
    font-weight: 600;
    color: #646970;
    margin-right: 0.2rem;
}
.wpxf-activity-item__context {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #646970;
}
.wpxf-activity-item__context a {
    font-weight: 500;
}
.wpxf-activity-item__sep {
    margin: 0 0.2rem;
    color: #c3c4c7;
}
.wpxf-activity-item__link {
    margin-left: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.wpxf-activity-item__link:hover {
    text-decoration: underline;
}
.wpxf-activity-diff {
    display: flex;
    flex-direction: column;
    margin: 0.25rem 0 0.3rem;
    gap: 0.35rem;
}
.wpxf-activity-diff .wpxf-diff-block {
    border-radius: 3px;
}
.wpxf-activity-diff .wpxf-diff-label {
    padding: 2px 0 3px;
    font-size: 0.68rem;
}
.wpxf-activity-diff .wpxf-diff-text {
    max-height: 4.5em;
    padding: 4px 0 5px;
    font-size: 0.78rem;
    line-height: 1.35;
}
@media (min-width: 640px) {
    .wpxf-activity-diff {
        flex-direction: row;
        align-items: stretch;
    }
    .wpxf-activity-diff .wpxf-diff-block {
        flex: 1 1 50%;
        min-width: 0;
    }
}
a.wpxf-button.wpxf-button--ghost,
button.wpxf-button.wpxf-button--ghost {
    background: var(--wpxf-surface, #fff);
    color: var(--wpxf-link, #2A6B6B);
    border: 2px solid var(--wpxf-border, #c3c4c7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
a.wpxf-button.wpxf-button--ghost:hover,
a.wpxf-button.wpxf-button--ghost:focus,
button.wpxf-button.wpxf-button--ghost:hover,
button.wpxf-button.wpxf-button--ghost:focus {
    background: var(--wpxf-surface-muted, #f6f7f7);
    color: var(--wpxf-primary-hover, #135e96);
    border-color: var(--wpxf-border, #8c8f94);
}

a.wpxf-button.wpxf-button--danger,
button.wpxf-button.wpxf-button--danger {
    background: var(--wpxf-surface, #fff);
    color: #b32d2e;
    border: 2px solid #b32d2e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
a.wpxf-button.wpxf-button--danger:hover,
a.wpxf-button.wpxf-button--danger:focus,
button.wpxf-button.wpxf-button--danger:hover,
button.wpxf-button.wpxf-button--danger:focus {
    background: #b32d2e;
    color: #fff;
    border-color: #8a2424;
}

.wpxf-toolbar .wpxf-search {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    flex: 1 1 220px;
    min-width: 0;
}
.wpxf-toolbar .wpxf-search input[type="search"] {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 100%;
    padding: 0.45rem 0.65rem;
}
.wpxf-toolbar .wpxf-search button {
    padding: 0.45rem 0.85rem;
}

.wpxf-td-mobile-caption {
    display: none;
}
.wpxf-notice-archived {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #fcf9e8;
    border: 1px solid #dba617;
    border-radius: 4px;
}
.wpxf-notice-archived .wpxf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0.35rem 0.4rem 0.15rem 0;
    min-height: 2.25rem;
    padding: 0.3rem 0.7rem;
    border-width: 2px;
    border-style: solid;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.wpxf-notice:empty,
.wpxf-notice-archived:empty,
.wpxf-notice-error:empty,
.wpxf-notice-info:empty {
    display: none;
}
.wpxf-notice p:empty {
    display: none;
}
.wpxf-notice-error {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #fcf0f1;
    border: 1px solid #d63638;
    border-radius: 4px;
    color: #b32d2e;
}
.wpxf-notice-info {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #D4EDED;
    border: 1px solid #2A6B6B;
    border-radius: 4px;
    color: #1d2327;
}
/* Slot unter der Themen-Kopfzeile (z. B. CCM Userakte-Hinweis) */
.wpxf-topic-after-header-slot {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.5rem;
}

.wpxf-topic-after-header-slot .wpxf-notice.wpxf-notice-info.ccm-crosslink-banner {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* CCM: Rückverweis Userakte — warmer Hinweisrahmen statt blauer Info-Kasten (wie Einzelberatung) */
.wpxf-notice.wpxf-notice-info.ccm-crosslink-banner {
    margin: 1rem 0;
    padding: 1rem 1.2rem 1.1rem;
    background: linear-gradient(165deg, #fffef8 0%, #faf4e4 55%, #f5ecd4 100%);
    border: 1px solid #d4b48a;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(139, 99, 42, 0.06);
    color: #1d2327;
    box-sizing: border-box;
}
.wpxf-notice.wpxf-notice-info.ccm-crosslink-banner p {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.55;
}
.wpxf-notice.wpxf-notice-info.ccm-crosslink-banner .ccm-crosslink-banner-list {
    margin: 0.5rem 0 0;
    padding-left: 0;
    list-style: none;
}
.wpxf-notice.wpxf-notice-info.ccm-crosslink-banner .ccm-crosslink-banner-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.4rem 0;
    line-height: 1.45;
}
.wpxf-notice.wpxf-notice-info.ccm-crosslink-banner .ccm-crosslink-banner-item-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    color: #787c82;
    line-height: 0;
}
.wpxf-notice.wpxf-notice-info.ccm-crosslink-banner .ccm-crosslink-banner-item-icon--paper .ccm-crosslink-doc-mark {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    width: 1.15em;
    text-align: center;
}
.wpxf-notice.wpxf-notice-info.ccm-crosslink-banner .ccm-crosslink-banner-list a {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    text-underline-offset: 2px;
}
.wpxf-redacted {
    padding: 0 2px;
    background: #fcf0f1 !important;
    border: 1px solid #d63638;
    border-radius: 3px;
    color: #b32d2e !important;
    font-size: 0.95em;
}
.wpxf-contact-filtered-wrap {
    display: inline;
    white-space: normal;
}
mark.wpxf-contact-filtered,
.wpxf-contact-filtered {
    padding: 0 2px;
    background: #fcf0f1 !important;
    border: 1px solid #d63638;
    border-radius: 3px;
    color: #b32d2e !important;
    font-style: normal;
    font-weight: 600;
}
.wpxf-contact-allow-btn {
    display: inline-block;
    margin: 0 0 0 0.25rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid #2A6B6B;
    border-radius: 3px;
    background: #D4EDED;
    color: #135e96;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    vertical-align: baseline;
}
.wpxf-contact-allow-btn:hover,
.wpxf-contact-allow-btn:focus {
    background: #2A6B6B;
    border-color: #2A6B6B;
    color: #fff;
}
.wpxf-contact-allow-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.wpxf-redaction-note {
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.75rem;
    background: #f6f7f7;
    border-left: 4px solid #d63638;
    color: #50575e;
    font-size: 0.9rem;
}
.wpxf-topic-archive-action {
    margin-bottom: 1rem;
}

/* Themen-Archiv */
.wpxf-archive-header {
    align-items: flex-start;
}
.wpxf-archive-header .wpxf-forum-header__aside {
    min-width: 0;
    flex: 0 1 auto;
}
.wpxf-archive-header .wpxf-forum-header__aside > .wpxf-topic-back-forum {
    margin: 0;
    width: auto;
    white-space: nowrap;
}
.wpxf-archive-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1rem;
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
}
.wpxf-archive-toolbar__select {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    cursor: pointer;
    color: #1d2327;
}
.wpxf-archive-toolbar__select input[type="checkbox"],
.wpxf-archive-item__check input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.wpxf-archive-toolbar .wpxf-button {
    margin-left: auto;
}
.wpxf-archive-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0 0 1rem;
}
.wpxf-archive-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}
.wpxf-archive-list .wpxf-archive-item:nth-child(even) {
    background: #fffef5;
}
.wpxf-archive-item--ghost {
    background: #eef6fc;
    border-color: #90caf9;
}
.wpxf-archive-list .wpxf-archive-item--ghost:nth-child(even) {
    background: #e3f2fd;
}
.wpxf-archive-item__body {
    flex: 1 1 min(100%, 220px);
    min-width: 0;
}
.wpxf-archive-item__check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.wpxf-archive-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin-bottom: 0.25rem;
}
.wpxf-archive-item__badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    background: #f0f0f1;
    color: #50575e;
    line-height: 1.35;
}
.wpxf-archive-item__badge--ghost {
    background: #e3f2fd;
    color: #1565c0;
}
.wpxf-archive-item__title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}
.wpxf-archive-item__title a {
    text-decoration: none;
}
.wpxf-archive-item__title a:hover {
    text-decoration: underline;
}
.wpxf-archive-item__meta {
    margin: 0;
    font-size: 0.82rem;
    color: #646970;
    line-height: 1.35;
}
.wpxf-archive-item__meta-label {
    font-weight: 600;
    margin-right: 0.2rem;
}
.wpxf-archive-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex: 0 1 auto;
}
.wpxf-archive-item__actions > a,
.wpxf-archive-item__form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 0;
}
.wpxf-archive-item__actions .wpxf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 600;
    min-height: 2.25rem;
    padding: 0.3rem 0.7rem;
    border-width: 2px;
    border-style: solid;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

/* Themenkopf: Titel, Eröffnet am …, Zurück-Button */
.wpxf-topic-header--main {
    margin-bottom: 1rem;
}
.wpxf-topic-header--with-find {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem 1.25rem;
}
.wpxf-topic-header__main {
    flex: 1 1 min(100%, 220px);
    min-width: 0;
}
.wpxf-topic-header__aside {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-left: auto;
    flex: 1 1 min(40px, 100%);
    max-width: 100%;
    min-width: min(100%, 280px);
}
.wpxf-topic-find-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}
.wpxf-topic-header__aside .wpxf-topic-find {
    width: 100%;
}
.wpxf-topic-find-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    padding: 0.55rem 0.65rem;
    background: #f0f6f6;
    border: 1px solid #c5d6d6;
    border-radius: 8px;
    font-size: 0.86rem;
    box-sizing: border-box;
}
.wpxf-topic-find-bar__status {
    margin: 0;
    flex: 1 1 160px;
    color: #3c434a;
    line-height: 1.35;
}
.wpxf-topic-find-bar__query {
    display: inline;
    margin-left: 0.15rem;
    color: #646970;
}
.wpxf-topic-find-bar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.wpxf-topic-find-bar__nav .wpxf-button {
    font-size: 0.82rem;
    line-height: 1.35;
    min-height: 0;
    padding: 0.35rem 0.7rem;
    margin: 0;
}
.wpxf-topic-find-bar__nav .wpxf-button:disabled,
.wpxf-topic-find-bar__nav .wpxf-button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}
.wpxf-topic-find-bar .wpxf-topic-find-clear {
    text-decoration: none;
}
mark.wpxf-topic-find-mark {
    background: #fff3a0;
    color: inherit;
    padding: 0 0.12em;
    border-radius: 2px;
    scroll-margin-block: 28vh;
}
mark.wpxf-topic-find-mark.is-current {
    background: #ffd54f;
    outline: 2px solid #c9a227;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 213, 79, 0.5);
}
.wpxf-post.wpxf-post--hash-target {
    outline: 2px solid #2A6B6B;
    outline-offset: 2px;
    transition: outline-color 0.3s ease;
}
.wpxf-post.wpxf-post--topic-opening .wpxf-post-head {
    background: linear-gradient(90deg, #e7f0fa 0%, var(--wpxf-post-head-bg, #f6f7f7) 70%);
}
.wpxf-topic-reply-above-posts {
    margin: 0 0 0.65rem;
}
.wpxf-topic-reply-above-posts__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.wpxf-topic-title-main {
    margin: 0 0 0.35rem;
}
.wpxf-topic-opened-meta {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #646970;
}
.wpxf-topic-back-wrap {
    margin: 0 0 0.25rem;
}
/* Wie CCM .ccm-back-to-list: gefüllt grün, weiße Schrift */
.wpxf-topic-back-forum,
a.wpxf-button.wpxf-topic-back-forum {
    display: inline-block;
    margin: 0 0 1em;
    padding: 0.45em 1.15em;
    background: var(--wpxf-button-bg, var(--wpxf-primary, #2a6b6b));
    color: var(--wpxf-button-text, #ffffff) !important;
    border: 2px solid var(--wpxf-button-bg, var(--wpxf-primary, #2a6b6b));
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    filter: none;
}
.wpxf-topic-back-forum:hover,
.wpxf-topic-back-forum:focus,
.wpxf-topic-back-forum:focus-visible,
a.wpxf-button.wpxf-topic-back-forum:hover,
a.wpxf-button.wpxf-topic-back-forum:focus,
a.wpxf-button.wpxf-topic-back-forum:focus-visible {
    background: var(--wpxf-button-bg-hover, var(--wpxf-button-bg, var(--wpxf-primary, #2a6b6b)));
    border-color: var(--wpxf-button-bg-hover, var(--wpxf-button-bg, var(--wpxf-primary, #2a6b6b)));
    color: var(--wpxf-button-text-hover, var(--wpxf-button-text, #ffffff)) !important;
    text-decoration: none !important;
    filter: none;
}
.wpxf-topic-back-forum:focus-visible,
a.wpxf-button.wpxf-topic-back-forum:focus-visible {
    outline: 2px solid var(--wpxf-button-bg, var(--wpxf-primary, #2a6b6b));
    outline-offset: 2px;
}

/* Moderations-Leiste (Thema-Aktionen) */
.wpxf-topic-admin-bar {
    margin: 0.75rem 0 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--wpxf-menu-bg, #fcf9e8);
    border: 1px solid var(--wpxf-menu-border, #dba617);
    border-radius: 4px;
}
.wpxf-topic-admin-bar,
.wpxf-topic-admin-bar * {
    color: var(--wpxf-menu-text, #1d2327);
}
.wpxf-topic-admin-bar__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wpxf-topic-admin-bar__list li {
    margin: 0;
    padding: 0;
}
.wpxf-topic-admin-bar__form {
    display: inline;
    margin: 0;
}
.wpxf-topic-admin-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0 0 2px;
    font: inherit;
    line-height: 1.4;
    color: var(--wpxf-menu-text, #1d2327);
    background: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
    .wpxf-topic-admin-bar__btn {
        transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    }
    .wpxf-topic-admin-bar__btn:hover {
        color: #fff;
        background: var(--wpxf-primary, #2A6B6B);
    }
}
.wpxf-topic-admin-bar__btn:focus-visible {
    color: #fff;
    background: var(--wpxf-primary, #2A6B6B);
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.wpxf-topic-admin-bar__btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.wpxf-topic-admin-bar__btn .wpxf-ico-ghost {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}
.wpxf-topic-admin-bar__btn .wpxf-ico-ghost svg {
    display: block;
}
.wpxf-category {
    margin-bottom: 2rem;
}
.wpxf-category-title {
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.25rem;
}
.wpxf-topic-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wpxf-topic-list li {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}
.wpxf-topic-list li.wpxf-sticky {
    background: #fffbf0;
}
.wpxf-post {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 1rem 0;
    padding: 1rem;
}
.wpxf-post-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    margin: -1rem -1rem 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #666;
    background: var(--wpxf-post-head-bg, #f6f7f7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.wpxf-post-head-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.65rem;
    flex-shrink: 0;
    text-align: right;
}
.wpxf-post-head-kind {
    font-size: 0.85em;
    color: #646970;
    white-space: nowrap;
}
.wpxf-post-author-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
}
.wpxf-post-author-row .wpxf-author {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    max-width: 100%;
}
.wpxf-author-name {
    min-width: 0;
    white-space: normal;
    word-break: break-word;
}
.wpxf-author-extras {
    display: inline-flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    gap: 0.1rem;
}
.wpxf-lastpost-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    width: 100%;
}
.wpxf-lastpost-author .wpxf-author {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}
.wpxf-author-extra-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #50575e;
    text-decoration: none !important;
    line-height: 1;
}
.wpxf-author-extra-link:visited {
    color: #50575e;
    text-decoration: none !important;
}
.wpxf-author-extra-link:hover,
.wpxf-author-extra-link:focus {
    color: #2A6B6B;
    text-decoration: none !important;
}
.wpxf-author-extra-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.wpxf-post-body {
    min-height: 150px;
}
.wpxf-post-body .brm-auto-signature {
    margin-top: 1em;
    padding-top: 0.75em;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.95em;
    color: #444;
}
.wpxf-post-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}
.wpxf-post-menu {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--wpxf-menu-bg, #fcf9e8);
    border: 1px solid var(--wpxf-menu-border, #dba617);
    border-radius: 4px;
}
.wpxf-post-menu__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wpxf-post-menu__list > li {
    flex: 0 0 auto;
}
.wpxf-post-menu__form {
    display: inline;
    margin: 0;
}
.wpxf-post-menu__item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0 0 2px;
    font: inherit;
    line-height: 1.4;
    color: var(--wpxf-menu-text, #1d2327) !important;
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: 2px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.wpxf-post-menu__item:visited {
    color: var(--wpxf-menu-text, #1d2327) !important;
}
.wpxf-post-menu__item .dashicons {
    color: currentColor;
}
/* Hover nur bei echter Maus — sonst sticky :hover beim Scrollen auf Touch → Flackern */
@media (hover: hover) and (pointer: fine) {
    .wpxf-post-menu__item {
        transition: color 0.12s ease, background 0.12s ease;
    }
    .wpxf-post-menu__item:hover {
        color: #fff !important;
        background: var(--wpxf-primary, #2A6B6B);
        text-decoration: none;
    }
    .wpxf-post-menu__item--danger:hover {
        color: #fff;
    }
}
.wpxf-post-menu__item:focus-visible {
    color: #fff !important;
    background: var(--wpxf-primary, #2A6B6B);
    text-decoration: none;
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.wpxf-post-menu__item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.wpxf-post-menu__item--danger {
    color: var(--wpxf-menu-text, #1d2327);
}
.wpxf-post-menu__item--danger .dashicons {
    color: currentColor;
}
.wpxf-post-menu__item--danger:focus-visible {
    color: #fff;
}
.wpxf-topic-admin-bar__btn--spam,
.wpxf-post-menu__item--spam {
    color: #b32d2e;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.wpxf-topic-admin-bar__btn--spam .dashicons,
.wpxf-post-menu__item--spam .dashicons {
    color: currentColor;
}
@media (hover: hover) and (pointer: fine) {
    .wpxf-topic-admin-bar__btn--spam:hover,
    .wpxf-post-menu__item--spam:hover {
        color: #fff;
        background: #b32d2e;
    }
}
.wpxf-topic-admin-bar__btn--spam:focus-visible,
.wpxf-post-menu__item--spam:focus-visible {
    color: #fff;
    background: #b32d2e;
}
/* Hinweis entfällt zugunsten der Kennzeichnung in .wpxf-post-head-kind und .wpxf-post-public-hidden */
.wpxf-post-edit-info {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    border-left: 4px solid var(--wpxf-menu-border, #dba617);
    background: #f6f7f7;
    color: #50575e;
    font-size: 0.9rem;
}
.wpxf-post-report-notice {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d63638;
    border-radius: 4px;
    background: #fcf0f1;
    color: #b32d2e;
}
.wpxf-post-report-notice__label {
    margin: 0 0 0.35rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.wpxf-post-report-notice__reason {
    margin: 0 0 0.5rem;
    font-weight: 500;
}
.wpxf-post-report-notice__meta {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    opacity: 0.95;
}
.wpxf-post-report-notice__resolve {
    margin: 0;
}
.wpxf-report-panel {
    margin: 0;
    padding: 0.65rem 0.75rem;
    background: var(--wpxf-menu-bg, #fcf9e8);
    border: 1px solid var(--wpxf-menu-border, #dba617);
    border-radius: 4px;
}
.wpxf-report-panel[hidden] {
    display: none !important;
}
.wpxf-report-form textarea {
    margin-top: 0.35rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.wpxf-report-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.wpxf-report-form__actions .button-primary {
    background: var(--wpxf-primary, #2A6B6B);
    border-color: var(--wpxf-primary, #2A6B6B);
    color: #fff;
}
.wpxf-report-form__actions .wpxf-report-cancel.button {
    background: var(--wpxf-surface-muted, #f6f7f7);
    border: 1px solid var(--wpxf-border, #c3c4c7);
    color: var(--wpxf-text, #2c3338);
}
.wpxf-report-form__actions .wpxf-report-cancel.button:hover,
.wpxf-report-form__actions .wpxf-report-cancel.button:focus {
    background: var(--wpxf-active-bg, #f0f0f1);
    color: var(--wpxf-text, #1d2327);
}
.wpxf-topic-report-reason-preview {
    font-size: 0.88rem;
    color: #646970;
    margin: 0.25rem 0 0.35rem;
}
.wpxf-topic-report-resolve-form {
    margin: 0.25rem 0 0.5rem;
}
.wpxf-inline {
    display: inline;
}
.wpxf-button,
.wpxf-reply-form button,
.wpxf-toolbar button {
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    background: var(--wpxf-primary, #2A6B6B);
    color: #fff;
    border: none;
    border-radius: 3px;
}
/* Beitrag bearbeiten: Speichern + Abbrechen gleich (wie Primary-Button) */
.wpxf-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Neues Thema: Feldgruppen wie Client-Case-Manager */
.wpxf-topic-form {
    width: 100%;
    max-width: 100%;
}
.wpxf-topic-form .wpxf-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
    padding: 1rem 1.15rem;
    box-sizing: border-box;
    background: var(--wpxf-surface, #fff);
    border: 1px solid var(--wpxf-border, #c3c4c7);
    border-radius: 6px;
}
.wpxf-topic-form .wpxf-form-field--compact {
    padding: 0.85rem 1.15rem;
}
.wpxf-topic-form .wpxf-form-field > label {
    display: block;
    margin: 0;
    font-weight: 600;
    color: var(--wpxf-text, #1d2327);
}
.wpxf-topic-form .wpxf-form-field input[type="text"],
.wpxf-topic-form .wpxf-form-field input.widefat,
.wpxf-topic-form .wpxf-form-field textarea,
.wpxf-topic-form .wpxf-form-field textarea.large-text {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    box-sizing: border-box;
}
.wpxf-topic-form .wpxf-editor-toolbar {
    margin: 0;
}
.wpxf-topic-form .wpxf-emoji-wrap {
    margin: 0;
}
.wpxf-topic-form .wpxf-form-actions {
    margin-top: 0.25rem;
    align-items: stretch;
}
.wpxf-topic-form .wpxf-form-actions .wpxf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    min-height: 2.75rem;
    padding: 0.55rem 1.35rem;
    box-sizing: border-box;
    border-width: 2px;
    border-style: solid;
    border-radius: 8px;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
}

.wpxf-reply-form .wpxf-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}
.wpxf-reply-form .wpxf-form-action-btn {
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    min-width: 10rem;
    box-sizing: border-box;
    background: var(--wpxf-primary, #2A6B6B);
    color: #fff !important;
    border: none;
    border-radius: 3px;
    font: inherit;
    line-height: 1.5;
    text-align: center;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wpxf-reply-form a.wpxf-form-action-btn:visited {
    color: #fff !important;
}
.wpxf-reply-form .wpxf-form-action-btn:hover,
.wpxf-reply-form .wpxf-form-action-btn:focus {
    color: #fff !important;
    background: var(--wpxf-primary-hover, #135e96);
}
.wpxf-reply-form .wpxf-form-action-btn:focus-visible {
    outline: 2px solid var(--wpxf-primary, #2A6B6B);
    outline-offset: 2px;
}
.wpxf-pagination {
    margin: 1rem 0;
}
.wpxf-pagination__inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.55rem;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.wpxf-pagination__pages {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.15rem;
}
.wpxf-pagination a.wpxf-pagination__num,
.wpxf-pagination a.wpxf-pagination__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    color: #1d2327;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.wpxf-pagination a.wpxf-pagination__nav {
    font-size: 1.15rem;
    font-weight: 600;
    min-width: 2.4rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    color: var(--wpxf-link, #2A6B6B);
}
.wpxf-pagination a.wpxf-pagination__num:hover,
.wpxf-pagination a.wpxf-pagination__num:focus,
.wpxf-pagination a.wpxf-pagination__nav:hover,
.wpxf-pagination a.wpxf-pagination__nav:focus {
    background: var(--wpxf-active-bg, #D4EDED);
    border-color: var(--wpxf-primary, #2A6B6B);
    color: var(--wpxf-primary-hover, #135e96);
}
.wpxf-pagination a.wpxf-pagination__num:focus-visible,
.wpxf-pagination a.wpxf-pagination__nav:focus-visible {
    outline: 2px solid var(--wpxf-primary, #2A6B6B);
    outline-offset: 2px;
}
.wpxf-pagination a.wpxf-pagination__num.current {
    background: var(--wpxf-primary, #2A6B6B);
    border-color: var(--wpxf-primary, #2A6B6B);
    color: #fff;
    font-weight: 600;
    cursor: default;
}
.wpxf-pagination span.wpxf-pagination__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.35rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    color: #a7aaad;
    font-size: 1.15rem;
    font-weight: 600;
    user-select: none;
}
.wpxf-pagination span.wpxf-pagination__nav--disabled {
    opacity: 0.55;
}
.wpxf-pagination .wpxf-pagination__sym {
    line-height: 1;
    position: relative;
    top: -0.05em;
}
.wpxf-error {
    color: #b32d2e;
}
.wpxf-spoiler-body[hidden] {
    display: none;
}

/* Toggle-Panels */
.wpxf-reply-form[hidden],
.wpxf-move-topic-panel[hidden] {
    display: none;
}
.wpxf-reply-togglebar,
.wpxf-move-topic {
    margin: 0.75rem 0;
}
.wpxf-reply-togglebar--footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.wpxf-reply-togglebar--footer > .wpxf-notice {
    width: 100%;
    box-sizing: border-box;
}
.wpxf-team-post-option {
    margin: 0.75rem 0 0.25rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #7acb7a;
    background: #eaffea;
    border-radius: 4px;
}
.wpxf-team-post-option label {
    font-weight: 600;
    color: #1b5e20;
}
.wpxf-team-post-option input[type="checkbox"] {
    transform: translateY(1px);
}
.wpxf-topic-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
}
.wpxf-emoji-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem;
}
.wpxf-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    max-height: none;
    overflow-y: visible;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
}
.wpxf-emoji-item {
    font-size: 1.2rem;
    padding: 2px 4px;
    cursor: pointer;
}
.wpxf-emoji-item:hover {
    background: #eee;
    border-radius: 4px;
}

.wpxf-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0.25rem 0 0.4rem;
}
.wpxf-editor-btn {
    padding: 0.35rem 0.75rem;
    background: var(--wpxf-primary, #2A6B6B);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font: inherit;
}
.wpxf-editor-btn:hover,
.wpxf-editor-btn:focus-visible {
    background: var(--wpxf-primary-hover, #1b5f93);
}

.wpxf-link-popover[hidden] {
    display: none;
}
.wpxf-link-popover__inner {
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    background: #fff;
    border-radius: 6px;
    max-width: 42rem;
}
.wpxf-link-popover__row {
    margin: 0 0 10px;
}
.wpxf-link-popover__label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.wpxf-link-popover input[type="search"],
.wpxf-link-popover input[type="url"],
.wpxf-link-popover input[type="text"] {
    width: 100%;
    max-width: 32rem;
}
.wpxf-link-page-results {
    margin-top: 6px;
    display: none;
}
.wpxf-link-pick {
    margin: 0;
    padding: 0;
    list-style: none;
}
.wpxf-link-pick li {
    margin: 0 0 4px;
}
.wpxf-link-pick-item {
    color: #1d2327;
    cursor: pointer;
    padding: 2px 0;
}
.wpxf-link-pick-item:hover,
.wpxf-link-pick-item:focus-visible {
    text-decoration: underline;
    outline: none;
}
.wpxf-link-popover__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Modal: Blacklist */
.wpxf-modal[hidden] { display: none; }
.wpxf-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 100000;
}
.wpxf-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: min(560px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 6px;
    padding: 14px 16px;
    z-index: 100001;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.wpxf-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}
.wpxf-blacklist-words-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}
.wpxf-blacklist-word-chip {
    padding: 2px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 999px;
    background: #f6f7f7;
    cursor: pointer;
    font-size: 0.9rem;
}
.wpxf-blacklist-word-chip:hover { background: #e3e5e7; }
.wpxf-blacklist-error {
    color: #b32d2e;
    margin: 8px 0 0;
}
.wpxf-blacklist-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.wpxf-topic-actions .wpxf-inline {
    margin: 0;
}
.wpxf-topic-actions .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-top;
    margin-right: 0.2rem;
}

.wpxf-topic-ghost-label {
    display: inline-block;
    margin-right: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.wpxf-topic-ghost-label-inline {
    font-weight: 700;
    color: #1d2327;
    margin-left: 0.35rem;
    font-size: 0.95em;
}
.wpxf-topic-ghost-wrap {
    background: #e3f2fd;
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 6px;
    margin: 0 0 1rem;
    border: 1px solid #90caf9;
}
.wpxf-topic-ghost-wrap .wpxf-topic-header--main {
    margin-top: 0;
    padding-top: 0;
}
.wpxf-topic-ghost-wrap .wpxf-post {
    background: rgba(255, 255, 255, 0.72);
    border-color: #90caf9;
}
.wpxf-topic-ghost-wrap .wpxf-ghost-panel {
    background: rgba(255, 255, 255, 0.55);
    border-color: #90caf9;
}
.wpxf-topic-ghost-wrap .wpxf-poll {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid #90caf9;
    border-radius: 4px;
    padding: 0.75rem 1rem;
}
.wpxf-ghost-panel {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fafafa;
}
.wpxf-ghost-freigabe {
    margin-top: 1rem;
}
.wpxf-ghost-freigabe-title {
    margin: 0 0 0.65rem;
}
.wpxf-ghost-grants {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.wpxf-ghost-grants__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #ddd;
}
.wpxf-ghost-grants__item:last-child {
    border-bottom: none;
}
.wpxf-ghost-grants__name {
    flex: 1;
    min-width: 0;
}
.wpxf-ghost-grants__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}
.wpxf-ghost-grants__badge {
    font-size: 0.92em;
    font-weight: 600;
    color: #50575e;
    white-space: nowrap;
}
.wpxf-ghost-grants__revoke {
    margin: 0;
}
.wpxf-ghost-user-results ul.wpxf-ghost-pick {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}
.wpxf-ghost-user-results li {
    margin: 0.25rem 0;
}

/* Foren-Übersicht: Kachel-Raster */
.wpxf-category--tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
}
.wpxf-category--tiles .wpxf-category-title {
    grid-column: 1 / -1;
}

.wpxf-forum-tile--card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    background: var(--wpxf-surface, #fff);
    border: 1px solid var(--wpxf-border, #e0e0e0);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 0;
    color: var(--wpxf-text, #1d2327);
}
.wpxf-forum-tile--ghost {
    background: var(--wpxf-active-bg, #e3f2fd);
    border-color: var(--wpxf-active-border, #90caf9);
}
.wpxf-forum-tile-hero {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e8e8e8;
    overflow: hidden;
    flex-shrink: 0;
}
.wpxf-forum-tile-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wpxf-forum-tile-hero--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--wpxf-active-bg, #e3f2fd), var(--wpxf-surface-muted, #f5f5f5));
    color: var(--wpxf-text-muted, #646970);
    text-decoration: none;
}
.wpxf-forum-tile-hero--placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.6;
}
.wpxf-forum-tile-body {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    min-height: 0;
}
.wpxf-forum-tile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-height: 0;
}
.wpxf-forum-tile-body h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
    max-height: calc(1.3em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.wpxf-forum-tile-body h3 a {
    color: var(--wpxf-text, #1d2327);
    text-decoration: none;
}
.wpxf-forum-tile-body h3 a:hover {
    color: var(--wpxf-link, #2A6B6B);
}
.wpxf-forum-tile-body .wpxf-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--wpxf-text-muted, #646970);
    line-height: 1.45;
    min-height: calc(1.45em * 3);
    max-height: calc(1.45em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.wpxf-forum-tile-count {
    margin: 0.15rem 0 0;
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--wpxf-text-muted, #50575e);
    line-height: 1.4;
    min-height: 1.4em;
}
.wpxf-forum-tile-lastpost {
    margin: 0 -1.25rem;
    padding: 1rem 1.25rem;
    background: var(--wpxf-notice-warning-bg, #fff9e6);
    border-top: 1px solid var(--wpxf-notice-warning-border, #f0e6c8);
    border-bottom: 1px solid var(--wpxf-notice-warning-border, #f0e6c8);
    font-size: 0.9rem;
    flex: 0 0 auto;
    height: 10.75rem;
    min-height: 10.75rem;
    max-height: 10.75rem;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.wpxf-forum-tile-lastpost--ghost {
    background: var(--wpxf-notice-warning-bg, #fff9e6);
    border-top-color: var(--wpxf-notice-warning-border, #f0e6c8);
    border-bottom-color: var(--wpxf-notice-warning-border, #f0e6c8);
}
.wpxf-forum-lastpost-inner {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 100%;
}
.wpxf-forum-lastpost-line {
    margin: 0;
    color: var(--wpxf-text-muted, #50575e);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}
.wpxf-forum-lastpost-label {
    color: var(--wpxf-text, #1d2327);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.wpxf-forum-lastpost-label .wpxf-topic-icon--ghost {
    flex-shrink: 0;
    display: inline-flex;
    color: var(--wpxf-link, #2A6B6B);
}
.wpxf-forum-lastpost-label .wpxf-ico-ghost svg {
    display: block;
    width: 16px;
    height: 16px;
}
.wpxf-forum-lastpost-date {
    font-weight: 400;
    white-space: nowrap;
}
.wpxf-forum-lastpost-topic-row {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
    min-height: 1.35em;
    margin-top: 0.1rem;
}
.wpxf-forum-lastpost-topic {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 500;
    margin: 0;
    color: var(--wpxf-link, #2A6B6B);
    text-decoration: none;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
}
.wpxf-forum-lastpost-topic:hover {
    text-decoration: underline;
}
.wpxf-forum-lastpost-topic--empty {
    color: var(--wpxf-text-muted, #787c82);
    font-weight: 400;
    -webkit-line-clamp: 2;
}
.wpxf-forum-lastpost-topic--empty:hover {
    text-decoration: none;
}
.wpxf-forum-lastpost-date--empty,
.wpxf-forum-lastpost-author--empty {
    visibility: hidden;
}
.wpxf-forum-lastpost-author {
    color: var(--wpxf-text, #1d2327);
    font-size: 0.88rem;
    line-height: 1.35;
    min-height: 1.35em;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wpxf-forum-lastpost-empty {
    margin: 0;
    color: var(--wpxf-text-muted, #787c82);
    font-size: 0.88rem;
}
.wpxf-forum-tile-action {
    margin: 0;
    margin-top: auto;
    padding-top: 0.35rem;
    min-height: 2.85rem;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}
.wpxf-forum-tile-btn.wpxf-button,
a.wpxf-forum-tile-btn.wpxf-button {
    display: inline-block;
    padding: 0.5rem 1.35rem;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    border-radius: 8px;
    background: #fff;
    border: 2px solid var(--wpxf-button-bg, var(--wpxf-primary, #2a6b6b));
    color: var(--wpxf-button-bg, var(--wpxf-primary, #2a6b6b));
}
.wpxf-forum-tile-btn.wpxf-button:hover,
.wpxf-forum-tile-btn.wpxf-button:focus,
a.wpxf-forum-tile-btn.wpxf-button:hover,
a.wpxf-forum-tile-btn.wpxf-button:focus {
    text-decoration: none;
    background: var(--wpxf-button-bg-hover, var(--wpxf-primary-hover, var(--wpxf-button-bg, #2a6b6b)));
    border-color: var(--wpxf-button-bg-hover, var(--wpxf-primary-hover, var(--wpxf-button-bg, #2a6b6b)));
    color: var(--wpxf-button-text-hover, var(--wpxf-button-text, #fff));
}
.wpxf-forum-tile-btn.wpxf-button:focus-visible,
a.wpxf-forum-tile-btn.wpxf-button:focus-visible {
    outline: 2px solid var(--wpxf-button-bg, var(--wpxf-primary, #2a6b6b));
    outline-offset: 2px;
}

/* Shortcode: neueste Beiträge (Feed wie Aktivität) */
.wpxf-recent-posts-header {
    margin-bottom: 0.65rem;
}
.wpxf-recent-posts-header__title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
}
.wpxf-recent-posts-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.wpxf-recent-posts-item {
    margin: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}
.wpxf-recent-posts-feed .wpxf-recent-posts-item:nth-child(even) {
    background: #fffef5;
}
.wpxf-recent-posts-item__body {
    min-width: 0;
}
.wpxf-recent-posts-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.2rem;
}
.wpxf-recent-posts-item__badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    background: #D4EDED;
    color: #2A6B6B;
    line-height: 1.35;
}
.wpxf-recent-posts-item__time {
    margin-left: auto;
    font-size: 0.78rem;
    color: #787c82;
}
.wpxf-recent-posts-item__action {
    margin: 0 0 0.2rem;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #50575e;
}
.wpxf-recent-posts-item__author {
    font-weight: 600;
    color: #1d2327;
    margin-right: 0.25rem;
}
.wpxf-recent-posts-item__action-text {
    color: #646970;
    margin-right: 0.2rem;
}
.wpxf-recent-posts-item__topic {
    font-weight: 600;
    text-decoration: none;
}
.wpxf-recent-posts-item__topic:hover {
    text-decoration: underline;
}
.wpxf-recent-posts-item__preview {
    margin: 0 0 0.25rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #50575e;
}
.wpxf-recent-posts-item__context {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #646970;
}
.wpxf-recent-posts-item__context a {
    font-weight: 500;
}
.wpxf-recent-posts-item__sep {
    margin: 0 0.2rem;
    color: #c3c4c7;
}
.wpxf-recent-posts-item__link {
    margin-left: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.wpxf-recent-posts-item__link:hover {
    text-decoration: underline;
}
/* Legacy-Alias (ältere Markup-Variante) */
.wpxf-recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wpxf-recent-posts-list li {
    margin: 0;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--wpxf-border, #e0e0e0);
}
.wpxf-recent-posts-list li:last-child {
    border-bottom: 0;
}
.wpxf-recent-posts .wpxf-muted,
.wpxf-shortcode .wpxf-muted {
    color: var(--wpxf-text-muted, #646970);
    font-size: 0.92em;
}

/* Foren-Übersicht: Liste */
.wpxf-forum-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.25rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 0.5rem 0;
    background: #fff;
}
.wpxf-forum-row--ghost {
    background: var(--wpxf-active-bg, #e3f2fd);
    border-color: var(--wpxf-active-border, #90caf9);
}
.wpxf-forum-main {
    display: flex;
    gap: 0.75rem;
    flex: 1 1 200px;
    min-width: 0;
}
.wpxf-forum-main-text {
    flex: 1;
    min-width: 0;
}
.wpxf-forum-main-text h3 {
    margin: 0 0 0.25rem;
}
.wpxf-forum-row-lastpost {
    flex: 1 1 220px;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--wpxf-notice-warning-bg, #fff9e6);
    border: 1px solid var(--wpxf-notice-warning-border, #f0e6c8);
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
    min-height: 9.5rem;
    height: 9.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.wpxf-forum-row-lastpost--ghost {
    background: var(--wpxf-notice-warning-bg, #fff9e6);
    border-color: var(--wpxf-notice-warning-border, #f0e6c8);
}
.wpxf-forum-meta {
    flex: 0 0 auto;
    align-self: center;
    font-size: 0.9rem;
    color: #50575e;
    white-space: nowrap;
}
.wpxf-forum-thumb {
    float: none;
    flex-shrink: 0;
    margin-right: 0;
    border-radius: 4px;
    object-fit: cover;
}

.wpxf-forum-avatar {
    border-radius: 4px;
    object-fit: cover;
}
.wpxf-role-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}
.wpxf-role-icon-img img {
    display: block;
    border-radius: 4px;
}
.wpxf-badge-team {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    background: #2A6B6B;
    color: #fff;
    border-radius: 3px;
}

.wpxf-topic-list li.wpxf-ghost-topic {
    background: linear-gradient(90deg, #90caf9 0%, #fff 100%);
}

.wpxf-topic-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}
.wpxf-topic-table thead th {
    text-align: left;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    background: #e8e8e8;
    color: #444;
    border-bottom: 1px solid #ccc;
}
.wpxf-topic-table thead .wpxf-col-replies {
    text-align: center;
}
.wpxf-topic-table thead .wpxf-col-ampel {
    text-align: center;
}
.wpxf-topic-table tbody td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}
.wpxf-topic-table tbody tr:nth-child(even):not(.wpxf-ghost-topic) {
    background: #fffef5;
}
.wpxf-topic-table tbody tr:nth-child(odd):not(.wpxf-ghost-topic) {
    background: #fff;
}
.wpxf-topic-table tbody tr.wpxf-ghost-topic td {
    background: #e3f2fd !important;
}
.wpxf-topic-table-wrap {
    overflow-x: auto;
}
.wpxf-col-icons {
    width: 52px;
    padding-left: 0.5rem;
    padding-right: 0.35rem;
}
.wpxf-topic-icons-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    justify-content: flex-start;
}
.wpxf-topic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #646970;
    text-decoration: none;
    line-height: 1;
}
.wpxf-topic-icon--new-since-login {
    color: #2A6B6B;
}
.wpxf-topic-icon--feed {
    color: #d63638;
}
.wpxf-topic-icon--pin {
    color: #646970;
}
.wpxf-topic-icon--lock {
    color: #50575e;
}
.wpxf-topic-icon--ghost {
    color: #50575e;
}
.wpxf-topic-icon--report {
    color: #d63638;
}
.wpxf-topic-icon--ghost .wpxf-ico-ghost svg {
    display: block;
    width: 18px;
    height: 18px;
}
.wpxf-notice-closed {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}
.wpxf-topic-close-action {
    margin-bottom: 1rem;
}
.wpxf-topic-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.wpxf-col-ampel {
    width: 3.25rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.wpxf-ampel {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #1d2327;
    box-sizing: border-box;
    vertical-align: middle;
}
.wpxf-ampel--green {
    background: #00a32a;
}
.wpxf-ampel--yellow {
    background: #dba617;
}
.wpxf-ampel--red {
    background: #d63638;
}
.wpxf-topic-title-block {
    margin-bottom: 0.35rem;
}
.wpxf-topic-title-link {
    color: #2A6B6B;
    text-decoration: none;
}
.wpxf-topic-title-link:hover {
    text-decoration: underline;
    color: #135e96;
}
.wpxf-topic-started {
    display: block;
    font-size: 0.88rem;
    color: #50575e;
    margin-top: 0.15rem;
}
.wpxf-topic-started-text em {
    font-style: italic;
    margin-right: 0.25rem;
}
.wpxf-col-forum-name {
    min-width: 7.5rem;
    max-width: 14rem;
    vertical-align: middle;
}
.wpxf-topic-forum-link {
    color: #2A6B6B;
    text-decoration: none;
}
.wpxf-topic-forum-link:hover {
    text-decoration: underline;
    color: #135e96;
}
.wpxf-col-replies {
    text-align: center;
    white-space: nowrap;
    width: 6rem;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}
.wpxf-lastpost-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
}
.wpxf-lastpost-text {
    flex: 1;
    min-width: 0;
}
.wpxf-lastpost-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 0.15rem;
}
.wpxf-lastpost-date {
    font-size: 0.88rem;
    color: #50575e;
}
.wpxf-lastpost-visual {
    flex-shrink: 0;
}
.wpxf-lastpost-visual-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #c3c4c7;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}
.wpxf-lastpost-visual-ring .wpxf-role-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpxf-lastpost-visual-ring .wpxf-role-icon img {
    max-width: 44px;
    max-height: 44px;
    border-radius: 4px;
}
.wpxf-lastpost-visual-ring .wpxf-role-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}
.wpxf-lastpost-forum-thumb {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}
.wpxf-lastpost-team {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    color: #50575e;
}
.wpxf-topic-list-sub {
    display: inline-block;
    margin-right: 0.25rem;
    color: #dba617;
    vertical-align: middle;
}
.wpxf-topic-sticky-badge {
    display: inline-block;
    margin-right: 0.25rem;
    color: #646970;
    vertical-align: middle;
}

.wpxf-wait-green {
    color: #1b5e20;
    font-weight: 600;
}
.wpxf-wait-yellow {
    color: #f57f17;
    font-weight: 600;
}
.wpxf-wait-red {
    color: #b71c1c;
    font-weight: 600;
}

/* Team-Posts (hellgrün) */
.wpxf-post.wpxf-team-post {
    background-color: #ccffcc !important;
    border-radius: 4px;
}

/* Öffentlich ausgeblendet (nicht wenn der Autor den eigenen Beitrag liest): Karte hellblau; Kopf bleibt Standard */
.wpxf-post.wpxf-post-public-hidden {
    background-color: #e8f4fc !important;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
}
.wpxf-post.wpxf-team-post.wpxf-post-public-hidden {
    background-color: #e8f4fc !important;
    border-color: #c5d9ed;
}

/* Bearbeitungsprotokoll-Modal */
.wpxf-log-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.wpxf-log-modal {
    background: #fff;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.wpxf-log-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
}
.wpxf-log-modal-header h3 {
    margin: 0;
}
.wpxf-log-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0 4px;
}
.wpxf-log-modal-close:hover {
    color: #000;
}
.wpxf-log-modal-body {
    padding: 20px;
}
.wpxf-edit-log-link-wrap {
    margin-left: 0.5rem;
    font-size: 0.9em;
}
.wpxf-edit-log-link-wrap a {
    color: #666;
    text-decoration: none;
}
.wpxf-edit-log-link-wrap a:hover {
    text-decoration: underline;
}
.wpxf-edit-log-entry {
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fafafa;
}
.wpxf-edit-log-entry:last-child {
    margin-bottom: 0;
}
.wpxf-edit-log-meta {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}
.wpxf-edit-log-diff {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wpxf-diff-block {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.wpxf-diff-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 0 6px 0;
    color: #444;
}
.wpxf-diff-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    padding: 8px 0;
    border: none;
    background: transparent;
    max-height: 220px;
    overflow: auto;
    font-size: 0.85em;
    line-height: 1.5;
    color: #222;
}
.wpxf-diff-changed {
    color: #c00;
    font-weight: 600;
}
.wpxf-diff-attempted {
    border-color: #dba617;
    background: #fffbf0;
}
.wpxf-diff-attempted .wpxf-diff-label {
    color: #826200;
}

/* ——— Mobil / schmale Viewports ——— */
@media (max-width: 782px) {
    .wpxf-breadcrumbs {
        font-size: 0.85rem;
        word-break: break-word;
    }

    .wpxf-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem;
    }
    .wpxf-toolbar > a,
    .wpxf-toolbar > form {
        width: 100%;
    }
    .wpxf-toolbar .wpxf-search {
        flex-direction: column;
        align-items: stretch;
        flex: none;
        width: 100%;
    }
    .wpxf-toolbar .wpxf-search input[type="search"] {
        width: 100%;
        min-height: 44px;
    }
    .wpxf-toolbar .wpxf-search button {
        width: 100%;
        min-height: 44px;
    }
    .wpxf-toolbar > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.4rem 0.65rem;
        background: #fff;
        border: 1px solid #c3c4c7;
        border-radius: 4px;
        color: #2A6B6B;
        box-sizing: border-box;
    }

    .wpxf-category {
        margin-bottom: 1.5rem;
    }
    .wpxf-category-title {
        font-size: clamp(1.05rem, 4vw, 1.25rem);
        word-break: break-word;
    }

    .wpxf-topic-title-main {
        word-break: break-word;
    }

    .wpxf-category--tiles {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .wpxf-forum-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem;
    }
    .wpxf-forum-main {
        flex-direction: row;
        align-items: flex-start;
        flex: none;
        width: 100%;
    }
    .wpxf-forum-meta {
        white-space: normal;
        align-self: flex-start;
        text-align: left;
        width: 100%;
    }
    .wpxf-forum-row-lastpost {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .wpxf-forum-header {
        flex-direction: column;
        align-items: stretch;
    }
    .wpxf-forum-header h1 {
        flex: none;
        width: 100%;
        order: 0;
    }
    .wpxf-forum-header-img {
        order: -1;
        align-self: flex-start;
    }
    .wpxf-forum-header .wpxf-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
    }
    .wpxf-overview-head {
        justify-content: stretch;
    }
    .wpxf-forum-header__aside {
        margin-left: 0;
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }
    .wpxf-topic-header--with-find {
        flex-direction: column;
        align-items: stretch;
    }
    .wpxf-topic-header__aside {
        margin-left: 0;
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }
    .wpxf-topic-find-bar__nav {
        width: 100%;
    }
    .wpxf-topic-find-bar__nav .wpxf-button {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 44px;
        text-align: center;
    }
    .wpxf-topic-find-bar__nav .wpxf-topic-find-jump {
        flex: 1 1 100%;
    }
    .wpxf-search-inline .wpxf-button {
        width: 100%;
        justify-content: center;
    }
    .wpxf-unread-header .wpxf-button,
    .wpxf-activity-header .wpxf-button,
    .wpxf-archive-header .wpxf-button {
        margin-left: 0;
    }
    .wpxf-archive-header .wpxf-forum-header__aside {
        flex: 1 1 100%;
        width: 100%;
        align-items: stretch;
    }
    .wpxf-archive-header .wpxf-forum-header__aside > .wpxf-topic-back-forum {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
    }
    .wpxf-archive-item__actions {
        margin-left: 0;
        width: 100%;
    }
    .wpxf-archive-item__check {
        align-self: flex-start;
        margin-top: 0.35rem;
    }
    .wpxf-archive-toolbar {
        align-items: stretch;
    }
    .wpxf-archive-toolbar .wpxf-button {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    .wpxf-archive-item__actions .wpxf-button {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 44px;
        text-align: center;
    }
    .wpxf-recent-posts-item__time {
        margin-left: 0;
        width: 100%;
    }
    .wpxf-recent-posts-item__link {
        display: inline-block;
        margin: 0.15rem 0 0;
    }
    .wpxf-activity-filters__field {
        flex: 1 1 100%;
    }
    .wpxf-activity-filters__actions {
        width: 100%;
    }
    .wpxf-activity-filters__actions .wpxf-button {
        width: 100%;
        justify-content: center;
    }
    .wpxf-activity-item__time {
        margin-left: 0;
        width: 100%;
    }
    .wpxf-activity-item__link {
        display: inline-block;
        margin: 0.15rem 0 0;
    }

    .wpxf-topic-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .wpxf-topic-table thead {
        display: none;
    }
    .wpxf-topic-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    .wpxf-topic-table tbody tr.wpxf-ghost-topic {
        border-color: #90caf9;
    }
    .wpxf-topic-table tbody td {
        display: block;
        width: 100% !important;
        border-bottom: 1px solid #eee;
        vertical-align: top;
    }
    .wpxf-topic-table tbody td:last-child {
        border-bottom: none;
    }
    .wpxf-col-icons {
        width: auto !important;
        padding: 0.5rem 0.75rem 0.25rem !important;
        border-bottom: none !important;
        background: #fafafa;
    }
    .wpxf-col-ampel {
        width: auto !important;
        text-align: left !important;
        padding: 0.45rem 0.75rem !important;
        background: #fafafa;
        font-size: 0.9rem;
    }
    .wpxf-col-topic {
        padding: 0.5rem 0.75rem !important;
    }
    .wpxf-col-forum-name {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: 0.45rem 0.75rem !important;
        background: #f9fafb;
        font-size: 0.9rem;
    }
    .wpxf-col-replies {
        width: auto !important;
        text-align: left !important;
        padding: 0.45rem 0.75rem !important;
        background: #f3f4f5;
        font-size: 0.9rem;
    }
    .wpxf-col-last {
        padding: 0.65rem 0.75rem !important;
    }

    .wpxf-td-mobile-caption {
        display: inline;
        font-weight: 600;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #646970;
        margin-right: 0.35rem;
    }
    .wpxf-col-last > .wpxf-td-mobile-caption {
        display: block;
        margin-bottom: 0.4rem;
        margin-right: 0;
    }

    .wpxf-lastpost-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-height: 0;
    }
    .wpxf-lastpost-visual {
        align-self: flex-end;
    }

    .wpxf-pagination a.wpxf-pagination__num,
    .wpxf-pagination a.wpxf-pagination__nav {
        min-width: 2.5rem;
        min-height: 2.5rem;
    }
    .wpxf-pagination span.wpxf-pagination__nav {
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .wpxf-post {
        margin-left: 0;
        margin-right: 0;
        padding: 0.85rem;
    }
    .wpxf-post-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin: -0.85rem -0.85rem 0.65rem;
        padding: 0.65rem 0.85rem;
    }
    .wpxf-post-head-right {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
    .wpxf-post-head-kind {
        white-space: normal;
    }
    .wpxf-post-body {
        min-height: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .wpxf-post-actions {
        margin-top: 0.5rem;
        gap: 0.35rem;
    }
    .wpxf-post-menu {
        padding: 0.3rem 0.5rem;
    }
    .wpxf-post-menu__list {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.15rem 0.65rem;
    }
    .wpxf-post-menu__list > li {
        width: auto;
    }
    .wpxf-post-menu__item {
        width: auto;
        justify-content: flex-start;
        min-height: 36px;
        padding: 0.15rem 0.3rem !important;
        font-size: 0.9rem;
        gap: 0.2rem;
    }
    .wpxf-post-menu__item .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .wpxf-topic-admin-bar__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }
    .wpxf-topic-admin-bar__btn {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 0.45rem 0.5rem !important;
    }

    .wpxf-topic-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .wpxf-topic-actions .button,
    .wpxf-topic-actions .wpxf-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        min-height: 44px;
    }

    .wpxf-button,
    .wpxf-reply-form button,
    .wpxf-toolbar button {
        min-height: 44px;
        padding: 0.5rem 0.85rem;
    }
    .wpxf-reply-form .wpxf-form-action-btn {
        width: 100%;
        min-width: 0;
    }

    .wpxf-link-popover__inner {
        max-width: calc(100vw - 2rem);
    }

    .wpxf-log-modal {
        max-height: min(85vh, calc(100dvh - 24px));
    }

    .wpxf-editor-toolbar {
        width: 100%;
    }
    .wpxf-editor-btn {
        flex: 1 1 auto;
        min-height: 44px;
    }

    .wpxf-emoji-picker {
        max-height: 40vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wpxf-forum-tile-lastpost {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
    }
}

@media (max-width: 782px) and (orientation: landscape) {
    .wpxf-modal-content {
        max-height: min(90vh, calc(100dvh - 16px));
    }
}

/* [wpxf_aktive_themen_landing] — Creme-Karten auf dunklem Teal (wie Terminliste) */
.wpxf-aktive-themen-landing {
    --wpxf-atl-teal: #2a6b6b;
    --wpxf-atl-teal-dark: #1a4f4f;
    --wpxf-atl-text: #4a6a6a;
    --wpxf-atl-cream: #f9efe6;
    --wpxf-atl-row: #d4eded;
    --wpxf-atl-footer: #143d3d;
    --wpxf-atl-white: #ffffff;
    max-width: 40rem;
    width: 100%;
    margin: 0 1.25rem;
    padding: 0 1rem;
    box-sizing: border-box;
    background: transparent !important;
    color: var(--wpxf-atl-cream);
    -webkit-font-smoothing: antialiased;
}

.wpxf-aktive-themen-landing__heading {
    margin: 0 0 0.85rem !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--wpxf-atl-cream) !important;
    background: transparent !important;
}

.wpxf-aktive-themen-landing__empty {
    margin: 0.5rem 0;
    color: var(--wpxf-atl-cream) !important;
    opacity: 0.9;
}

.wpxf-aktive-themen-landing__list {
    display: block;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.wpxf-aktive-themen-landing__card {
    display: block !important;
    width: 100%;
    margin: 0 0 8px !important;
    padding: 0.5rem 0.7rem !important;
    border: 1px solid var(--wpxf-atl-row) !important;
    border-radius: 8px !important;
    background: var(--wpxf-atl-cream) !important;
    box-shadow: none !important;
    box-sizing: border-box;
    text-decoration: none !important;
    color: var(--wpxf-atl-teal) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wpxf-aktive-themen-landing__card:last-child {
    margin-bottom: 0 !important;
}

.wpxf-aktive-themen-landing__card:hover,
.wpxf-aktive-themen-landing__card:focus {
    background: var(--wpxf-atl-white) !important;
    border-color: var(--wpxf-atl-teal) !important;
    color: var(--wpxf-atl-teal-dark) !important;
    outline: none;
}

.wpxf-aktive-themen-landing__badge {
    display: inline-block !important;
    margin: 0 0 0.2rem !important;
    padding: 0.1rem 0.45rem !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: var(--wpxf-atl-cream) !important;
    background: var(--wpxf-atl-teal) !important;
}

.wpxf-aktive-themen-landing__row {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35;
}

.wpxf-aktive-themen-landing__when {
    display: inline !important;
    margin: 0 0.45rem 0 0 !important;
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    line-height: inherit;
    color: var(--wpxf-atl-text) !important;
    white-space: nowrap;
}

.wpxf-aktive-themen-landing__title {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    color: var(--wpxf-atl-teal) !important;
}

.wpxf-aktive-themen-landing__card:hover .wpxf-aktive-themen-landing__title,
.wpxf-aktive-themen-landing__card:focus .wpxf-aktive-themen-landing__title {
    color: var(--wpxf-atl-teal-dark) !important;
}

@media (max-width: 600px) {
    .wpxf-aktive-themen-landing {
        max-width: 100%;
    }
}
