@media screen and (max-width: 850px) {

    /* =========================================================
       GRUNDLAYOUT - Dumdedadelei!
       ========================================================= */

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    #container,
    .wrapper,
    #content,
    .tborder {
        width: 99% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }


    /* =========================================================
       MOBILE KATEGORIEN
       ========================================================= */

    .mobile-cat-body > tr:first-child {
        display: none !important;
    }

    .tborder tr:has(> td.tcat),
    .tborder tr:has(> th.tcat) {
        display: none !important;
    }

    .tborder tbody tr:last-child > td:last-child,
    .tborder tbody tr:last-child > td:first-child {
        border-radius: 0 !important;
    }
/* =========================================================
   FORUM-INDEX – MOBILE
   ========================================================= */

/* Zeilen bleiben echte Tabellenzeilen */
.forum-index-row {
    display: table-row !important;
    border-right: none !important;
}

/* =========================================================
   ICON
   ========================================================= */

.forum-index-row > td:first-child {
    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;

    padding: 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* =========================================================
   FORUMNAME + BESCHREIBUNG
   ========================================================= */

.forum-index-row > td:nth-child(2) {
    width: auto !important;
    min-width: 0 !important;

    padding: 10px !important;
    box-sizing: border-box !important;

    text-align: left !important;
    vertical-align: top !important;
}

/* Themen / Beiträge ausblenden */
.forum-index-row > td:nth-child(3),
.forum-index-row > td:nth-child(4) {
    display: none !important;
}

/* =========================================================
   LETZTER BEITRAG
   ========================================================= */

.forum-index-row > td:last-child {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;

    padding: 10px 4px !important;
    box-sizing: border-box !important;

    text-align: center !important;
    vertical-align: top !important;

    white-space: normal !important;
    overflow: hidden !important;

    /* KEIN Zerhacken einzelner Wörter */
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* =========================================================
   LETZTER BEITRAG – DATUM/UHRZEIT AUSBLENDEN
   ========================================================= */

.forum-index-row > td:last-child .smalltext {
    font-size: 0 !important;
    line-height: 1.2 !important;
}

/* Beitragstitel */
.forum-index-row > td:last-child .smalltext a {
    display: block !important;

    max-width: 100% !important;

    font-size: 12px !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Autor */
.forum-index-row > td:last-child .smalltext .lastpost-author {
    display: inline !important;

    font-size: 12px !important;
    line-height: 1.2 !important;
}

/* =========================================================
   OPTIK
   ========================================================= */

.forum-index-row > td {
    box-shadow: none !important;
}
    /* =========================================================
       ONLINE-HALLE
       ========================================================= */

    .hall-online {
        display: grid !important;
        grid-template-columns: 3fr 2fr !important;
        gap: 15px !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hall-online-left,
    .hall-online-right {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .hall-online-right {
        padding-left: 15px !important;
        border-left: 1px solid #36302b !important;
        border-top: none !important;
        text-align: center !important;
    }


    /* =========================================================
       CUSTOM STATS
       ========================================================= */

    .custom-stats-wrapper,
    .custom-stats-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .forum-stat {
        display: block !important;
    }

    .forum-stat i {
        display: none !important;
    }

    .forum-stat strong {
        color: #d6a45c;
        font-size: 20px;
        font-weight: normal;
        display: block;
    }


    /* =========================================================
       CHARACTERHALL HEADER
       ========================================================= */

    .characterhall-logo {
        font-size: 25px !important;
        letter-spacing: 10px !important;
    }

    .characterhall-subtitle {
        font-size: 12px !important;
        letter-spacing: 5px !important;
    }


    /* =========================================================
       POSTBIT / AVATARE
       ========================================================= */

    .rgp_post_left_side > .rgp_profile_divider,
    .rgp_post_left_side > hr {
        display: none !important;
    }

    .rgp_post_flex_box {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .rgp_post_left_side {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 2fr !important;
        column-gap: 15px !important;
        align-items: start !important;
        box-sizing: border-box !important;
    }

    /* Linker Bereich */
    .rgp_post_left_side > .author_avatar {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .rgp_post_left_side > .author-information {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .rgp_post_left_side > .smalltext {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    /* Rechter Bereich */
    .rgp_post_left_side > [id^="character-data-"] {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding-left: 10px !important;
        min-width: 0 !important;
    }

    .rgp_post_left_side > [id^="standard-user-data-"] {
        grid-column: 2 !important;
        grid-row: 2 !important;
        padding-left: 10px !important;
        min-width: 0 !important;
    }

    /* Trennlinien */
    .rgp_post_left_side > .rgp_profile_divider,
    .rgp_post_left_side > hr {
        grid-column: 1 !important;
    }

    /* Eigentliches Posting */
    .rgp_post_right_side {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Avatargröße */
    .rgp_post_left_side > img:first-of-type,
    .rgp_post_left_side .author_avatar img,
    div.post_author > img:first-of-type {
        width: 90px !important;
        height: 90px !important;
        object-fit: cover !important;
        border: 1px solid #4a3b2f !important;
        border-radius: 50% !important;
    }

    .author_avatar {
        width: 90px !important;
        height: 90px !important;
        min-height: 90px !important;
        background-size: 90px 90px !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        position: relative;
        margin: 0 auto 10px auto !important;
        border-radius: 50% !important;
    }


    /* =========================================================
       MOBILE MODERATION
       ========================================================= */

    /* Moderations-Auswahl unter der Themenliste */
    #inlinemoderation_options {
        display: none !important;
    }

    /* Moderations-Kästchen einzelner Themen */
    input[id^="inlinemod_"] {
        display: none !important;
    }

    /* Umfrage-Button */
    .poll-button,
    .poll-button:link,
    .poll-button:visited {
        display: none !important;
    }


    /* =========================================================
       THREADLISTE
       ========================================================= */

    .tborder > tbody > tr:nth-child(2):has(td.tcat) {
        display: none !important;
    }

    .forumdisplay_regular .rgp_thread_icon_cell,
    .forumdisplay_regular td[width="2%"] {
        width: 40px !important;
        min-width: 40px !important;
        padding: 5px !important;
    }

    .thread_status.dot_closefolder {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }

    .thread_status.dot_closefolder::before,
    .thread_status.dot_closefolder::after {
        width: 100% !important;
        height: 100% !important;
        background-size: 100% 100% !important;
        background-repeat: no-repeat !important;
    }

    .thread_status.dot_folder {
        width: 40px !important;
        height: 40px !important;
        background-size: 40px 40px !important;
        flex-shrink: 0 !important;
    }

    .rgp_thread_flex_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .rgp_thread_text_container {
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 13px !important;
        overflow-wrap: break-word !important;
    }

    .forumdisplay_sticky .thread_title_cell .author.smalltext {
        font-size: 10px !important;
    }
/* Antworten + Ansichten auf Mobile ausblenden */
.forumdisplay_regular tr > td:nth-last-child(2),
.forumdisplay_regular tr > td:last-child {
    display: none !important;
}

/* Antworten / Aufrufe auf Mobile ausblenden */
 tr.inline_row > td:not(.thread_title_cell) {
    display: none !important;
}

/* Threadtitel bekommt die komplette verfügbare Breite */
.forumdisplay_regular tr.inline_row > td.thread_title_cell {
    width: 100% !important;
    max-width: 100% !important;
}
    /* =========================================================
       FORUM-AKTIONEN
       ========================================================= */

    .thead > .float_right {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .thead > .float_right > :nth-child(1),
    .thead > .float_right > :nth-child(2),
    .thead > .float_right > :nth-child(3) {
        display: none !important;
    }

    .thead > .float_right > :last-child {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .thead > .float_right > span[style*="color"] {
        display: none !important;
    }

    .thead > .float_right > * {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .thead > .float_right a {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }


    /* =========================================================
       THEMEN-SORTIERUNG / FILTER
       ========================================================= */

    /*
       Nur das Sortier-/Filterformular der Themenliste
       ausblenden.
       Der tfoot selbst bleibt erhalten.
    */

    td.tfoot > form[action="forumdisplay.php"] {
        display: none !important;
    }


    /* =========================================================
       STECKBRIEF
       ========================================================= */

    .sb-avatar {
        width: 120px !important;
        height: 180px !important;
        background-repeat: no-repeat !important;
        position: relative;
        margin: 10px !important;
    }

    .sb-box {
        color: #e3d5ca;
        box-sizing: border-box;
        padding: 10px;
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .rgp_actual_text_block {
        padding: 10px !important;
    }

    .sb-feld {
        font-size: 13px;
        padding: 9px 6px;
        margin-bottom: 5px;
    }

    .sb-text-block {
        font-size: 13px;
        padding: 10px;
        margin-bottom: 10px;
        line-height: normal !important;
    }


    /* =========================================================
       TEAMSEITE
       ========================================================= */

    .rgp-team-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: stretch !important;
    }

    .rgp-team-card {
        width: 110px !important;
        min-height: 110px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .rgp-team-avatar img,
    .rgp-team-avatar {
        width: 90px;
        height: 90px;
        border-radius: 50%;
    }
/* =========================================================
   NEWRЕPLY / SCEDITOR – MOBILE
   ========================================================= */

/* Formular */
.newreply-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Normale Formularzeilen untereinander */
.newreply-form tr:not(.newreply-message-row) > td.trow2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Nachricht */
.newreply-form tr.newreply-message-row,
.newreply-form tr.newreply-message-row > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
 padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Editor + Smileys untereinander */
.newreply-form .editor-layout-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Editor */
.newreply-form .editor-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* SCEditor */
.newreply-form .sceditor-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Editor-Inhalt */
.newreply-form .sceditor-container iframe,
.newreply-form .sceditor-container textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Smileys darunter */
.newreply-form .smilies-sidebar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
}
.newreply-form > tbody > tr {
    display: block !important;
    width: 100% !important;
}

.newreply-form > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
form[action*="editpost.php"] > table > tbody > tr {
    display: block !important;
    width: 100% !important;
}

form[action*="editpost.php"] > table > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.editor-layout-row {
    display: block !important;
    width: 100% !important;
}

.editor-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.sceditor-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
.newreply-form tr:not(.newreply-message-row) > td,
#editpost tr:not(.newreply-message-row) > td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
/* =========================================================
   USER CONTROL PANEL – MOBILE
   ========================================================= */

    /* UCP: Sidebar und Inhalt untereinander */
    .usercp-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .usercp-sidebar,
    .usercp-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Navigation zuerst, Inhalt darunter */
    .usercp-sidebar {
        margin-bottom: 20px !important;
    }

    /* Navigation-Karten auf volle Breite */
    .ucp-nav-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
   /* Benutzeraccountübersicht ausblenden */
    .ucp-card.ucp-summary-card {
        display: none !important;
    }

    /* Deine letzten Themen ausblenden */
    .ucp-content > table.tborder:has(a[href*="action=finduserthreads"]) {
        display: none !important;
    }

    /* Persönliches Notizbuch ausblenden */
    .ucp-content > form:has(textarea) {
        display: none !important;
    }
/* =========================================================
   UCP – PROFIL BEARBEITEN – MOBILE
   ========================================================= */

.ucp-profile-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ucp-profile-grid > .ucp-profile-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ucp-profile-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.ucp-custom-fields-area {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    flex: 1 1 auto !important;
}

/* Custom-Fields-Karte selbst */
.ucp-custom-fields-area fieldset {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Tabelle innerhalb der Custom Fields */
.ucp-profile-grid .ucp-profile-col fieldset table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Selects */
.ucp-profile-grid .ucp-profile-col fieldset table select {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.ucp-custom-fields-area input.textbox {
    width: 80% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.ucp-custom-fields-area td:has(.ucp-check-opt) {
  display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 16px !important;
        width: 90% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
}
/* =========================================================
   UCP – BENUTZERNAMEN ÄNDERN – MOBILE
   ========================================================= */

.ucp-content table:has(input[name="username"]) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ucp-content table:has(input[name="username"]) tr {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.ucp-content table:has(input[name="username"]) td {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ucp-content table:has(input[name="username"]) input[name="username"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.usercp-content .tborder, .usercp-content form table, .usercp-content table.tborder {
    width: 90% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
/* =========================================================
   REGISTRIERUNG – MOBILE
   ========================================================= */

    #content {
        overflow-x: auto !important;
    }

/* =========================================================
   Jasper: Member.php
   ========================================================= */
.member-grid {
        grid-template-columns: 1fr;
    }
    .memberlist-header {
        flex-direction: column;
        text-align: center;
    }

    .burg-banner-layout {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        width: 100% !important;
    }

    .burg-banner-spalte {
        flex: 0 0 90% !important;
        min-width: 90% !important;
    }
/* =========================================================
   ENDE – MOBILE - Zukunfts-Chrissy: letzte Klammer stehen lassen!!!
   ========================================================= */



}