/* =========================================
   Preis-King.com — WP Admin Dark Mode (Neutrales Schwarz/Grau)
   ========================================= */

/* ---------- Admin Body & Wrapper ---------- */
html[data-theme="dark"] body.wp-admin, html[data-theme="dark"] #wpwrap, html[data-theme="dark"] #wpcontent, html[data-theme="dark"] #wpbody, html[data-theme="dark"] #wpbody-content, html[data-theme="dark"] #post-body, html[data-theme="dark"] #post-body-content, html[data-theme="dark"] #normal-sortables, html[data-theme="dark"] #advanced-sortables, html[data-theme="dark"] #side-sortables, html[data-theme="dark"] #side-info-column, html[data-theme="dark"] #side-info-field { background: #121212 !important; color: #e0e0e0 !important; }

/* ---------- Admin Top Bar ---------- */
html[data-theme="dark"] #wpadminbar { background: #000000 !important; border-bottom: 1px solid #333333 !important; }
html[data-theme="dark"] #wpadminbar * { color: #cccccc !important; }
html[data-theme="dark"] #wpadminbar .ab-item:hover, html[data-theme="dark"] #wpadminbar a:hover { color: #ffffff !important; }
html[data-theme="dark"] #wpadminbar .ab-sub-wrapper, html[data-theme="dark"] #wpadminbar .menupop .ab-sub-wrapper { background: #1e1e1e !important; border: 1px solid #333333 !important; }

/* ---------- Linke Admin-Navigation ---------- */
html[data-theme="dark"] #adminmenuback, html[data-theme="dark"] #adminmenuwrap, html[data-theme="dark"] #adminmenu { background: #181818 !important; }
html[data-theme="dark"] #adminmenu a { color: #aaaaaa !important; }
html[data-theme="dark"] #adminmenu li.menu-top:hover > a, html[data-theme="dark"] #adminmenu li.opensub > a, html[data-theme="dark"] #adminmenu .wp-has-current-submenu > a, html[data-theme="dark"] #adminmenu .current > a { color: #ffffff !important; }
html[data-theme="dark"] #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, html[data-theme="dark"] #adminmenu .current a.menu-top, html[data-theme="dark"] #adminmenu li.wp-has-current-submenu .wp-submenu-head { background: #2271b1 !important; color: #ffffff !important; }
html[data-theme="dark"] #adminmenu .wp-submenu { background: #141414 !important; }
html[data-theme="dark"] #adminmenu .wp-submenu a { color: #aaaaaa !important; }
html[data-theme="dark"] #adminmenu .wp-submenu a:hover, html[data-theme="dark"] #adminmenu .wp-submenu .current a { color: #66b3ff !important; }
html[data-theme="dark"] #adminmenu .wp-menu-separator { border-color: #333333 !important; }
html[data-theme="dark"] #collapse-button { color: #888888 !important; }

/* ---------- Haupt-Inhaltsbereich & Texte ---------- */
html[data-theme="dark"] .wrap, html[data-theme="dark"] #poststuff, html[data-theme="dark"] #post { background: transparent !important; }
html[data-theme="dark"] #wpcontent p, html[data-theme="dark"] #wpcontent span:not(.mce-txt), html[data-theme="dark"] #wpcontent label, html[data-theme="dark"] #wpcontent td, html[data-theme="dark"] #wpcontent li { color: #cccccc !important; }
html[data-theme="dark"] code, html[data-theme="dark"] kbd { background: #181818 !important; color: #66b3ff !important; border: 1px solid #333333 !important; }

/* ---------- Post-Titel & Permalink ---------- */
html[data-theme="dark"] #titlediv #title { background: #1e1e1e !important; border-color: #333333 !important; color: #ffffff !important; box-shadow: none !important; }
html[data-theme="dark"] #titlediv #title:focus { border-color: #66b3ff !important; }
html[data-theme="dark"] #titlediv label, html[data-theme="dark"] #title-prompt-text { color: #888888 !important; }
html[data-theme="dark"] #edit-slug-box { color: #aaaaaa !important; }
html[data-theme="dark"] #edit-slug-box span:not(#editable-post-name) { color: #aaaaaa !important; }
html[data-theme="dark"] #edit-slug-box span#editable-post-name,
html[data-theme="dark"] #editable-post-name { color: #66b3ff !important; }
html[data-theme="dark"] #editable-post-name-full { color: #66b3ff !important; }

/* ---------- Classic Editor ---------- */
html[data-theme="dark"] #wp-content-editor-container, html[data-theme="dark"] #postdivrich, html[data-theme="dark"] #postdiv, html[data-theme="dark"] .wp-editor-area { background: #1e1e1e !important; border-color: #333333 !important; }
html[data-theme="dark"] .mce-toolbar, html[data-theme="dark"] .mce-toolbar .mce-btn-group, html[data-theme="dark"] .mce-container, html[data-theme="dark"] .mce-container-body, html[data-theme="dark"] .mce-top-part, html[data-theme="dark"] .mce-menubar, html[data-theme="dark"] .mce-statusbar, html[data-theme="dark"] .mce-edit-area { background: #1e1e1e !important; border-color: #333333 !important; }
html[data-theme="dark"] .mce-btn button, html[data-theme="dark"] .mce-ico { color: #cccccc !important; }
html[data-theme="dark"] .mce-btn:hover button, html[data-theme="dark"] .mce-btn.mce-active button { color: #ffffff !important; }
html[data-theme="dark"] .mce-btn:hover, html[data-theme="dark"] .mce-btn.mce-active { background: #333333 !important; border-color: #444444 !important; }
html[data-theme="dark"] #wp-content-editor-tools, html[data-theme="dark"] .wp-editor-tabs { background: #181818 !important; border-color: #333333 !important; }
html[data-theme="dark"] .wp-switch-editor { background: #282828 !important; color: #aaaaaa !important; border-color: #333333 !important; }
html[data-theme="dark"] .wp-switch-editor.switch-tmce, html[data-theme="dark"] .wp-switch-editor.switch-html { background: #282828 !important; }
html[data-theme="dark"] .tmce-active .switch-tmce, html[data-theme="dark"] .html-active .switch-html { background: #1e1e1e !important; color: #ffffff !important; border-bottom-color: #1e1e1e !important; }
html[data-theme="dark"] #content.wp-editor-area { background: #1e1e1e !important; color: #e0e0e0 !important; border-color: #333333 !important; }
html[data-theme="dark"] #wp-content-media-buttons, html[data-theme="dark"] .wp-media-buttons { background: transparent !important; }
html[data-theme="dark"] .wp-media-buttons .button { background: #282828 !important; border-color: #444444 !important; color: #e0e0e0 !important; }
html[data-theme="dark"] #post-status-info { background: #181818 !important; border: 1px solid #333333 !important; border-top: none !important; }
html[data-theme="dark"] #post-status-info td { color: #aaaaaa !important; }
html[data-theme="dark"] .mce-edit-area iframe { background: #000000 !important; }
html[data-theme="dark"] .wp-editor-area { background: #000000 !important; color: #e0e0e0 !important; }

/* ---------- Postboxen (Meta Boxes) ---------- */
html[data-theme="dark"] .postbox, html[data-theme="dark"] .postbox-container .postbox { background: #1e1e1e !important; border-color: #333333 !important; }
html[data-theme="dark"] .postbox .postbox-header, html[data-theme="dark"] .postbox h2, html[data-theme="dark"] .postbox h3 { background: #181818 !important; border-bottom-color: #333333 !important; color: #ffffff !important; }
html[data-theme="dark"] .postbox .inside { color: #cccccc !important; }
html[data-theme="dark"] .postbox .inside label { color: #aaaaaa !important; }
html[data-theme="dark"] .handlediv .toggle-indicator::before { color: #888888 !important; }

/* ---------- Publish-Box & Aktualisieren Button ---------- */
html[data-theme="dark"] #minor-publishing, html[data-theme="dark"] #minor-publishing-actions, html[data-theme="dark"] #misc-publishing-actions { background: #181818 !important; border-color: #333333 !important; }
html[data-theme="dark"] #major-publishing-actions { background: #141414 !important; border-top-color: #333333 !important; }
html[data-theme="dark"] #post-status-display, html[data-theme="dark"] #visibility-radio-public + label, html[data-theme="dark"] .misc-pub-section, html[data-theme="dark"] .misc-pub-section label { color: #aaaaaa !important; }
html[data-theme="dark"] .misc-pub-section { border-bottom-color: #333333 !important; }

/* Vorschau der Änderungen Button*/
html[data-theme="dark"] #post-preview, html[data-theme="dark"] a.preview.button, html[data-theme="dark"] #minor-publishing-actions a.preview, html[data-theme="dark"] #minor-publishing a#post-preview { background:#1e1e1e!important; border-color:#66b3ff!important; color:#66b3ff!important; box-shadow:none!important; text-shadow:none!important; }
html[data-theme="dark"] #post-preview:hover, html[data-theme="dark"] a.preview.button:hover, html[data-theme="dark"] #minor-publishing-actions a.preview:hover { background:#2a2a2a!important; border-color:#99ccff!important; color:#99ccff!important; }

/* Autocomplete / Vorschlagsfelder */
html[data-theme="dark"] body.wp-admin .ui-autocomplete{background:#1e2130!important;border:1px solid #2e3245!important;border-radius:0 0 6px 6px!important;box-shadow:0 6px 18px rgba(0,0,0,.4)!important;color:#e2e4ec!important;padding:4px 0!important;}
html[data-theme="dark"] body.wp-admin .ui-autocomplete .ui-menu-item{background:transparent!important;color:#e2e4ec!important;margin:0!important;}
html[data-theme="dark"] body.wp-admin .ui-autocomplete .ui-menu-item-wrapper{background:transparent!important;color:#e2e4ec!important;border:0!important;padding:7px 14px!important;}
html[data-theme="dark"] body.wp-admin .ui-autocomplete .ui-menu-item a{background:transparent!important;color:#e2e4ec!important;border:0!important;padding:7px 14px!important;}
html[data-theme="dark"] body.wp-admin .ui-autocomplete .ui-state-active,html[data-theme="dark"] body.wp-admin .ui-autocomplete .ui-menu-item-wrapper.ui-state-active,html[data-theme="dark"] body.wp-admin .ui-autocomplete .ui-menu-item a:hover{background:#252838!important;color:#80c0ff!important;border:0!important;margin:0!important;}

/* ---------- Kategorien / Tags Boxen ---------- */
html[data-theme="dark"] #category-adder, html[data-theme="dark"] .categorydiv, html[data-theme="dark"] .tagsdiv, html[data-theme="dark"] .rank-math-primary-term-li, html[data-theme="dark"] .categorychecklist, html[data-theme="dark"] .categorydiv ul.categorychecklist { background: transparent !important; }
html[data-theme="dark"] .category-tabs { background: transparent !important; border-bottom-color: #333333 !important; margin-bottom: 0 !important; }
html[data-theme="dark"] .category-tabs li { background: #282828 !important; border: 1px solid #333333 !important; border-bottom: none !important; }
html[data-theme="dark"] .category-tabs li.tabs a, html[data-theme="dark"] .category-tabs li a { color: #aaaaaa !important; }
html[data-theme="dark"] .category-tabs li.tabs, html[data-theme="dark"] .category-tabs li.ui-tabs-active { background: #1e1e1e !important; border-color: #333333 !important; border-bottom-color: #1e1e1e !important; }
html[data-theme="dark"] .category-tabs li.tabs a, html[data-theme="dark"] .category-tabs li.ui-tabs-active a { color: #ffffff !important; }
html[data-theme="dark"] .categorydiv .tabs-panel, html[data-theme="dark"] .custom-term-div .tabs-panel, html[data-theme="dark"] #category-all, html[data-theme="dark"] #category-pop, html[data-theme="dark"] .cat-checklist { background: #1e1e1e !important; border: 1px solid #333333 !important; box-shadow: none !important; }
html[data-theme="dark"] .categorychecklist label, html[data-theme="dark"] .tagchecklist, html[data-theme="dark"] .categorydiv ul.categorychecklist li label { color: #cccccc !important; }
html[data-theme="dark"] .categorydiv input[value="Reset"], html[data-theme="dark"] .taxonomy-search-input ~ input[type="button"], html[data-theme="dark"] .custom-term-div input[value="Reset"] { background: #1e1e1e !important; border-color: #66b3ff !important; color: #66b3ff !important; box-shadow: none !important; text-shadow: none !important; }
html[data-theme="dark"] .rank-math-seo-score.bad-fk { background: #3d1010 !important; }
html[data-theme="dark"] #submitdiv .rank-math-seo-score.bad-fk * { color: #ff6b6b !important; }
html[data-theme="dark"] .rank-math-seo-score.good-fk { background: #0d3320 !important; }
html[data-theme="dark"] #submitdiv .rank-math-seo-score.good-fk * { color: #52d68a !important; }
html[data-theme="dark"] .rank-math-seo-score.ok-fk { background: #3d2800 !important; }
html[data-theme="dark"] #submitdiv .rank-math-seo-score.ok-fk * { color: #ffaa33 !important; }
html[data-theme="dark"] .rank-math-tooltip { color: #66b3ff !important; }
html[data-theme="dark"] #new-category-parent { background: #181818 !important; color: #e0e0e0 !important; border-color: #333333 !important; }

/* ---------- Formularfelder (global Admin) ---------- */
html[data-theme="dark"] input[type="text"], html[data-theme="dark"] input[type="email"], html[data-theme="dark"] input[type="url"], html[data-theme="dark"] input[type="password"], html[data-theme="dark"] input[type="number"], html[data-theme="dark"] input[type="search"], html[data-theme="dark"] textarea, html[data-theme="dark"] select, html[data-theme="dark"] #side-sortables input:not([type="submit"]), html[data-theme="dark"] #side-sortables select, html[data-theme="dark"] #side-sortables textarea { background: #181818 !important; border-color: #333333 !important; color: #e0e0e0 !important; box-shadow: none !important; }
html[data-theme="dark"] input:focus, html[data-theme="dark"] textarea:focus, html[data-theme="dark"] select:focus { border-color: #66b3ff !important; box-shadow: 0 0 0 1px #66b3ff !important; }
html[data-theme="dark"] input[type="checkbox"], html[data-theme="dark"] input[type="radio"] { background: #181818 !important; border-color: #333333 !important; }

/* ---------- Tabellen ---------- */
html[data-theme="dark"] table.widefat, html[data-theme="dark"] table.wp-list-table { background: #1e1e1e !important; border-color: #333333 !important; }
html[data-theme="dark"] table.widefat th, html[data-theme="dark"] table.wp-list-table th, html[data-theme="dark"] .wp-list-table thead, html[data-theme="dark"] .wp-list-table tfoot { background: #181818 !important; color: #aaaaaa !important; border-color: #333333 !important; }
html[data-theme="dark"] table.widefat td, html[data-theme="dark"] table.wp-list-table td { color: #cccccc !important; border-color: #333333 !important; }
html[data-theme="dark"] table.widefat tr:nth-child(even), html[data-theme="dark"] .wp-list-table tbody tr:nth-child(odd) { background: #222222 !important; }
html[data-theme="dark"] table.widefat tr:hover, html[data-theme="dark"] .wp-list-table tbody tr:hover { background: rgba(102,179,255,0.05) !important; }
html[data-theme="dark"] .wp-list-table .row-actions { color: #888888 !important; }
html[data-theme="dark"] .wp-list-table .row-actions a { color: #66b3ff !important; }
html[data-theme="dark"] .tablenav-pages .button.disabled, html[data-theme="dark"] .tablenav-pages-navspan { background: #181818 !important; color: #888888 !important; border-color: #333333 !important; }

/* ---------- Notices / Hinweise ---------- */
html[data-theme="dark"] .notice, html[data-theme="dark"] div.error, html[data-theme="dark"] div.updated, html[data-theme="dark"] .update-nag { background: #1e1e1e !important; border-color: #333333 !important; color: #cccccc !important; }
html[data-theme="dark"] .notice-success { border-left-color: #66bb6a !important; }
html[data-theme="dark"] .notice-error, html[data-theme="dark"] div.error { border-left-color: #ef5350 !important; }
html[data-theme="dark"] .notice-warning { border-left-color: #ffa726 !important; }
html[data-theme="dark"] .notice-info { border-left-color: #66b3ff !important; }

/* ---------- Links & Überschriften ---------- */
html[data-theme="dark"] a { color: #66b3ff !important; }
html[data-theme="dark"] a:hover { color: #99ccff !important; }
html[data-theme="dark"] #adminmenu a, html[data-theme="dark"] #wpadminbar a { color: inherit !important; }
html[data-theme="dark"] .wrap h1, html[data-theme="dark"] .wrap h2, html[data-theme="dark"] .wrap h3, html[data-theme="dark"] h1.wp-heading-inline { color: #ffffff !important; }
html[data-theme="dark"] .wp-heading-inline + .page-title-action { background: #282828 !important; color: #aaaaaa !important; border-color: #333333 !important; }

/* ---------- Buttons (Sekundär) ---------- */
html[data-theme="dark"] .button:not(.button-primary):not(.button-large), html[data-theme="dark"] .button-secondary { background: #282828 !important; border-color: #444444 !important; color: #e0e0e0 !important; text-shadow: none !important; box-shadow: none !important; }
html[data-theme="dark"] .button:not(.button-primary):not(.button-large):hover, html[data-theme="dark"] .button-secondary:hover { background: #333333 !important; color: #ffffff !important; }

/* ---------- Seitenleiste, Media Library & Dashboard ---------- */
html[data-theme="dark"] #col-right .col-wrap, html[data-theme="dark"] #col-left .col-wrap { background: #1e1e1e !important; border-color: #333333 !important; }
html[data-theme="dark"] .media-frame, html[data-theme="dark"] .media-modal-content, html[data-theme="dark"] .media-frame-content { background: #1e1e1e !important; border-color: #333333 !important; }
html[data-theme="dark"] .media-sidebar, html[data-theme="dark"] .media-frame-toolbar { background: #181818 !important; }
html[data-theme="dark"] .media-frame-menu { background: #141414 !important; }
html[data-theme="dark"] .attachment-details { color: #cccccc !important; }
html[data-theme="dark"] #dashboard-widgets .postbox { background: #1e1e1e !important; }
html[data-theme="dark"] .activity-block { border-color: #333333 !important; }
html[data-theme="dark"] #dashboard-widgets p, html[data-theme="dark"] #dashboard-widgets li { color: #cccccc !important; }
html[data-theme="dark"] .welcome-panel { background: #1e1e1e !important; border-color: #333333 !important; }
html[data-theme="dark"] .welcome-panel h2 { color: #ffffff !important; }
html[data-theme="dark"] .welcome-panel .about-description { color: #aaaaaa !important; }
html[data-theme="dark"] * { scrollbar-color: #333333 #181818; scrollbar-width: thin; }

/* ---------- Inline Styles Fix & Plugins ---------- */
html[data-theme="dark"] [style*="background:#fff"], html[data-theme="dark"] [style*="background-color:#fff"], html[data-theme="dark"] [style*="background: #fff"], html[data-theme="dark"] [style*="background-color: #fff"], html[data-theme="dark"] [style*="background-color: white"], html[data-theme="dark"] [style*="background-color:white"] { background-color: #1e1e1e !important; }
html[data-theme="dark"] #rank-math-metabox-wrapper, html[data-theme="dark"] .rank-math-wrap, html[data-theme="dark"] [id*="rank-math"] { background: #1e1e1e !important; border-color: #333333 !important; color: #cccccc !important; }
html[data-theme="dark"] [id*="rank-math"] h3, html[data-theme="dark"] [id*="rank-math"] h4 { color: #ffffff !important; }
html[data-theme="dark"] #rehub-post-offer, html[data-theme="dark"] .rehub-post-offer-wrap, html[data-theme="dark"] #post-offer-wrap, html[data-theme="dark"] .post-offer-metabox { background: #1e1e1e !important; color: #cccccc !important; border-color: #333333 !important; }
html[data-theme="dark"] #wpcontent div, html[data-theme="dark"] #wpbody-content div { background-color: transparent; }

/* ---------- Custom UI & Modals ---------- */
#pk-darkmode-toggle { position: fixed !important; bottom: 78px !important; right: 68px !important; left: auto !important; width: 44px !important; height: 44px !important; border-radius: 50% !important; z-index: 999999 !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 1.2rem !important; cursor: pointer !important; box-shadow: 0 2px 10px rgba(0,0,0,.25) !important; background: #f0f0f1 !important; border: 2px solid #c5c5c5 !important; }
html[data-theme="dark"] #pk-darkmode-toggle { background: #1e1e1e !important; border-color: #333333 !important; }
#pk-darkmode-toggle .dm-icon-light { display: flex; }
#pk-darkmode-toggle .dm-icon-dark { display: none; }
html[data-theme="dark"] #pk-darkmode-toggle .dm-icon-light { display: none; }
html[data-theme="dark"] #pk-darkmode-toggle .dm-icon-dark { display: flex; }
#mobile-chat-modal { right: 14px !important; bottom: 14px !important; width: 380px !important; height: 500px !important; border-radius: 16px !important; }

html[data-theme="dark"] #wpfooter{background:#121212!important;color:#e0e0e0!important;border-top:1px solid #333333!important;}
html[data-theme="dark"] #wpadminbar li#wp-admin-bar-query-monitor > a.ab-item,html[data-theme="dark"] #wpadminbar li#wp-admin-bar-query-monitor > .ab-item,html[data-theme="dark"] #wpadminbar li#wp-admin-bar-query-monitor.qm-alert > a.ab-item,html[data-theme="dark"] #wpadminbar li#wp-admin-bar-query-monitor.qm-expensive > a.ab-item{background:#1f232b!important;background-image:none!important;color:#f3f4f6!important;}

html[data-theme="dark"] #vp-option-panel .vp-menus .vp-menu-level-1>li.vp-current>a{background:#1b2030!important;color:#fff!important;box-shadow:inset 3px 0 0 #4da6ff!important}
html[data-theme="dark"] #vp-option-panel .vp-panel>h2{background:transparent!important;border-bottom:1px solid #2e3245!important}
html[data-theme="dark"] #vp-option-panel .vp-panel>h2 span,html[data-theme="dark"] #vp-option-panel .vp-section>h3{background:#1b2030!important;color:#fff!important;border:1px solid #2e3245!important}
html[data-theme="dark"] #vp-option-panel .select2-container--default .select2-selection--single,html[data-theme="dark"] #vp-option-panel .select2-container--default .select2-selection--multiple,html[data-theme="dark"] #vp-option-panel textarea{background:#1b2030!important;border:1px solid #2e3245!important;color:#e2e4ec!important;box-shadow:none!important}
html[data-theme="dark"] #vp-option-panel .select2-container--default .select2-selection__rendered,html[data-theme="dark"] #vp-option-panel textarea::placeholder{color:#e2e4ec!important}
html[data-theme="dark"] #vp-option-panel .vp-field { background:#1a1a1a !important; border-color:#2e3245 !important; color:#e0e0e0 !important; }
html[data-theme="dark"] #vp-option-panel .vp-field label { color:#aaa !important; }
html[data-theme="dark"] #vp-option-panel .vp-textbox, html[data-theme="dark"] #vp-option-panel input[type="text"] { background:#1b2030 !important; border:1px solid #2e3245 !important; color:#e2e4ec !important; }
html[data-theme="dark"] #vp-option-panel .vp-left-panel, html[data-theme="dark"] #vp-option-panel .vp-menus { background:#141820 !important; border-color:#2e3245 !important; }
html[data-theme="dark"] #vp-option-panel .vp-menu-level-1 > li > a { color:#aaa !important; }
html[data-theme="dark"] #vp-option-panel .vp-save, html[data-theme="dark"] #vp-option-panel .vp-controls { background:#1a1a1a !important; border-color:#2e3245 !important; }

[data-theme="dark"] .wp-admin.plugins-php #wpbody-content .wrap,
[data-theme="dark"] .wp-admin.plugins-php .wp-list-table,
[data-theme="dark"] .wp-admin.plugins-php .wp-list-table th,
[data-theme="dark"] .wp-admin.plugins-php .wp-list-table td{background:#1b1f2a!important;color:#dbe1ea!important;border-color:#2e3245!important;}

[data-theme="dark"] .wp-admin.plugins-php .wp-list-table tbody tr:nth-child(odd) td{background:#1e2130!important;}
[data-theme="dark"] .wp-admin.plugins-php .wp-list-table tbody tr:nth-child(even) td{background:#202534!important;}
[data-theme="dark"] .wp-admin.plugins-php .plugins tr:hover td{background:#252b3b!important;}

[data-theme="dark"] .wp-admin.edit-comments-php .wp-list-table tr.unapproved,
[data-theme="dark"] .wp-admin.edit-comments-php .wp-list-table tr.unapproved td,
[data-theme="dark"] .wp-admin.edit-comments-php .wp-list-table tr.unapproved th,
[data-theme="dark"] .wp-admin.edit-comments-php .wp-list-table tr.unapproved p,
[data-theme="dark"] .wp-admin.edit-comments-php .wp-list-table tr.unapproved div{background:#202534!important;color:#dbe1ea!important;border-color:#2e3245!important;}


[data-theme="dark"] .media-modal,[data-theme="dark"] .media-modal-content,[data-theme="dark"] .media-frame,[data-theme="dark"] .media-frame-menu,[data-theme="dark"] .media-menu,[data-theme="dark"] .media-frame-tab-panel,[data-theme="dark"] .media-frame-router,[data-theme="dark"] .media-frame-content,[data-theme="dark"] .attachments-browser,[data-theme="dark"] .attachments-wrapper,[data-theme="dark"] .media-sidebar,[data-theme="dark"] .media-toolbar,[data-theme="dark"] .media-frame-toolbar,[data-theme="dark"] .media-frame-title,[data-theme="dark"] .media-modal-content .media-menu-item,[data-theme="dark"] .media-modal-content .attachment-filters,[data-theme="dark"] .media-modal-content input[type="search"],[data-theme="dark"] .media-modal-content .attachment,[data-theme="dark"] .media-modal-content .attachment-preview,[data-theme="dark"] .media-modal-content .thumbnail,[data-theme="dark"] .media-modal-content .uploader-inline,[data-theme="dark"] .media-modal-content .load-more-wrapper,[data-theme="dark"] .media-modal-content .media-uploader-status,[data-theme="dark"] .media-modal-content .separator{background:#1b1f2a!important;color:#dbe1ea!important;border-color:#2e3245!important;}
[data-theme="dark"] .media-frame-title h1,[data-theme="dark"] .media-frame-menu-heading{color:#fff!important;}
[data-theme="dark"] .media-modal-content .media-button.button-primary:disabled,[data-theme="dark"] .media-modal-content .media-button.button-primary[disabled]{background:#2a3042!important;color:#c7cfdb!important;border-color:#3a4258!important;opacity:1!important;box-shadow:none!important;}
[data-theme="dark"] .options-discussion-php .form-table th{color:#fff!important;}

[data-theme="dark"] .rehub-meta_factory-metabox .form-table th{color:#fff!important;}
[data-theme="dark"] [id*="rank-math"],[data-theme="dark"] [id*="rank-math"] *,[data-theme="dark"] #rehub-post-offer,[data-theme="dark"] #rehub-post-offer *,[data-theme="dark"] .rehub-post-offer-wrap,[data-theme="dark"] .rehub-post-offer-wrap *,[data-theme="dark"] #post-offer-wrap,[data-theme="dark"] #post-offer-wrap *,[data-theme="dark"] .post-offer-metabox,[data-theme="dark"] .post-offer-metabox *{color:#fff!important;}

[data-theme="dark"] .notification-dialog,[data-theme="dark"] .post-locked-message{background:#1b1f2a!important;color:#fff!important;border-color:#2e3245!important;}
[data-theme="dark"] .post-locked-message p,[data-theme="dark"] .post-locked-message .currently-editing{color:#fff!important;}
[data-theme="dark"] .post-locked-message .button{background:#2a3042!important;color:#fff!important;border-color:#3a4258!important;}
[data-theme="dark"] .post-locked-message .button.button-primary{background:#2f6fb0!important;border-color:#2f6fb0!important;color:#fff!important;}

/* ---------- RunCloud Hub ---------- */
html[data-theme="dark"] #runcloud-wrap { background:#121212 !important; color:#e0e0e0 !important; }
html[data-theme="dark"] #runcloud-wrap .bg-body, html[data-theme="dark"] #runcloud-wrap .bg-base-2-100 { background:#121212 !important; }
html[data-theme="dark"] #runcloud-wrap .bg-white, html[data-theme="dark"] #runcloud-wrap .rci-field { background:#1e1e1e !important; }
html[data-theme="dark"] #runcloud-wrap .text-base-1000, html[data-theme="dark"] #runcloud-wrap h1, html[data-theme="dark"] #runcloud-wrap h2, html[data-theme="dark"] #runcloud-wrap h3, html[data-theme="dark"] #runcloud-wrap h4 { color:#ffffff !important; }
html[data-theme="dark"] #runcloud-wrap .text-base-800, html[data-theme="dark"] #runcloud-wrap .text-base-700, html[data-theme="dark"] #runcloud-wrap p, html[data-theme="dark"] #runcloud-wrap label, html[data-theme="dark"] #runcloud-wrap .control-label { color:#aaaaaa !important; }
html[data-theme="dark"] #runcloud-wrap .text-black { color:#e0e0e0 !important; }
html[data-theme="dark"] #runcloud-wrap input[type="text"], html[data-theme="dark"] #runcloud-wrap input[type="password"], html[data-theme="dark"] #runcloud-wrap input[type="number"], html[data-theme="dark"] #runcloud-wrap select, html[data-theme="dark"] #runcloud-wrap textarea { background:#181818 !important; color:#e0e0e0 !important; border-color:#444 !important; }
html[data-theme="dark"] #runcloud-wrap .bg-blue-100, html[data-theme="dark"] #runcloud-wrap .bg-blue-200 { background:#1b2a3a !important; }
html[data-theme="dark"] #runcloud-wrap .text-blue-700, html[data-theme="dark"] #runcloud-wrap .text-blue-900 { color:#66b3ff !important; }
html[data-theme="dark"] #runcloud-wrap .border-blue-300 { border-color:#2e4a6e !important; }
html[data-theme="dark"] #runcloud-wrap aside, html[data-theme="dark"] #runcloud-wrap .rci-sidemenu { background:#181818 !important; border-color:#333 !important; }
html[data-theme="dark"] #runcloud-wrap .shadow { box-shadow:0 1px 4px rgba(0,0,0,.6) !important; }
html[data-theme="dark"] #runcloud-wrap table td, html[data-theme="dark"] #runcloud-wrap table th { background:#1e1e1e !important; border-color:#333 !important; color:#aaa !important; }
html[data-theme="dark"] #runcloud-wrap .btn-secondary { background:#282828 !important; border-color:#444 !important; color:#e0e0e0 !important; }

/* =========================================
   GUTENBERG / BLOCK EDITOR - DARK MODE FIXES
   ========================================= */

/* 1. Haupt-Schreibfläche (Canvas) & Standardtexte */
[data-theme="dark"] .editor-styles-wrapper,
[data-theme="dark"] .block-editor-block-list__layout {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .editor-styles-wrapper p,
[data-theme="dark"] .editor-styles-wrapper h1,
[data-theme="dark"] .editor-styles-wrapper h2,
[data-theme="dark"] .editor-styles-wrapper h3,
[data-theme="dark"] .editor-styles-wrapper h4,
[data-theme="dark"] .editor-styles-wrapper h5,
[data-theme="dark"] .editor-styles-wrapper h6,
[data-theme="dark"] .editor-styles-wrapper li {
    color: #e0e0e0 !important;
}

/* 2. Zitate (Quotes & Pullquotes) */
[data-theme="dark"] .editor-styles-wrapper .wp-block-quote,
[data-theme="dark"] .editor-styles-wrapper .wp-block-pullquote {
    border-left-color: #4da6ff !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .editor-styles-wrapper .wp-block-quote cite,
[data-theme="dark"] .editor-styles-wrapper .wp-block-pullquote cite {
    color: #9aa3b2 !important;
}

/* 3. Tabellen-Block */
[data-theme="dark"] .editor-styles-wrapper .wp-block-table {
    background-color: #1b1f2a !important;
}
[data-theme="dark"] .editor-styles-wrapper .wp-block-table td,
[data-theme="dark"] .editor-styles-wrapper .wp-block-table th {
    border-color: #2e3245 !important;
    color: #e0e0e0 !important;
}

/* 4. Code & Vorformatiert (Preformatted) */
[data-theme="dark"] .editor-styles-wrapper .wp-block-code,
[data-theme="dark"] .editor-styles-wrapper .wp-block-preformatted,
[data-theme="dark"] .editor-styles-wrapper pre,
[data-theme="dark"] .editor-styles-wrapper code {
    background-color: #1b1f2a !important;
    color: #4da6ff !important; /* Etwas Farbe für Code */
    border: 1px solid #2e3245 !important;
    border-radius: 4px !important;
}

/* 5. Trennlinien (Separator) */
[data-theme="dark"] .editor-styles-wrapper .wp-block-separator {
    border-color: #2e3245 !important;
    background-color: transparent !important;
    opacity: 1 !important;
}

/* 6. Bild- & Galerie-Unterschriften (Captions) */
[data-theme="dark"] .editor-styles-wrapper figcaption,
[data-theme="dark"] .editor-styles-wrapper .blocks-gallery-caption,
[data-theme="dark"] .editor-styles-wrapper .wp-block-image figcaption {
    color: #9aa3b2 !important;
}

/* 7. Listen-Ansicht & Inhaltsverzeichnis (Document Overview) */
[data-theme="dark"] .block-editor-list-view-tree,
[data-theme="dark"] .block-editor-list-view-leaf {
    background-color: #1b1f2a !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .block-editor-list-view-leaf:hover {
    background-color: #2e3245 !important;
}

/* 8. Gutenberg UI: Schwebende Werkzeugleiste (Block Toolbar) */
[data-theme="dark"] .block-editor-block-toolbar,
[data-theme="dark"] .components-popover__content {
    background-color: #1b1f2a !important;
    border: 1px solid #2e3245 !important;
    color: #e0e0e0 !important;
}
[data-theme="dark"] .components-popover__content .components-button {
    color: #e0e0e0 !important;
}
[data-theme="dark"] .components-popover__content .components-button:hover,
[data-theme="dark"] .components-popover__content .components-button.is-active {
    background-color: #2e3245 !important;
    color: #4da6ff !important;
}

/* 9. Gutenberg UI: Rechte Seitenleiste (Einstellungen) */
[data-theme="dark"] .interface-interface-skeleton__sidebar,
[data-theme="dark"] .components-panel,
[data-theme="dark"] .components-panel__body,
[data-theme="dark"] .components-panel__header {
    background-color: #121212 !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}

/* 10. Gutenberg UI: Eingabefelder in der Seitenleiste/Popups */
[data-theme="dark"] .components-text-control__input,
[data-theme="dark"] .components-textarea-control__input,
[data-theme="dark"] .components-select-control__input,
[data-theme="dark"] .components-base-control__field input {
    background-color: #1b1f2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #2e3245 !important;
}
[data-theme="dark"] .components-text-control__input:focus,
[data-theme="dark"] .components-textarea-control__input:focus {
    border-color: #4da6ff !important;
    box-shadow: 0 0 0 1px #4da6ff !important;
}
/* Gutenberg UI: Aufklapp-Menüs in der Seitenleiste (z. B. Blog tag, Kategorien) */
[data-theme="dark"] .components-panel__body-title .components-button,
[data-theme="dark"] .components-panel__body-toggle {
    color: #e0e0e0 !important;
    background-color: transparent !important;
}

[data-theme="dark"] .components-panel__body-title .components-button:hover,
[data-theme="dark"] .components-panel__body-toggle:hover {
    color: #4da6ff !important; /* Blau beim Drüberfahren */
}

/* Der kleine Pfeil (SVG) in der Leiste */
[data-theme="dark"] .components-panel__arrow {
    fill: currentColor !important; 
}


/* ---------- Rank Math ---------- */
html[data-theme="dark"] .rank-math-wrap, html[data-theme="dark"] .rank-math-wrap-settings { background: #121212 !important; }
html[data-theme="dark"] .rank-math-tab-panel { background: #121212 !important; }
html[data-theme="dark"] .components-tab-panel__tabs { background: #1a1a1a !important; border-right: 1px solid #333333 !important; }
html[data-theme="dark"] .components-tab-panel__tabs-item { background: transparent !important; color: #cccccc !important; border: none !important; box-shadow: none !important; }
html[data-theme="dark"] .components-tab-panel__tabs-item.is-active { background: #222222 !important; color: #ffffff !important; font-weight: bold !important; }
html[data-theme="dark"] .components-tab-panel__tabs-item:hover { background: #2a2a2a !important; color: #ffffff !important; }
html[data-theme="dark"] .components-tab-panel__tab-content { background: #121212 !important; color: #cccccc !important; }
html[data-theme="dark"] .rank-math-tab-header { background: #1a1a1a !important; border-bottom: 1px solid #333333 !important; }
html[data-theme="dark"] .rank-math-tab-header h2, html[data-theme="dark"] .rank-math-tab-header p { color: #cccccc !important; }
html[data-theme="dark"] .rank-math-ui .field-row { border-bottom: 1px solid #333333 !important; background: #121212 !important; }
html[data-theme="dark"] .rank-math-ui .field-th label { color: #eeeeee !important; }
html[data-theme="dark"] .rank-math-ui .field-description { color: #aaaaaa !important; }
html[data-theme="dark"] .components-toggle-group-control { background: #1a1a1a !important; border: 1px solid #333333 !important; }
html[data-theme="dark"] .components-toggle-group-control-option-base { color: #cccccc !important; }
html[data-theme="dark"] .components-toggle-group-control-option-base[data-active-item="true"] { background: #333333 !important; color: #ffffff !important; }
html[data-theme="dark"] .form-footer { background: #1a1a1a !important; border-top: 1px solid #333333 !important; }

/* ---------- Loco Translate Editor ---------- */
html[data-theme="dark"] #po-list, html[data-theme="dark"] .wg-cell, html[data-theme="dark"] .wg-body, html[data-theme="dark"] .wg-tbody, html[data-theme="dark"] .wg-cols { background:#1a1a1a !important; color:#e0e0e0 !important; }
html[data-theme="dark"] .wg-thead, html[data-theme="dark"] #po-list-thead, html[data-theme="dark"] #po-list-thead header { background:#181818 !important; color:#aaa !important; border-color:#333 !important; }
html[data-theme="dark"] .wg-cols > div > div { background:#1a1a1a !important; color:#e0e0e0 !important; }
html[data-theme="dark"] .po-fuzzy { background:#1a1a1a !important; color:#e0e0e0 !important; }
html[data-theme="dark"] .po-error { background:#3d1010 !important; color:#ff6b6b !important; }
html[data-theme="dark"] .po-error.selected, html[data-theme="dark"] .wg-cols > div > div.selected { background:#1b2a3a !important; color:#66b3ff !important; }
html[data-theme="dark"] .wg-dead { background:#121212 !important; }
html[data-theme="dark"] .wg-cell header { background:#181818 !important; color:#aaa !important; border-color:#333 !important; }
html[data-theme="dark"] .wg-cell textarea { background:#1e1e1e !important; color:#e0e0e0 !important; border-color:#333 !important; }
html[data-theme="dark"] .wg-content { background:#1e1e1e !important; }
html[data-theme="dark"] .wg-cell .meta { background:#1a1a1a !important; color:#888 !important; }
html[data-theme="dark"] .wg-cell .meta p { color:#888 !important; }

html[data-theme="dark"] .nav-tab-wrapper { background:#1a1a1a !important; border-color:#333 !important; }
html[data-theme="dark"] .nav-tab-wrapper .nav-tab { background:#222 !important; color:#66b3ff !important; border-color:#333 !important; }
html[data-theme="dark"] .nav-tab-wrapper .nav-tab-active { background:#1e1e1e !important; color:#fff !important; border-bottom-color:#1e1e1e !important; }

/* ---------- WP Customizer ---------- */
html[data-theme="dark"] #customize-controls, html[data-theme="dark"] .wp-full-overlay-sidebar { background:#1a1a1a !important; color:#e0e0e0 !important; border-color:#333 !important; }
html[data-theme="dark"] #customize-header-actions, html[data-theme="dark"] .wp-full-overlay-header { background:#181818 !important; border-color:#333 !important; }
html[data-theme="dark"] .customize-save-button-wrapper { background:#181818 !important; }
html[data-theme="dark"] #save.button-primary:disabled, html[data-theme="dark"] #save.button-primary[disabled] { background:#2a3042 !important; border-color:#3a4258 !important; color:#888 !important; box-shadow:none !important; }
html[data-theme="dark"] .wp-full-overlay-sidebar-content { background:#1a1a1a !important; }
html[data-theme="dark"] .accordion-section-title, html[data-theme="dark"] .accordion-section-title button { background:#1e1e1e !important; color:#e0e0e0 !important; border-color:#333 !important; }
html[data-theme="dark"] .accordion-section-title:hover, html[data-theme="dark"] .accordion-section-title button:hover { background:#252525 !important; color:#fff !important; }
html[data-theme="dark"] .customize-section-title, html[data-theme="dark"] .customize-section-title h3 { background:#181818 !important; color:#fff !important; border-color:#333 !important; }
html[data-theme="dark"] .customize-control-title, html[data-theme="dark"] .customize-control-description { color:#aaa !important; }
html[data-theme="dark"] .customize-panel-description, html[data-theme="dark"] .customize-info .accordion-section-title { background:#1e1e1e !important; color:#ccc !important; }
html[data-theme="dark"] #customize-info { background:#1e1e1e !important; border-color:#333 !important; }
html[data-theme="dark"] .customize-pane-parent li, html[data-theme="dark"] .customize-pane-child li { background:#1a1a1a !important; }
html[data-theme="dark"] #customize-footer-actions, html[data-theme="dark"] .wp-full-overlay-footer { background:#181818 !important; border-color:#333 !important; }
html[data-theme="dark"] .devices-wrapper, html[data-theme="dark"] .devices { background:#181818 !important; }
html[data-theme="dark"] .devices .preview-desktop, html[data-theme="dark"] .devices .preview-tablet, html[data-theme="dark"] .devices .preview-mobile { background:#181818 !important; border-color:#333 !important; color:#aaa !important; }
html[data-theme="dark"] .devices button:hover, html[data-theme="dark"] .devices button.active { background:#252525 !important; color:#fff !important; border-color:#555 !important; }
html[data-theme="dark"] .CodeMirror, html[data-theme="dark"] .CodeMirror-scroll { background:#1e1e1e !important; color:#e0e0e0 !important; }
html[data-theme="dark"] .CodeMirror-gutters { background:#181818 !important; border-color:#333 !important; }
html[data-theme="dark"] .CodeMirror-linenumber { color:#666 !important; }
html[data-theme="dark"] .CodeMirror-activeline-background { background:#252525 !important; }
html[data-theme="dark"] .google_fonts_select_control, html[data-theme="dark"] .google-fonts, html[data-theme="dark"] .google-font-style, html[data-theme="dark"] .google-font-weight, html[data-theme="dark"] .google-font-subset { background:#1e1e1e !important; color:#e0e0e0 !important; border-color:#333 !important; }
html[data-theme="dark"] .customize-controls-close, html[data-theme="dark"] a.customize-controls-close { background:#1a1a1a !important; color:#aaa !important; border-color:#333 !important; }
html[data-theme="dark"] .customize-controls-preview-toggle { background:#181818 !important; color:#aaa !important; border-color:#333 !important; }
html[data-theme="dark"] .customize-control-notifications-container { background:transparent !important; }a1a !important; }

/* ---------- Groq SEO Plugin ---------- */
html[data-theme="dark"] #pkgs_box .pkgs-preview { background: #181818 !important; color: #e0e0e0 !important; border-left-color: #66b3ff !important; }
html[data-theme="dark"] #pkgs_box .pkgs-ids { background: transparent !important; color: #cccccc !important; }
html[data-theme="dark"] .pkgs-preview { background: #12141d !important; color: #e2e4ec !important; border: 1px solid #2e3245 !important; }
html[data-theme="dark"] .pkgs-preview strong { color: #ffffff !important; }

/* ---------- Deallisten Ersteller Plugin ---------- */
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-stat,html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-card,html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-settings{background:#1b2030!important;border:1px solid #2e3245!important;box-shadow:0 8px 24px rgba(0,0,0,.35)!important;color:#e2e4ec!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-stat .label,html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-card h2 .count,html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-settings-grid label,html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-skip{color:#9aa3b2!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-table th{background:#161b26!important;color:#cbd5e1!important;border-bottom:1px solid #2e3245!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-table td{color:#e2e4ec!important;border-bottom:1px solid #262b3d!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-table tr:hover{background:#22283a!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-full-row{background:#2a2416!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-full-row td{border-top:2px solid #f59e0b!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-mode.inc{background:#163126!important;color:#7ee0a1!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-mode.full{background:#3a1d22!important;color:#ffb4be!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-mode.unknown{background:#293041!important;color:#cbd5e1!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-settings-grid input[type="number"],html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-settings-grid input[type="text"]{background:#131720!important;border:1px solid #2e3245!important;color:#e2e4ec!important}
html[data-theme="dark"] .toplevel_page_pk-listen-generator .dal-settings-grid input:focus{border-color:#4da6ff!important;box-shadow:0 0 0 2px rgba(77,166,255,.2)!important}


/* ---------- Ablaufdatum Eingabefeld ---------- */
html[data-theme="dark"] body .flatpickr-calendar { background: #1e2130 !important; box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important; border: 1px solid #2e3245 !important; }
html[data-theme="dark"] body .flatpickr-calendar.arrowTop::before { border-bottom-color: #2e3245 !important; }
html[data-theme="dark"] body .flatpickr-calendar.arrowTop::after { border-bottom-color: #1e2130 !important; }
html[data-theme="dark"] body .flatpickr-calendar.arrowBottom::before { border-top-color: #2e3245 !important; }
html[data-theme="dark"] body .flatpickr-calendar.arrowBottom::after { border-top-color: #1e2130 !important; }
html[data-theme="dark"] body .flatpickr-months, html[data-theme="dark"] body .flatpickr-weekdays, html[data-theme="dark"] body .flatpickr-weekday { background: transparent !important; color: #e2e4ec !important; }
html[data-theme="dark"] body .flatpickr-current-month .flatpickr-monthDropdown-months, html[data-theme="dark"] body .flatpickr-current-month input.cur-year { background: transparent !important; color: #e2e4ec !important; }
html[data-theme="dark"] body .flatpickr-day { color: #b0b8c8 !important; }
html[data-theme="dark"] body .flatpickr-day:hover, html[data-theme="dark"] body .flatpickr-day:focus { background: #252838 !important; border-color: #2e3245 !important; color: #e2e4ec !important; }
html[data-theme="dark"] body .flatpickr-day.selected { background: #0071e3 !important; border-color: #0071e3 !important; color: #fff !important; }
html[data-theme="dark"] body .flatpickr-day.prevMonthDay, html[data-theme="dark"] body .flatpickr-day.nextMonthDay { color: #4e5569 !important; }
html[data-theme="dark"] body .flatpickr-time { border-top: 1px solid #2e3245 !important; }
html[data-theme="dark"] body .flatpickr-time input, html[data-theme="dark"] body .flatpickr-time .flatpickr-am-pm { color: #e2e4ec !important; }
html[data-theme="dark"] body .flatpickr-time input:hover, html[data-theme="dark"] body .flatpickr-time .flatpickr-am-pm:hover, html[data-theme="dark"] body .flatpickr-time input:focus { background: #252838 !important; }
html[data-theme="dark"] body .flatpickr-prev-month svg, html[data-theme="dark"] body .flatpickr-next-month svg { fill: #e2e4ec !important; }
html[data-theme="dark"] body .flatpickr-prev-month:hover svg, html[data-theme="dark"] body .flatpickr-next-month:hover svg { fill: #0071e3 !important; }
 
/* ── mob-details ── */
[data-theme="dark"] .mob-details summary{color:#e2e4ec!important;}
[data-theme="dark"] .mob-details[open] summary{background:#1e2130!important;color:#4da6ff!important;}
[data-theme="dark"] .mob-details[open] .mob-det-ch{color:#4da6ff!important;}

/* ── Bild bearbeiten ── */
html[data-theme="dark"] .embed-media-settings, html[data-theme="dark"] .column-settings, html[data-theme="dark"] .column-image, body.dark .embed-media-settings, body.dark .column-settings { background: #1e2130 !important; color: #e2e4ec !important; }
html[data-theme="dark"] .column-settings label, html[data-theme="dark"] .column-settings legend, html[data-theme="dark"] .column-settings h2, body.dark .column-settings label, body.dark .column-settings legend, body.dark .column-settings h2 { color: #e2e4ec !important; }
html[data-theme="dark"] .column-settings input:not([type="checkbox"]), html[data-theme="dark"] .column-settings textarea, html[data-theme="dark"] .column-settings select, body.dark .column-settings input:not([type="checkbox"]), body.dark .column-settings textarea, body.dark .column-settings select { background: #12141d !important; color: #ffffff !important; border: 1px solid #2e3245 !important; }
html[data-theme="dark"] .column-settings .description, html[data-theme="dark"] .column-settings .description a, body.dark .column-settings .description, body.dark .column-settings .description a { color: #9aa3b2 !important; }
html[data-theme="dark"] .advanced-section .button-link, body.dark .advanced-section .button-link { color: #0071e3 !important; }
html[data-theme="dark"] .column-settings .setting, body.dark .column-settings .setting { background: transparent !important; }

/* ── X  bearbeitet diesen Beitrag bereits. Möchtest du übernehmen? ── */
[data-theme="dark"] .components-modal__content { background: var(--surface); color: var(--text); border: 1px solid var(--border-color); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
[data-theme="dark"] .components-modal__header { border-bottom: 1px solid var(--border-color); }
[data-theme="dark"] .components-modal__header-heading { color: var(--text); }
[data-theme="dark"] .components-modal__content p { color: var(--text-subtle); }
[data-theme="dark"] .components-modal__content strong { color: var(--text); }
[data-theme="dark"] .components-external-link { color: var(--brand); }
[data-theme="dark"] .components-button.is-tertiary { color: var(--text); background: transparent; }
[data-theme="dark"] .components-button.is-primary { background: var(--brand); color: #ffffff; border: none; }

/* ──Datei Editor ── */
[data-theme="dark"] ul[role="tree"], [data-theme="dark"] ul[role="group"] { background-color: #131720 !important; color: #e2e4ec !important; border-color: #2e3245 !important; }
[data-theme="dark"] li[role="treeitem"], [data-theme="dark"] li[role="none"] { background-color: transparent !important; }
[data-theme="dark"] .folder-label { color: #e2e4ec !important; }
[data-theme="dark"] a[role="treeitem"] { color: #4da6ff !important; background-color: transparent !important; }
[data-theme="dark"] .current-file { background-color: #252838 !important; }
[data-theme="dark"] .current-file a, [data-theme="dark"] .current-file .notice { color: #ffffff !important; background-color: transparent !important; box-shadow: none !important; border: none !important; }
[data-theme="dark"] .tree-folder { border-left: 1px solid #2e3245 !important; }

/* WordPress Admin: Beliebte Schlagwörter im Dark Mode */
html[data-theme="dark"] body.wp-admin .popular-tags{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;margin:12px 0 0!important;padding:18px!important;background:#1e2130!important;border:1px solid #2e3245!important;border-radius:10px!important;box-shadow:0 4px 14px rgba(0,0,0,.25)!important;line-height:1.4!important;}
html[data-theme="dark"] body.wp-admin .popular-tags a.tag-cloud-link{display:inline-flex!important;align-items:center!important;margin:0!important;padding:6px 11px!important;background:#252838!important;color:#b9c7dc!important;border:1px solid #34394f!important;border-radius:999px!important;font-size:13px!important;font-weight:500!important;line-height:1.25!important;text-decoration:none!important;box-shadow:none!important;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease!important;}
html[data-theme="dark"] body.wp-admin .popular-tags a.tag-cloud-link:hover,html[data-theme="dark"] body.wp-admin .popular-tags a.tag-cloud-link:focus-visible{background:rgba(77,166,255,.16)!important;color:#80c0ff!important;border-color:#4da6ff!important;transform:translateY(-1px)!important;outline:none!important;}
html[data-theme="dark"] body.wp-admin .popular-tags a.tag-cloud-link:focus-visible{box-shadow:0 0 0 2px rgba(77,166,255,.3)!important;}

html[data-theme="dark"] .wp-upload-form{background:#1e2130!important;border:1px solid #2e3245!important;border-radius:8px!important;padding:20px!important;box-shadow:0 4px 14px rgba(0,0,0,.25)!important;}
html[data-theme="dark"] .wp-upload-form input[type="file"]{background:#131720!important;color:#e2e4ec!important;border:1px solid #2e3245!important;border-radius:4px!important;padding:6px!important;}
html[data-theme="dark"] .wp-upload-form input[type="file"]::file-selector-button{background:#252838!important;color:#e2e4ec!important;border:1px solid #3a4058!important;border-radius:4px!important;padding:6px 10px!important;cursor:pointer!important;}
html[data-theme="dark"] .wp-upload-form input[type="file"]::file-selector-button:hover{background:#303548!important;color:#fff!important;border-color:#4da6ff!important;}
html[data-theme="dark"] .wp-upload-form #install-plugin-submit{background:#2271b1!important;color:#fff!important;border-color:#2271b1!important;box-shadow:none!important;}
html[data-theme="dark"] .wp-upload-form #install-plugin-submit:hover{background:#135e96!important;border-color:#135e96!important;}

#customize-controls,.wp-full-overlay-sidebar{background:#101217!important;color:#e7e9ef!important;border-color:#2a2f39!important;}
#customize-sidebar-outer-content,#customize-outer-theme-controls,.wp-full-overlay-sidebar-content,#customize-theme-controls{background:#101217!important;color:#e7e9ef!important;}
#customize-header-actions,.wp-full-overlay-header{background:#0b0d11!important;border-color:#2a2f39!important;box-shadow:0 1px 8px rgba(0,0,0,.35)!important;}
#customize-controls .customize-pane-parent,#customize-controls .customize-pane-child,#customize-controls .accordion-section-content{background:#101217!important;color:#e7e9ef!important;}
#customize-controls .accordion-section{background:#15181f!important;border-color:#2a2f39!important;}
#customize-controls .accordion-section-title,#customize-controls .accordion-section-title button{background:#181b22!important;color:#e7e9ef!important;border-color:#2a2f39!important;text-shadow:none!important;}
#customize-controls .accordion-section-title:hover,#customize-controls .accordion-section-title button:hover{background:#202530!important;color:#fff!important;}
#customize-controls .accordion-section-title:after,#customize-controls .customize-section-back:before,#customize-controls .customize-panel-back:before{color:#8d98aa!important;}
#customize-controls .accordion-section-title:hover:after,#customize-controls .customize-section-back:hover:before,#customize-controls .customize-panel-back:hover:before{color:#6fb5ff!important;}
#customize-controls .customize-section-title,#customize-controls .customize-section-title h3{background:#15181f!important;color:#fff!important;border-color:#2a2f39!important;}
#customize-controls .customize-info .accordion-section-title,#customize-controls .customize-panel-description,#customize-controls .customize-section-description{background:#15181f!important;color:#b8c0ce!important;border-color:#2a2f39!important;}
#customize-controls .customize-action,#customize-controls .customize-control-description,#customize-controls .description{color:#929cad!important;}
#customize-controls .customize-control-title,#customize-controls label,#customize-controls legend{color:#d9dde6!important;}
#customize-controls a,#customize-controls .button-link{color:#6fb5ff!important;}
#customize-controls a:hover,#customize-controls .button-link:hover{color:#a5d2ff!important;}
#customize-controls input[type="text"],#customize-controls input[type="search"],#customize-controls input[type="number"],#customize-controls input[type="url"],#customize-controls textarea,#customize-controls select{background:#0d0f14!important;color:#eef0f5!important;border:1px solid #343a46!important;box-shadow:none!important;}
#customize-controls input:focus,#customize-controls textarea:focus,#customize-controls select:focus{border-color:#5ba8f7!important;box-shadow:0 0 0 1px #5ba8f7!important;}
#customize-controls input[type="checkbox"],#customize-controls input[type="radio"]{background:#0d0f14!important;border-color:#454c5a!important;}
#customize-controls .button:not(.button-primary){background:#222630!important;color:#e1e5ed!important;border-color:#3b424f!important;box-shadow:none!important;text-shadow:none!important;}
#customize-controls .button:not(.button-primary):hover{background:#2b303c!important;color:#fff!important;border-color:#596273!important;}
#customize-controls #save.button-primary{border-radius:5px!important;box-shadow:none!important;text-shadow:none!important;}
#customize-controls #save.button-primary:disabled{background:#242936!important;color:#777f90!important;border-color:#343a47!important;}
#customize-controls .customize-section-back,#customize-controls .customize-panel-back,#customize-controls .customize-controls-close{background:#11141a!important;border-color:#2a2f39!important;}
#customize-controls .customize-section-back:hover,#customize-controls .customize-panel-back:hover,#customize-controls .customize-controls-close:hover{background:#202530!important;}
#customize-controls .attachment-media-view,#customize-controls .thumbnail,#customize-controls .site-icon-preview{background:#0d0f14!important;border-color:#343a46!important;}
#customize-controls .customize-control{border-color:#292e38!important;}
#customize-controls .customize-inside-control-row{color:#d9dde6!important;}
#customize-controls .no-widget-areas-rendered-notice{background:#181c24!important;color:#b9c1cf!important;border:1px solid #303744!important;}
#sub-accordion-section-custom_css,#customize-control-custom_css{background:#101217!important;}
#customize-control-custom_css .CodeMirror,#customize-control-custom_css .CodeMirror-scroll,#customize-control-custom_css .CodeMirror-sizer,#customize-control-custom_css .CodeMirror-lines{background:#0b0d12!important;color:#e8ebf2!important;}
#customize-control-custom_css .CodeMirror-gutters{background:#11141a!important;border-color:#2b303a!important;}
#customize-control-custom_css .CodeMirror-linenumber{color:#697386!important;}
#customize-control-custom_css .CodeMirror-activeline-background{background:#171b23!important;}
#customize-control-custom_css .CodeMirror-cursor{border-left-color:#fff!important;}
#customize-control-custom_css .cm-property,#customize-control-custom_css .cm-qualifier{color:#7abaff!important;}
#customize-control-custom_css .cm-number,#customize-control-custom_css .cm-atom{color:#d49aff!important;}
#customize-control-custom_css .cm-string{color:#8bd49c!important;}
#customize-control-custom_css .cm-comment{color:#768095!important;}
#customize-controls ::-webkit-scrollbar{width:10px!important;}
#customize-controls ::-webkit-scrollbar-track{background:#0d0f14!important;}
#customize-controls ::-webkit-scrollbar-thumb{background:#343b48!important;border:2px solid #0d0f14!important;border-radius:10px!important;}
#customize-controls ::-webkit-scrollbar-thumb:hover{background:#495365!important;}
#customize-footer-actions.wp-full-overlay-footer{background:#0b0d11!important;border-top:1px solid #2a2f39!important;box-shadow:0 -2px 10px rgba(0,0,0,.28)!important;}
#customize-footer-actions .collapse-sidebar{background:#11141a!important;color:#cbd2dd!important;border:0!important;border-right:1px solid #2a2f39!important;box-shadow:none!important;}
#customize-footer-actions .collapse-sidebar:hover{background:#202530!important;color:#fff!important;}
#customize-footer-actions .collapse-sidebar-arrow:before{color:#8d98aa!important;}
#customize-footer-actions .collapse-sidebar:hover .collapse-sidebar-arrow:before{color:#6fb5ff!important;}
#customize-footer-actions .collapse-sidebar-label{color:#cbd2dd!important;}
#customize-footer-actions .devices-wrapper,#customize-footer-actions .devices{background:#0b0d11!important;}
#customize-footer-actions .devices button{background:#11141a!important;color:#8d98aa!important;border:0!important;border-left:1px solid #2a2f39!important;box-shadow:none!important;}
#customize-footer-actions .devices button:hover{background:#202530!important;color:#fff!important;}
#customize-footer-actions .devices button.active{background:#1d2430!important;color:#6fb5ff!important;box-shadow:inset 0 3px 0 #6fb5ff!important;}
#customize-footer-actions .devices button:before{color:inherit!important;}

/* ---------- WP Login + Interim Login ---------- */
html[data-theme="dark"] #wp-auth-check-bg{background:#000!important;opacity:.78!important}
html[data-theme="dark"] #wp-auth-check{background:#1e1e1e!important;border:1px solid #333!important;color:#e0e0e0!important;box-shadow:0 12px 40px rgba(0,0,0,.65)!important}
html[data-theme="dark"] #wp-auth-check-form,html[data-theme="dark"] #wp-auth-check-frame{background:#121212!important}
html[data-theme="dark"] .wp-auth-check-close{color:#aaa!important}
html[data-theme="dark"] .wp-auth-check-close:hover,html[data-theme="dark"] .wp-auth-check-close:focus{color:#fff!important}
html[data-theme="dark"] .wp-auth-fallback{background:#1e1e1e!important;color:#ccc!important}
html[data-theme="dark"] .wp-auth-fallback a{color:#7fc1ff!important}

html[data-theme="dark"] body.login{background:#121212!important;color:#e0e0e0!important;color-scheme:dark}
html[data-theme="dark"] body.login #loginform,html[data-theme="dark"] body.login #registerform,html[data-theme="dark"] body.login #lostpasswordform,html[data-theme="dark"] body.login #resetpassform{background:#1e1e1e!important;border:1px solid #333!important;box-shadow:0 8px 28px rgba(0,0,0,.55)!important}
html[data-theme="dark"] body.login label{color:#d6d6d6!important}
html[data-theme="dark"] body.login input[type="text"],html[data-theme="dark"] body.login input[type="email"],html[data-theme="dark"] body.login input[type="password"],html[data-theme="dark"] body.login select{background:#181818!important;border-color:#444!important;color:#f2f2f2!important;box-shadow:none!important}
html[data-theme="dark"] body.login input:focus,html[data-theme="dark"] body.login select:focus{border-color:#66b3ff!important;box-shadow:0 0 0 1px #66b3ff!important;outline:none!important}
html[data-theme="dark"] body.login input:-webkit-autofill,html[data-theme="dark"] body.login input:-webkit-autofill:hover,html[data-theme="dark"] body.login input:-webkit-autofill:focus{-webkit-text-fill-color:#f2f2f2!important;-webkit-box-shadow:0 0 0 1000px #181818 inset!important;caret-color:#f2f2f2!important}
html[data-theme="dark"] body.login #login_error,html[data-theme="dark"] body.login .message,html[data-theme="dark"] body.login .notice{background:#1e1e1e!important;border-color:#2271b1!important;color:#ddd!important;box-shadow:none!important}
html[data-theme="dark"] body.login #nav,html[data-theme="dark"] body.login #backtoblog,html[data-theme="dark"] body.login .privacy-policy-page-link{color:#aaa!important}
html[data-theme="dark"] body.login #nav a,html[data-theme="dark"] body.login #backtoblog a,html[data-theme="dark"] body.login .privacy-policy-page-link a,html[data-theme="dark"] body.login a{color:#8fc7ff!important}
html[data-theme="dark"] body.login #nav a:hover,html[data-theme="dark"] body.login #backtoblog a:hover,html[data-theme="dark"] body.login a:hover{color:#fff!important}

html[data-theme="dark"] body.login.interim-login{background:#121212!important}
html[data-theme="dark"] body.login.interim-login #login{background:transparent!important}
html[data-theme="dark"] body.login.interim-login #loginform{margin:0!important}
html[data-theme="dark"] body.login .nsl-button-google[data-skin="light"],html[data-theme="dark"] body.login .nsl-button-google[data-skin="light"] .nsl-button-label-container,html[data-theme="dark"] body.login .nsl-button-google[data-skin="light"] .nsl-button-label-container b{color:#eee!important}