        /* ================================================================
           Base Reset & Typography (from cms_styles.css)
           ================================================================ */
        * { box-sizing: border-box; }
        html, body, div, form, table { margin: 0; padding: 0; }
        body {
            font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
            font-size: 1em;
            background-color: #262626;
            color: #f5d395;
            min-height: 100vh;
            padding-bottom: 3em;
        }
        img { display: block; }
        a { text-decoration: none; color: #FFDE3C; }
        a:hover { color: #D96248; }
        hr { clear: both; background-color: #f5d395; border: 1px solid #f5d395; margin: 2.5em 0 1em 0; }
        strong { color: white; }

        /* ================================================================
           Logo Space (from cms_styles.css)
           ================================================================ */
        .logospace {
            width: 100%;
            background-color: black;
        }
        .logobg {
            max-width: 1024px;
            margin: auto;
            background-image: url("/frontend/images/bg.jpg");
            background-position: right;
            background-repeat: no-repeat;
            background-size: contain;
            padding: 1.5em 0.5em;
        }
        .logotext {
            font-size: 2.5em;
            color: #FFEA82;
            font-weight: bold;
        }
        .logotext a { color: #FFEA82; }
        .logotext a:hover { color: #fff; }

        /* ================================================================
           Top Menu (from cms_styles.css)
           ================================================================ */
        .topmenuspace {
            background-color: #262626;
            width: 100%;
            border-bottom: 1px solid #A67E4E;
        }
        .mainmenu {
            max-width: 1024px;
            margin: auto;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            padding: 2px 0;
        }
        .mainmenu-items {
            display: flex;
            flex-wrap: wrap;
            flex: 1;
        }
        .mainmenu-items a {
            color: #fff;
            display: block;
            padding: 0.4em 1em;
            text-transform: uppercase;
            font-size: 1em;
            border-right: 1px solid #444;
            transition: background 0.3s ease;
        }
        .mainmenu-items a:hover {
            background-color: #A67E4E;
            color: #fff;
        }
        .mainmenu-items a.active {
            background-color: #A67E4E;
            color: #fff;
        }
        .mainmenu-items a.mainmenu-home {
            border-right: 1px solid #444;
            padding: 0.4em 0.7em;
            display: flex;
            align-items: center;
        }
        .mainmenu-items a.mainmenu-home i {
            font-size: 1em;
            line-height: 1;
        }
        .mainmenu-auth {
            padding: 0.3em 0.5em;
        }
        .mainmenu-auth button {
            background: none;
            border: 1px solid #666;
            color: #A67E4E;
            cursor: pointer;
            padding: 0.3em 0.5em;
            border-radius: 3px;
            font-size: 0.85em;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 1.9em;
        }
        .mainmenu-auth button:hover { color: #FFDE3C; border-color: #A67E4E; }
        #btn-logout { color: #D96248; border-color: #D96248; }
        #btn-logout:hover { color: #fff; background-color: #D96248; }

        /* ================================================================
           Middle Box = Sidebar + Content (from cms_styles.css)
           ================================================================ */
        .middleboxspace {
            width: 100%;
            background-color: #1a1003;
            min-height: 60vh;
        }
        .middlebox {
            max-width: 1024px;
            margin: auto;
            display: flex;
            padding: 0 0.5em;
        }

        /* Sidebar Menu */
        .menu {
            width: 200px;
            min-width: 200px;
            margin-top: 1.4em;
            padding-right: 1em;
        }
        .menu ul {
            margin: 0 0 7px 0;
            padding: 0;
            list-style: none;
            border: 1px solid #666;
            border-radius: 5px;
            overflow: hidden;
            background-color: rgba(255,255,255,0.2);
        }
        .menu ul ul {
            border: 0;
            margin: 0;
            background-color: transparent;
            border-radius: 0;
        }
        .menu a {
            display: block;
            font-weight: bold;
            font-size: 0.9em;
            color: #f5d395;
            text-decoration: none;
            padding: 5px 0 5px 7px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .menu a:hover { color: #D96248; }
        .menu a.active-sub {
            color: white;
            background-color: #A67E4E;
        }
        .menu a.active-parent {
            color: #FFDE3C;
        }

        /* Content Box */
        .contentbox {
            flex: 1;
            padding: 1.4em 0;
            min-width: 0;
        }
        .content {
            line-height: 150%;
            color: #f5d395;
        }
        .content:after { content: "."; visibility: hidden; display: block; height: 1px; clear: both; }
        .content a:hover { text-decoration: underline; color: #D96248; }
        .content h1 { color: #FFEA82; font-size: 1.6em; margin: 0 0 0.12em 0; }
        .content h2 { color: #FFDE3C; font-size: 1.3em; margin: 1em 0 0.4em 0; }
        .content h3 { color: #FFDE3C; font-size: 1.1em; }
        .content li { margin-bottom: 0.4em; }
        .content li > ul { margin-top: 0.4em; }

        /* ================================================================
           Footer (from cms_styles.css)
           ================================================================ */
        .footer {
            max-width: 1024px;
            margin: 2em auto 0;
            padding: 1em 0.5em;
            color: #666;
            font-size: 0.85em;
            border-top: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1em;
            flex-wrap: wrap;
        }
        .footer-links {
            display: flex;
            gap: 1em;
            align-items: center;
        }
        .footer-links a { color: #888; font-size: 0.9em; }
        .footer-links a:hover { color: #FFDE3C; }
        .footer-search {
            position: relative;
        }
        .footer-search input {
            background-color: rgba(255,255,255,0.08);
            border: 1px solid #555;
            color: #f5d395;
            padding: 0.3em 0.6em;
            font-family: inherit;
            font-size: 0.85em;
            border-radius: 3px;
            width: 200px;
            transition: width 0.3s, border-color 0.3s;
        }
        .footer-search input:focus {
            outline: none;
            border-color: #FFDE3C;
            width: 280px;
            background-color: rgba(255,255,255,0.12);
        }
        .footer-search input::placeholder { color: #666; }

        /* ================================================================
           Bild-Positionsklassen (from oldCMS ContentParser)
           ================================================================ */
        .bild-links { float: left; margin: 0 1em 1em 0; max-width: 33%; border-radius: 5px; }
        .bild-rechts { float: right; margin: 0 0 1em 1em; max-width: 33%; border-radius: 5px; }
        .bild-zentriert { display: block; margin: 1em auto; max-width: 100%; border-radius: 5px; }
        .bild-portrait { float: left; margin: 0 1em 1em 0; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: center top; }
        .datei-video { max-width: 100%; margin: 1em 0; }
        .datei-link { color: #FFDE3C; text-decoration: underline; display: inline-flex; align-items: center; gap: 0.3em; }

        /* ================================================================
           Content-Plugins (migriert von oldCMS)
           ================================================================ */
        .interner-link-error { color: #D96248; font-weight: bold; font-size: 0.9em; }

        .hinweis {
            background-color: rgba(255, 222, 60, 0.1);
            border-left: 4px solid #FFDE3C;
            padding: 0.8em 1em; margin: 1em 0;
            border-radius: 0 5px 5px 0;
        }
        .hinweis p:last-child { margin-bottom: 0; }

        .klapp { border: 1px solid #666; border-radius: 5px; margin: 1em 0; overflow: hidden; }
        .klapp-header {
            background-color: rgba(255,255,255,0.1);
            padding: 0.6em 1em; cursor: pointer;
            font-weight: bold; color: #FFEA82; user-select: none;
            display: flex; justify-content: space-between; align-items: center;
        }
        .klapp-header:hover { background-color: rgba(255,255,255,0.15); }
        .klapp-header::after { content: "\25B6"; font-size: 0.8em; display: inline-block; transition: transform 0.2s; margin-left: 1em; }
        .klapp.open .klapp-header::after { transform: rotate(90deg); }
        .klapp-body { padding: 0.8em 1em; }

        .spalten { column-count: 2; column-gap: 2em; margin: 1em 0; }
        .spalten p { break-inside: avoid; }

        .inhaltsverzeichnis ul { margin: 0 0 0.5em 0; padding: 0 0 0 1.5em; }
        .inhaltsverzeichnis li { margin: 0.3em 0; }

        .unterseiten-item { margin-bottom: 1em; padding-bottom: 0.8em; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .unterseiten-item:last-child { border-bottom: none; }
        .unterseiten-item h3 { margin: 0 0 0.3em 0; }
        .unterseiten-teaser { color: #A67E4E; font-size: 0.9em; margin: 0; }

        /* ================================================================
           Anker-Index (H2 / Bold)
           ================================================================ */
        .anker-index {
            margin-bottom: 1.5em;
        }
        .anker-index > strong { display: block; margin-bottom: 0.5em; color: #FFEA82; font-weight: normal; font-size: 1em; }
        .anker-index ul { margin: 0; padding: 0 0 0 1.2em; }
        .anker-index li { margin: 0.2em 0; font-size: 0.9em; }
        .anker-index a { color: #FFDE3C; }
        .anker-index a:hover { color: #D96248; text-decoration: underline; }
        .anker-chips { display: flex; flex-wrap: wrap; gap: 5px; }
        .anker-chip {
            display: inline-block;
            padding: 2px 9px;
            background: rgba(255,255,255,0.08);
            border: 1px solid #555;
            border-radius: 12px;
            font-size: 0.82em;
            color: #FFDE3C;
            white-space: nowrap;
        }
        .anker-chip:hover { background: rgba(255,222,60,0.15); color: #D96248; }

        /* ================================================================
           Prev/Next Navigation
           ================================================================ */
        .prevnext-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 2em;
            padding-top: 1em;
            border-top: 1px solid #555;
        }
        .prevnext-link {
            color: #FFDE3C;
            font-size: 0.95em;
            padding: 0.4em 0;
        }
        .prevnext-link:hover { color: #D96248; }
        .prevnext-arrow { font-size: 1.2em; }
        .prevnext-prev { text-align: left; }
        .prevnext-next { text-align: right; }

        /* ================================================================
           Global Tools (Top Menu)
           ================================================================ */
        .mainmenu-tools {
            padding: 0.3em 0.3em 0.3em 0;
            display: flex;
            align-items: center;
        }
        .global-tool-btn {
            background: none;
            border: 1px solid #666;
            color: #A67E4E;
            cursor: pointer;
            padding: 0.3em 0.5em;
            border-radius: 3px;
            font-size: 0.85em;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 1.9em;
        }
        .global-tool-btn:hover { color: #FFDE3C; border-color: #A67E4E; }

        .btn-group {
            display: inline-flex;
            position: relative;
        }
        .btn-group .global-tool-btn { border-radius: 0; margin: 0; }
        .btn-group .global-tool-btn:first-child { border-radius: 3px 0 0 3px; }
        .btn-group .global-tool-btn:last-of-type { border-radius: 0 3px 3px 0; border-left: none; }
        .btn-group .global-tool-btn + .global-tool-btn { border-left: none; }

        /* ================================================================
           Global Search (Footer)
           ================================================================ */
        .search-results {
            position: absolute;
            top: 100%;
            right: 0.5em;
            width: 360px;
            max-height: 400px;
            overflow-y: auto;
            background-color: #1a1003;
            border: 1px solid #A67E4E;
            border-radius: 5px;
            z-index: 100;
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        }
        .search-result-item {
            display: block;
            padding: 0.6em 0.8em;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            color: #f5d395;
        }
        .search-result-item:hover {
            background-color: rgba(166,126,78,0.3);
            text-decoration: none;
            color: #fff;
        }
        .search-result-title {
            display: block;
            font-weight: bold;
            color: #FFDE3C;
            font-size: 0.95em;
        }
        .search-result-item:hover .search-result-title { color: #fff; }
        .search-bc {
            display: block;
            font-size: 0.75em;
            color: #888;
            margin-top: 0.15em;
        }
        .search-no-results {
            padding: 1em;
            color: #888;
            text-align: center;
            font-size: 0.9em;
        }
        .footer-search .search-results {
            bottom: 100%;
            top: auto;
            right: 0;
            margin-bottom: 0.3em;
        }

        /* ================================================================
           Plugin Checkboxes (Edit Mode)
           ================================================================ */
        .plugin-checkboxes {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5em 1.5em;
        }
        .plugin-cb {
            color: #A67E4E;
            font-size: 0.9em;
            cursor: pointer;
            white-space: nowrap;
        }
        .plugin-cb input { margin-right: 0.3em; }

        /* ================================================================
           Page Header (Title + Breadcrumb)
           ================================================================ */
        .breadcrumb {
            font-size: 0.8em;
            color: #A67E4E;
            margin-top: 0.2em;
        }
        .breadcrumb a { color: #A67E4E; }
        .breadcrumb a:hover { color: #FFDE3C; }
        .breadcrumb .bc-sep { margin: 0 0.3em; color: #666; }
        .breadcrumb .bc-current { color: #f5d395; }

        /* Admin Panel (right column) */
        .admin-panel {
            width: 36px;
            min-width: 36px;
            margin-top: 1.4em;
            padding-left: 0.5em;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }
        .admin-tb-btn {
            display: block;
            padding: 0.35rem;
            border: none;
            background: none;
            cursor: pointer;
            color: #A67E4E;
            font-size: 0.95rem;
            line-height: 1;
            border-radius: 3px;
        }
        .admin-tb-btn:hover { color: #FFDE3C; background-color: rgba(255,255,255,0.1); }

        .edit-tools-panel {
            margin-top: 2em;
            padding-top: 1.5em;
            border-top: 1px solid #3a332a;
        }
        .edit-tools-heading {
            color: #A67E4E;
            font-size: 1em;
            margin: 0 0 0.8em;
        }
        .edit-tools-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5em;
        }
        .edit-tools-btn {
            padding: 0.4em 0.8em;
            border: 1px solid #5a4a3a;
            background: rgba(255,255,255,0.04);
            color: #A67E4E;
            font-size: 0.85rem;
            border-radius: 4px;
            cursor: pointer;
        }
        .edit-tools-btn:hover { color: #FFDE3C; border-color: #FFDE3C; }
        .edit-tools-btn:disabled { opacity: 0.4; cursor: default; }
        .edit-tools-btn:disabled:hover { color: #A67E4E; border-color: #5a4a3a; }
        .edit-tools-btn i { margin-right: 0.3em; }

        /* ================================================================
           Login Modal
           ================================================================ */
        #login-modal {
            display: none;
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 110;
            justify-content: center;
            align-items: center;
        }
        #login-modal.show { display: flex; }
        .login-box {
            background: #1a1003;
            border: 1px solid #A67E4E;
            border-radius: 8px;
            padding: 1.5em;
            width: 100%;
            max-width: 360px;
            color: #f5d395;
        }
        .login-box h2 { color: #FFEA82; margin: 0 0 1em 0; font-size: 1.2em; }
        .login-box label { display: block; font-size: 0.9em; margin-bottom: 0.3em; color: #A67E4E; }
        .login-box input[type="text"],
        .login-box input[type="password"] {
            width: 100%;
            background-color: black;
            color: #A67E4E;
            border: 1px solid #A67E4E;
            padding: 0.4em;
            margin-bottom: 0.8em;
            font-family: inherit;
            font-size: 1em;
            border-radius: 3px;
        }
        .login-box input:focus { outline: none; border-color: #FFDE3C; color: #FFDE3C; }
        #login-error { color: #D96248; font-size: 0.85em; margin-bottom: 0.5em; }
        .login-buttons { display: flex; justify-content: flex-end; gap: 0.5em; margin-top: 0.5em; }
        .login-buttons button {
            font-family: inherit; font-size: 0.9em; padding: 0.4em 1em;
            border-radius: 3px; cursor: pointer; border: 1px solid #A67E4E;
            display: inline-flex; align-items: center; gap: 0.3em;
        }
        #btn-cancel-login { background: transparent; color: #A67E4E; }
        #btn-cancel-login:hover { color: #fff; }
        #btn-submit-login { background: #A67E4E; color: #fff; border-color: #A67E4E; }
        #btn-submit-login:hover { background: #FFDE3C; color: #000; }

        /* ================================================================
           Edit Mode Form Styles
           ================================================================ */
        .edit-input {
            width: 100%;
            background-color: black;
            color: #A67E4E;
            border: 1px solid #A67E4E;
            padding: 0.4em;
            margin-bottom: 0.5em;
            font-family: inherit;
            font-size: 1em;
            border-radius: 3px;
        }
        .edit-input:focus { outline: none; border-color: #FFDE3C; color: #FFDE3C; }
        .edit-label { display: block; font-size: 0.9em; color: #A67E4E; margin-bottom: 0.2em; font-weight: bold; }
        .edit-btn {
            font-family: inherit; font-size: 0.85em; padding: 0.4em 1em;
            border-radius: 3px; cursor: pointer; border: 1px solid #A67E4E;
            background: #A67E4E; color: #fff;
            display: inline-flex; align-items: center; gap: 0.3em;
        }
        .edit-btn:hover { background: #FFDE3C; color: #000; }
        .edit-btn-cancel { background: transparent; color: #A67E4E; }
        .edit-btn-cancel:hover { background: #A67E4E; color: #fff; }
        .edit-btn-danger { background: #D96248; border-color: #D96248; }
        .edit-btn-danger:hover { background: #ff4422; }

        .editor-insert-buttons {
            display: flex; gap: 0.5em; margin-top: 0.5em; margin-bottom: 0.5em;
        }
        .editor-insert-buttons .edit-btn { font-size: 0.8em; padding: 0.3em 0.8em; }

        /* ================================================================
           Tree (Sitemap / Move Dialog)
           ================================================================ */
        .tree-box {
            border: 1px solid #666;
            border-radius: 5px;
            padding: 0.8em;
            background-color: rgba(255,255,255,0.05);
        }
        .tree-list {
            margin: 0 0 0 1em;
            padding: 0 0 0 0.8em;
            list-style: none;
            border-left: 1px solid #555;
        }
        .tree-list li { margin: 0.3em 0; }
        .tree-link {
            color: #FFDE3C;
            cursor: pointer;
            padding: 2px 5px;
            border-radius: 3px;
        }
        .tree-link:hover {
            background-color: #A67E4E;
            color: #fff;
            text-decoration: none;
        }

        /* ================================================================
           Media Panel (Edit Mode)
           ================================================================ */
        .media-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1em;
            margin-bottom: 1em;
        }
        .media-item {
            border: 1px solid #666;
            border-radius: 5px;
            padding: 0.5em;
            text-align: center;
            background-color: rgba(255,255,255,0.05);
            position: relative;
            width: 180px;
        }
        .media-item img {
            max-height: 120px;
            margin: 0 auto 0.5em;
            border-radius: 3px;
            cursor: pointer;
        }
        .media-item-name {
            font-size: 0.8em;
            color: #A67E4E;
            margin-bottom: 0.3em;
        }
        .media-tag {
            font-size: 0.75em;
            background-color: rgba(255,255,255,0.1);
            color: #FFDE3C;
            padding: 2px 5px;
            border-radius: 3px;
            cursor: pointer;
            user-select: all;
            display: inline-block;
        }
        .btn-delete-media {
            background: none;
            border: none;
            color: #D96248;
            cursor: pointer;
            font-size: 0.9em;
            padding: 2px 5px;
        }
        .btn-delete-media:hover { color: #ff4422; }
        .upload-box {
            border: 2px dashed #555;
            border-radius: 5px;
            padding: 1em;
            margin: 1em 0;
            background-color: rgba(255,255,255,0.03);
            transition: border-color 0.2s, background-color 0.2s;
        }
        .upload-box.drop-active {
            border-color: #FFDE3C;
            background-color: rgba(255,222,60,0.08);
        }
        .upload-fields {
            display: flex;
            flex-wrap: wrap;
            gap: 1em;
            align-items: flex-start;
            margin-top: 0.8em;
        }
        .upload-fields > div {
            display: flex;
            flex-direction: column;
        }
        .upload-fields > div > .edit-label {
            height: 1.4em;
            line-height: 1.4em;
        }
        .upload-fields > div > .edit-input,
        .upload-fields > div > .edit-btn {
            height: 2.2em;
        }
        .upload-file-input {
            padding: 0.3em;
            font-size: 0.85em;
            color: #A67E4E;
        }
        .pos-icons {
            display: flex;
            gap: 0.3em;
            align-items: center;
        }
        .pos-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.2em;
            height: 2.2em;
            border: 2px solid #555;
            border-radius: 4px;
            cursor: pointer;
            color: #666;
            font-size: 1em;
            transition: color 0.2s, border-color 0.2s;
        }
        .pos-icon:hover {
            color: #A67E4E;
            border-color: #A67E4E;
        }
        .pos-icon.pos-active {
            color: #FFDE3C;
            border-color: #FFDE3C;
        }
        .media-actions {
            display: flex;
            gap: 0.3em;
            justify-content: center;
        }
        .media-actions .media-tag {
            font-size: 0.8em;
            width: auto;
            height: auto;
            color: #FFDE3C;
            background: rgba(255,222,60,0.1);
        }
        .media-actions .btn-delete-media:hover {
            color: #fff;
            background-color: #D96248;
            border-color: #D96248;
        }
        .media-actions .btn-save-media:hover {
            color: #fff;
            background-color: #6a4;
            border-color: #6a4;
        }
        .file-list {
            list-style: none;
            padding: 0;
            margin: 0 0 1em 0;
        }
        .file-list li {
            padding: 0.3em 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            display: flex;
            align-items: center;
            gap: 0.5em;
            flex-wrap: wrap;
        }

        /* ================================================================
           Lightbox
           ================================================================ */
        #cmsLightbox {
            display: none;
            position: fixed; z-index: 120;
            left: 0; top: 0; width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.8);
            cursor: pointer;
        }
        #cmsLightbox > div {
            display: flex; justify-content: center; align-items: center;
            width: 100%; height: 100%;
        }
        #cmsLightbox img { display: block; max-width: 80%; max-height: 80%; }

        /* ================================================================
           Burger Button (hidden on desktop)
           ================================================================ */
        .burger-btn {
            display: none;
            background: none;
            border: 1px solid #666;
            color: #A67E4E;
            cursor: pointer;
            padding: 0.3em 0.5em;
            border-radius: 3px;
            font-size: 0.85em;
            line-height: 1;
            align-items: center;
            justify-content: center;
            height: 1.9em;
            margin-left: 0.3em;
        }
        .burger-btn:hover { color: #FFDE3C; border-color: #A67E4E; }

        /* ================================================================
           Mobile Navigation Sidebar
           ================================================================ */
        .mobile-nav-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 199;
        }
        .mobile-nav-overlay.open { display: block; }

        .mobile-nav {
            position: fixed;
            top: 0; left: 0; bottom: 0;
            width: 280px;
            max-width: 85vw;
            background: #1a1003;
            z-index: 200;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .mobile-nav.open { transform: translateX(0); }

        .mobile-nav-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.8em 1em;
            background: #A67E4E;
            color: #000;
            font-weight: bold;
            font-size: 1em;
        }
        .mobile-nav-close {
            background: none;
            border: none;
            color: #000;
            cursor: pointer;
            font-size: 1.2em;
            padding: 0;
            line-height: 1;
        }
        .mobile-nav-close:hover { color: #D96248; }

        .mobile-nav-tree {
            flex: 1;
            overflow-y: auto;
            padding: 0.5em 0;
        }
        .mobile-nav-tree ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .mobile-nav-tree li { border-bottom: 1px solid rgba(255,255,255,0.05); }
        .mobile-nav-tree a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #f5d395;
            padding: 0.6em 1em;
            font-size: 0.95em;
            text-decoration: none;
        }
        .mobile-nav-tree a:hover { background: rgba(166,126,78,0.2); color: #fff; }
        .mobile-nav-tree a.mn-active {
            background: #A67E4E;
            color: #fff;
            font-weight: bold;
        }
        .mobile-nav-tree a.mn-on-path { color: #FFDE3C; }
        .mobile-nav-tree .mn-toggle {
            cursor: pointer;
            padding: 0 0.4em;
            font-size: 0.8em;
            color: #A67E4E;
        }
        .mobile-nav-tree .mn-toggle:hover { color: #FFDE3C; }
        .mobile-nav-tree ul ul {
            border-left: 2px solid rgba(166,126,78,0.3);
            margin-left: 1em;
        }

        /* ================================================================
           Responsive
           ================================================================ */
        @media screen and (max-width: 700px) {
            .mainmenu-items { display: none; }
            .burger-btn { display: inline-flex; margin-right: auto; }
            .menu { display: none !important; }
            .admin-panel { display: none !important; }
            .middlebox { flex-direction: column; }
            .contentbox { padding: 1em 0.5em; }
            .logospace { display: none; }
            .spalten { column-count: 1; }
        }
        @media print {
            .logospace, .topmenuspace, .footer, .admin-panel, #cmsLightbox { display: none; }
            .middleboxspace { background: transparent; }
            .content { color: black; }
        }

        /* ================================================================
           CMS Slider (Swiper)
           ================================================================ */
        .cms-slider {
            max-width: 1024px;
            margin: 0 auto 1.5em;
            border-radius: 5px;
            overflow: hidden;
        }
        .cms-slider .swiper-slide {
            width: auto;
            max-width: 80%;
        }
        .cms-slider .swiper-slide img {
            max-height: 300px;
            width: auto;
            margin: 0 auto;
            border-radius: 5px;
            display: block;
        }
        .cms-slider .swiper-button-next,
        .cms-slider .swiper-button-prev {
            color: #f5d395 !important;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }
        .cms-slider .swiper-button-next::after,
        .cms-slider .swiper-button-prev::after {
            font-size: 14px;
        }
        .cms-slider .swiper-button-next:hover,
        .cms-slider .swiper-button-prev:hover {
            background: rgba(0, 0, 0, 0.75);
            color: #fff !important;
        }
        .cms-slider .swiper-pagination-bullet-active {
            background: #A67E4E !important;
        }
        .cms-slider .swiper-button-disabled {
            opacity: 0.2 !important;
            cursor: default;
        }
        .btn-slider-toggle.pos-active {
            color: #4a9eff;
            border-color: #4a9eff;
        }

        /* ================================================================
           Light Theme
           ================================================================ */
        body.light-theme {
            background-color: #f0ede6;
            color: #333;
        }
        body.light-theme .logospace {
            background-color: #fff;
        }
        body.light-theme .logotext, body.light-theme .logotext a {
            color: #5a4a3a;
        }
        body.light-theme .logotext a:hover {
            color: #A67E4E;
        }
        body.light-theme .topmenuspace {
            background-color: #f0ede6;
            border-bottom: 1px solid #ddd;
        }
        body.light-theme .mainmenu-items a {
            color: #333;
            border-right: 1px solid #ddd;
        }
        body.light-theme .mainmenu-items a:hover,
        body.light-theme .mainmenu-items a.active {
            background-color: #A67E4E;
            color: #fff;
        }
        body.light-theme .mainmenu-auth button {
            color: #5a4a3a;
            border-color: #ccc;
        }
        body.light-theme .mainmenu-auth button:hover {
            color: #A67E4E;
            border-color: #A67E4E;
        }
        body.light-theme #btn-logout {
            color: #D96248;
            border-color: #D96248;
        }
        body.light-theme .global-tool-btn {
            color: #5a4a3a;
            border-color: #ccc;
        }
        body.light-theme .global-tool-btn:hover {
            color: #A67E4E;
            border-color: #A67E4E;
        }
        body.light-theme .middleboxspace {
            background-color: #fff;
        }
        body.light-theme .content {
            color: #333;
        }
        body.light-theme .content h1 {
            color: #5a4a3a;
        }
        body.light-theme .content h2 {
            color: #A67E4E;
        }
        body.light-theme .content h3 {
            color: #A67E4E;
        }
        body.light-theme .content a {
            color: #A67E4E;
        }
        body.light-theme .content a:hover {
            color: #D96248;
        }
        body.light-theme strong {
            color: #333;
        }
        body.light-theme a {
            color: #A67E4E;
        }
        body.light-theme a:hover {
            color: #D96248;
        }
        body.light-theme hr {
            background-color: #ddd;
            border-color: #ddd;
        }
        /* Sidebar */
        body.light-theme .menu ul {
            border-color: #ddd;
            background-color: rgba(0,0,0,0.03);
        }
        body.light-theme .menu a {
            color: #5a4a3a;
            border-bottom-color: rgba(0,0,0,0.05);
        }
        body.light-theme .menu a:hover { color: #D96248; }
        body.light-theme .menu a.active-sub {
            color: #fff;
            background-color: #A67E4E;
        }
        body.light-theme .menu a.active-parent {
            color: #A67E4E;
        }
        /* Footer */
        body.light-theme .footer {
            color: #999;
        }
        body.light-theme .footer-links a { color: #999; }
        body.light-theme .footer-links a:hover { color: #A67E4E; }
        body.light-theme .footer-search input {
            background-color: rgba(0,0,0,0.04);
            border-color: #ccc;
            color: #333;
        }
        body.light-theme .footer-search input:focus {
            border-color: #A67E4E;
            background-color: rgba(0,0,0,0.06);
        }
        body.light-theme .footer-search input::placeholder { color: #aaa; }
        /* Breadcrumb */
        body.light-theme .breadcrumb { color: #999; }
        body.light-theme .breadcrumb a { color: #999; }
        body.light-theme .breadcrumb a:hover { color: #A67E4E; }
        body.light-theme .breadcrumb .bc-current { color: #333; }
        /* Admin panel */
        body.light-theme .admin-tb-btn { color: #999; }
        body.light-theme .admin-tb-btn:hover { color: #A67E4E; background-color: rgba(0,0,0,0.05); }
        /* Login modal */
        body.light-theme #login-modal .login-box {
            background: #fff;
            border-color: #ddd;
            color: #333;
        }
        body.light-theme .login-box h2 { color: #5a4a3a; }
        body.light-theme .login-box label { color: #999; }
        body.light-theme .login-box input[type="text"],
        body.light-theme .login-box input[type="password"] {
            background-color: #f5f5f5;
            color: #333;
            border-color: #ccc;
        }
        body.light-theme .login-box input:focus {
            border-color: #A67E4E;
            color: #333;
        }
        /* Edit mode */
        body.light-theme .edit-input {
            background-color: #f5f5f5;
            color: #333;
            border-color: #ccc;
        }
        body.light-theme .edit-input:focus {
            border-color: #A67E4E;
            color: #333;
        }
        body.light-theme .edit-label { color: #999; }
        /* Search results */
        body.light-theme .search-results {
            background-color: #fff;
            border-color: #ddd;
        }
        body.light-theme .search-result-item { color: #333; }
        body.light-theme .search-result-item:hover { background-color: rgba(166,126,78,0.1); color: #333; }
        body.light-theme .search-result-title { color: #A67E4E; }
        body.light-theme .search-result-item:hover .search-result-title { color: #5a4a3a; }
        /* Klapp */
        body.light-theme .klapp { border-color: #ddd; }
        body.light-theme .klapp-header { background-color: rgba(0,0,0,0.04); color: #5a4a3a; }
        body.light-theme .klapp-header:hover { background-color: rgba(0,0,0,0.07); }
        /* Hinweis */
        body.light-theme .hinweis { background-color: rgba(166,126,78,0.08); border-left-color: #A67E4E; }
        /* Charsheet base styles */
        body.light-theme .charsheet-btn { border-color: #ccc; color: #999; }
        body.light-theme .charsheet-btn:hover { background-color: rgba(0,0,0,0.05); }
        body.light-theme .charsheet-btn-save { border-color: #6a4; color: #6a4; }
        body.light-theme .charsheet-status-success { background: rgba(102,170,68,0.1); color: #6a4; border-color: rgba(102,170,68,0.2); }
        body.light-theme .charsheet-status-error { background: rgba(217,98,72,0.1); color: #D96248; border-color: rgba(217,98,72,0.2); }
        /* Mobile nav */
        body.light-theme .mobile-nav {
            background: #fff;
        }
        body.light-theme .mobile-nav-header {
            background: #A67E4E;
            color: #fff;
        }
        body.light-theme .mobile-nav-tree a {
            color: #333;
        }
        body.light-theme .mobile-nav-tree a:hover {
            background: rgba(166,126,78,0.1);
        }
        body.light-theme .mobile-nav-tree a.mn-active {
            background: #A67E4E;
            color: #fff;
        }
        body.light-theme .mobile-nav-tree a.mn-on-path {
            color: #A67E4E;
        }
        body.light-theme .mobile-nav-tree li {
            border-bottom-color: rgba(0,0,0,0.05);
        }
        body.light-theme .mobile-nav-tree ul ul {
            border-left-color: rgba(166,126,78,0.2);
        }
        body.light-theme .mobile-nav-tree .mn-toggle {
            color: #999;
        }
        /* JqModal */
        body.light-theme .jqmodal {
            background: #fff;
            border-color: #ddd;
        }
        body.light-theme .jqmodal-header {
            background-color: #A67E4E;
            color: #fff;
        }
        body.light-theme .jqmodal-body input,
        body.light-theme .jqmodal-body textarea,
        body.light-theme .jqmodal-body select {
            background: #f5f5f5;
            border-color: #ccc;
            color: #333;
        }
        body.light-theme .jqmodal-footer {
            border-top-color: #ddd;
        }
        body.light-theme .jqmodal-btn-save,
        body.light-theme .jqmodal-btn-cancel {
            border-color: #ccc;
            color: #333;
            background: #f5f5f5;
        }
        body.light-theme .jqmodal-btn-save:hover { background: #A67E4E; color: #fff; }
        /* Slider */
        body.light-theme .swiper-button-next,
        body.light-theme .swiper-button-prev {
            color: #fff;
            background: rgba(0, 0, 0, 0.4);
        }
        body.light-theme .swiper-button-next:hover,
        body.light-theme .swiper-button-prev:hover {
            background: rgba(0, 0, 0, 0.65);
        }
        body.light-theme .swiper-pagination-bullet-active {
            background: #A67E4E;
        }
