.containerforum {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 40px;
}

* {
    color: var(--text2);
}

/* Banner Container */
.forum-banner {
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
    border: 1px solid var(--accent3);
    box-shadow: 0 0 20px var(--glow);
    position: relative;
    overflow: hidden;
}

/* Oberer Bereich mit Hintergrundbild - NEUES DIV */
.banner-image-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url(../../../);
    background-size: cover;
    background-position: center;
    height: 100px;
    border-bottom: 1px solid var(--accent3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scanline-Effekt für Bildbereich */
.banner-image-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(74, 122, 74, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(74, 122, 74, 0.03) 3px
    );
    pointer-events: none;
}

/* Text im Bildbereich */
.banner-header {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner-header h1 {
    font-size: 2.2rem;
    color: var(--accent2);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px var(--glow), 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 8px;
}

.banner-header p {
    color: var(--text2);
    font-size: 0.85rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Unterer Bereich für Unterforen */
.banner-subforums {
    position: relative;
    padding: 20px 10px 10px 10px;
    border-top: 1px solid var(--accent3);
}

.banner-subforums::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg1);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.forum-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    border: 1px solid rgba(74, 122, 74, 0.3);
    padding: 10px;
    padding-bottom: 50px;
}

/* Forum Card - VERKLEINERTE GRÖSSEN */
.forum-card {
    background: var(--bg2);
    border: 1px solid var(--accent3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 350px;
}

.forum-card:hover {
    border-color: var(--accent1);
    box-shadow: 0 0 20px var(--glow);
}

/* Card Header - VERKLEINERTE HÖHE */
.forum-card-header {
    background: var(--bg3);
    border-bottom: 1px solid var(--accent3);
    padding: 10px 15px;
    position: relative;
    height: 45px;
    display: flex;
    align-items: center;
}

.forum-card-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent1);
}

.forum-card-title {
    font-size: 0.95rem;
    color: var(--text1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    font-weight: normal;
}

.forum-card-title a {
    color: var(--text1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forum-card-title a:hover {
    color: var(--accent2);
}

/* Forum Description - VERKLEINERTE HÖHE */
.forum-description {
    color: var(--text3);
    font-size: 0.75rem;
    line-height: 1.5;
    padding: 10px 15px;
    background: var(--bg2);
    height: 72px;
    overflow-y: auto;
}

/* Scrollbar Styling für Description */
.forum-description::-webkit-scrollbar {
    width: 4px;
}

.forum-description::-webkit-scrollbar-track {
    background: var(--bg3);
}

.forum-description::-webkit-scrollbar-thumb {
    background: var(--accent3);
    border-radius: 2px;
}

.forum-description::-webkit-scrollbar-thumb:hover {
    background: var(--accent1);
}

/* Subforen Liste - VERKLEINERTE HÖHE */
.subforen-list {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    height: 36px;
    overflow-y: hidden;
    align-content: flex-start;
}

/* Entfernt Border bei leerer Liste */
.subforen-list:empty {
    border-bottom: none;
    padding: 0;
    height: 0;
}

.subforen-list a {
    background: var(--bg3);
    border: 1px solid var(--accent3);
    padding: 4px 10px;
    font-size: 0.7rem;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    height: fit-content;
}

.subforen-list a:hover {
    color: var(--accent2);
    border-color: var(--accent1);
}

/* Scrollbar für Subforen */
.subforen-list::-webkit-scrollbar {
    width: 4px;
}

.subforen-list::-webkit-scrollbar-track {
    background: var(--bg3);
}

.subforen-list::-webkit-scrollbar-thumb {
    background: var(--accent3);
    border-radius: 2px;
}

/* Forum Image - VERKLEINERTE HÖHE */
.forum-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--accent3);
    border-bottom: 1px solid var(--accent3);
    filter: grayscale(50%) brightness(0.7);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.forum-card:hover .forum-image {
    filter: grayscale(0%) brightness(1);
}

/* Last Post Section - VERKLEINERTE HÖHE */
.last-post-section {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg3);
    height: 75px;
}

/* Avatar vom Plugin als eckiges Cover-Bild - VERKLEINERT */
.last-post-avatar {
    width: 60px;
    height: 60px;
    border: 1px solid var(--accent3);
    border-radius: 4px;
    filter: grayscale(50%) brightness(0.7);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.last-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 0 !important;
}

/* Entfernt auch eventuelle Wrapper-Divs mit runden Ecken */
.last-post-avatar > div,
.last-post-avatar > a {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0 !important;
}

.last-post-avatar > div img,
.last-post-avatar > a img {
    border-radius: 0 !important;
}

.forum-card:hover .last-post-avatar {
    filter: grayscale(0%) brightness(1);
    border-color: var(--accent1);
}

.forum-card:hover .last-post-avatar img {
    filter: none;
}

.last-post-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.last-post-title {
    color: var(--text1);
    font-size: 0.9rem;
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.last-post-title a {
    text-decoration: none;
}

.last-post-author {
    color: var(--text3);
    font-size: 0.8rem;
}

.last-post-author a {
    text-decoration: none;
}

.last-post-author strong {
    color: var(--accent2);
    font-weight: normal;
}

.last-post-time {
    color: var(--text3);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.last-post-time a {
    text-decoration: none;
}

.last-post-time::before {
    content: '◷';
    color: var(--accent1);
}

/* Stats */
.forum-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
    font-size: 0.75rem;
}

.stat-label {
    color: var(--text3);
}

.stat-value {
    color: var(--text2);
    font-weight: bold;
}

/* Scanline Effect */
.forum-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(74, 122, 74, 0.02) 0px,
        transparent 1px,
        transparent 2px,
        rgba(74, 122, 74, 0.02) 3px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.forum-card:hover::before {
    opacity: 1;
}

/* No Posts State */
.no-posts {
    text-align: center;
    color: var(--text3);
    font-size: 0.8rem;
    padding: 15px;
    font-style: italic;
}

/* Verstecke Icons in Subforen */
.subforen-list .subforumicon {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .containerforum {
        overflow-x: auto;
    }
    
    .forum-grid {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .containerforum {
        overflow-x: auto;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .forum-grid {
        min-width: 900px;
    }
    
    .banner-header h1 {
        font-size: 1.5rem;
    }
}

.containerforum ~ .threads-container {
    display: none;
}

/* ========== THREAD LIST STYLING ========== */

.thread-item {
    background: var(--bg2);
    border: 1px solid var(--accent3);
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 50px 1fr 200px;
    align-items: center;
    gap: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.thread-item:hover {
    border-color: var(--accent1);
    box-shadow: 0 0 15px var(--glow);
}

/* Scanline Effect */
.thread-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(74, 122, 74, 0.02) 0px,
        transparent 1px,
        transparent 2px,
        rgba(74, 122, 74, 0.02) 3px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thread-item:hover::before {
    opacity: 1;
}

/* Status Icons Container - VERTIKAL */
.thread-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
}

/* Behält die Phosphor Icons CSS bei */
.thread-status .thread_status {
    margin: 0 !important;
}

/* Thread Hauptbereich */
.thread-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.thread-title-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thread-title {
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
    color: var(--text1);
    word-wrap: break-word;
    line-height: 1.4;
}

.thread-title a {
    color: var(--text1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.thread-title a:hover {
    color: var(--accent2);
}

/* Thread Meta Informationen */
.thread-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Checkbox ganz rechts */
.thread-meta .thread-checkbox {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

/* Simple Checkbox Styling */
.thread-checkbox input[type="checkbox"] {
    width: 13px !important;
    height: 13px !important;
    cursor: pointer !important;
    accent-color: var(--accent1) !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
}

/* Hover Effekt */
.thread-checkbox input[type="checkbox"]:hover {
    filter: brightness(1.2) !important;
}

.thread-date {
    color: var(--accent1);
}

.thread-date::before {
    content: '◷ ';
}

.meta-separator {
    color: var(--accent3);
}

.thread-creator a {
    color: var(--text3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.thread-creator a:hover {
    color: var(--accent2);
}

.thread-replies {
    color: var(--text2);
}

/* Letzter Poster Bereich */
.thread-lastpost {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    align-items: center;
    padding-left: 15px;
    border-left: 1px solid var(--accent3);
}

.lastpost-avatar {
    width: 50px;
    height: 50px;
    border: 1px solid var(--accent3);
    border-radius: 4px;
    overflow: hidden;
    filter: grayscale(50%) brightness(0.7);
    transition: all 0.3s ease;
}

.lastpost-avatar > div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
}

.lastpost-avatar .no-avatar {
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lastpost-avatar .no-avatar::before {
    content: '?';
    color: var(--accent3);
    font-size: 1.5rem;
}

.thread-item:hover .lastpost-avatar {
    filter: grayscale(0%) brightness(1);
    border-color: var(--accent1);
}

.lastpost-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 10px;
}

.lastpost-user {
    font-size: 0.85rem;
    color: var(--text2);
}

.lastpost-user a {
    color: var(--text2);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lastpost-user a:hover {
    color: var(--accent2);
}

.lastpost-time {
    font-size: 0.75rem;
    color: var(--text3);
}

.lastpost-time a {
    color: var(--text3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lastpost-time a:hover {
    color: var(--accent1);
}

/* Responsive */
@media (max-width: 1024px) {
    .thread-item {
        grid-template-columns: 40px 1fr 180px;
        gap: 10px;
        padding: 12px;
    }
    
    .thread-lastpost {
        grid-template-columns: 40px 1fr;
        gap: 8px;
    }
    
    .lastpost-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .thread-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .thread-lastpost {
        border-left: none;
        border-top: 1px solid var(--accent3);
        padding-left: 0;
        padding-top: 10px;
    }
}

/* ========== FORUM BOTTOM CONTAINER & LEGENDE ========== */

.forum-bottom-container {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
}

.thread-legend-left {
    width: 40%;
    background: var(--bg2);
    border: 1px solid var(--accent3);
    border-radius: 4px;
    padding: 20px;
	margin-left:10px;
}

.thread_legend {
    margin: 0;
    padding: 0;
    list-style: none;
}

.thread_legend-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.thread_legend-row:last-child {
    margin-bottom: 0;
}

.thread_legend dd {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.thread_legend .thread_status {
    font-size: 28px;
    width: auto;
    min-width: 32px;
    flex-shrink: 0;
}

.thread_legend .legend-text {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text2);
    white-space: nowrap;
}

/* ========== FORUM ACTIONS RIGHT ========== */

.forum-actions-right {
    width: auto;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-right: 10px;
}

.forum-actions-right > * {
    width: 100%;
}

/* ========== THEMA ERSTELLEN BUTTON ========== */

.thread-actions {
    display: flex;
    justify-content: stretch;
    padding: 0;
    margin: 0;
    width: 100%;
}

.new-thread-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    text-decoration: none;
    color: var(--text2);
    background: rgba(10, 15, 10, 0.6);
    border: 1px solid rgba(74, 122, 74, 0.3);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.new-thread-button:hover {
    background: rgba(74, 122, 74, 0.2);
    border-color: var(--accent1);
    color: var(--accent2);
    box-shadow: 0 0 20px var(--glow);
}

.new-thread-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(74, 122, 74, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(74, 122, 74, 0.03) 3px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.new-thread-button:hover::before {
    opacity: 1;
}

.new-thread-button i {
    font-size: 1.3rem;
    color: var(--accent1);
    transition: all 0.3s;
}

.new-thread-button:hover i {
    color: var(--accent2);
}

/* ========== INLINE MODERATION ========== */

.inline-mod-wrapper {
    display: flex;
    justify-content: stretch;
    margin: 0;
    width: 100%;
}

.inline-mod-wrapper form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--bg2);
    border: 1px solid var(--accent3);
    padding: 15px;
    width: 100%;
    transition: all 0.3s ease;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.inline-mod-wrapper form:hover {
    border-color: var(--accent1);
    box-shadow: 0 0 10px var(--glow);
}

.inline-mod-wrapper select {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--accent3);
    color: var(--text2);
    padding: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.inline-mod-wrapper select:hover {
    border-color: var(--accent1);
}

.inline-mod-wrapper .button {
    width: 100%;
    padding: 10px;
    background: var(--bg3);
    border: 1px solid var(--accent3);
    color: var(--text2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.inline-mod-wrapper .button:hover {
    border-color: var(--accent1);
    color: var(--accent2);
    background: rgba(74, 122, 74, 0.1);
}

/* ========== SEARCH FORUM ========== */

.search-forum-wrapper {
    display: flex;
    justify-content: stretch;
    margin: 0;
    width: 100%;
}

.search-forum-wrapper form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--bg2);
    border: 1px solid var(--accent3);
    padding: 15px;
    width: 100%;
    transition: all 0.3s ease;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.search-forum-wrapper form:hover {
    border-color: var(--accent1);
    box-shadow: 0 0 10px var(--glow);
}

.search-forum-wrapper .smalltext {
    color: var(--text2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.search-forum-wrapper input[type="text"] {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--accent3);
    color: var(--text2);
    padding: 10px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.search-forum-wrapper input[type="text"]:focus {
    border-color: var(--accent1);
    outline: none;
}

.search-forum-wrapper input[type="submit"],
.search-forum-wrapper .button {
    width: 100%;
    padding: 10px;
    background: var(--bg3);
    border: 1px solid var(--accent3);
    color: var(--text2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.search-forum-wrapper input[type="submit"]:hover,
.search-forum-wrapper .button:hover {
    border-color: var(--accent1);
    color: var(--accent2);
    background: rgba(74, 122, 74, 0.1);
}

/* ========== FORUM JUMP ========== */

.forum-actions-right .forum_jump_wrapper,
.forum-actions-right #forumjump {
    width: 100%;
}

.forum-actions-right .forum_jump_wrapper form,
.forum-actions-right #forumjump form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg2);
    border: 1px solid var(--accent3);
    padding: 15px;
    width: 100%;
    transition: all 0.3s ease;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.forum-actions-right .forum_jump_wrapper form:hover,
.forum-actions-right #forumjump form:hover {
    border-color: var(--accent1);
    box-shadow: 0 0 10px var(--glow);
}

.forum-actions-right select[name="fid"] {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--accent3);
    color: var(--text2);
    padding: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.forum-actions-right select[name="fid"]:hover {
    border-color: var(--accent1);
}

.forum-actions-right input[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--bg3);
    border: 1px solid var(--accent3);
    color: var(--text2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.forum-actions-right input[type="submit"]:hover {
    border-color: var(--accent1);
    color: var(--accent2);
    background: rgba(74, 122, 74, 0.1);
}

.forum-actions-right .smalltext {
    color: var(--text2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1200px) {
    .forum-actions-right {