body.theme-dark{--farbe-hintergrund:#16191d;--farbe-text:#f4f4f4;--farbe-blau:#91cdf5;--farbe-blau-dunkel:#b7ddf5;--farbe-nav:#050505;--farbe-nav-text:#fff;--farbe-hell:#232931;--farbe-flaeche:#1d232b;--farbe-linie:#52606c;--farbe-akzent:#ffdb57;--farbe-button-text:#111;--farbe-input-bg:#111820;--farbe-input-text:#f7f7f7;color-scheme:dark}
body.theme-dark .radio-button.danger{background:#8d2929!important;color:#fff!important}

body.theme-dark{background:var(--farbe-hintergrund)!important;color:var(--farbe-text)!important}
body.theme-dark :where(.content-article,.form-card,.admin-card,.admin-dashboard-section,.admin-dashboard-hero,.admin-nav-submenu,.admin-mobile-category-panel,.radio-device,.radio-display,.radio-meta,.radio-section,.radio-preset,.radio-dock,.project-card,.chat-message,.event-list-card,details,dialog){background:var(--farbe-flaeche)!important;color:var(--farbe-text)!important;border-color:var(--farbe-linie)!important}
body.theme-dark :where(input,textarea,select){background:var(--farbe-input-bg)!important;color:var(--farbe-input-text)!important;border-color:var(--farbe-linie)!important}
body.theme-dark :where(button,.button){background:var(--farbe-blau);color:var(--farbe-button-text);border-color:var(--farbe-linie)}
body.theme-dark :where(h1,h2,h3,summary){color:var(--farbe-blau-dunkel)}
body.theme-dark a{color:#fff}
body.theme-dark :where(.site-header,.admin-header,.admin-category-bar){background:var(--farbe-nav)!important;color:var(--farbe-nav-text)!important}
body.theme-dark :where(.admin-primary-link,.admin-brand-actions a,.top-action-button,.brand){color:var(--farbe-nav-text)!important}

/* v4: Die vollständige öffentliche Navigation im Theme „Dunkel“ bleibt dunkel. */
body.theme-dark .main-menu,
body.theme-dark .horizontal-menu,
body.theme-dark .menu-scroll-area,
body.theme-dark .main-menu-tree,
body.theme-dark .main-menu .submenu,
body.theme-dark .main-menu .submenu-nested{
  background:#20262d!important;
  color:#f4f7fa!important;
  border-color:#52606c!important;
}
body.theme-dark .main-menu .menu-separator{
  color:#aeb9c2!important;
}
body.theme-dark .main-menu a,
body.theme-dark .main-menu-tree a,
body.theme-dark .main-menu-tree strong{
  color:#fff!important;
}
body.theme-dark .main-menu a:hover,
body.theme-dark .main-menu a:focus,
body.theme-dark .main-menu-tree a:hover,
body.theme-dark .main-menu-tree a:focus{
  background:#303b46!important;
  color:#fff!important;
}
body.theme-dark .main-menu .menu-item.active > a{
  background:#344b5d!important;
  color:#fff!important;
}
body.theme-dark .menu-scroll{
  background:#2c465d!important;
  color:#fff!important;
  border-color:#657685!important;
}


/* v5: Verwaltung und Beitragseditor im Theme „Dunkel“ vollständig lesbar */
body.admin.theme-dark .cms-editor{
  background:#111820!important;
  color:#f7f7f7!important;
  border-color:#6b7c89!important;
  caret-color:#fff;
}
body.admin.theme-dark .cms-editor:focus{
  outline-color:var(--farbe-akzent,#ffdb57)!important;
}
body.admin.theme-dark .editor-help,
body.admin.theme-dark .media-tabs,
body.admin.theme-dark .media-card,
body.admin.theme-dark .editor-upload-box,
body.admin.theme-dark .admin-page-heading{
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .admin-dashboard-hero,
body.admin.theme-dark .admin-dashboard-section,
body.admin.theme-dark .admin-card{
  background:var(--farbe-flaeche,#1d232b)!important;
  color:#fff!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .admin-card:hover,
body.admin.theme-dark .admin-card:focus{
  background:#28313b!important;
  border-color:#91cdf5!important;
}
body.admin.theme-dark .admin-card strong,
body.admin.theme-dark .admin-card strong span,
body.admin.theme-dark .admin-card > span,
body.admin.theme-dark .admin-dashboard-hero-copy h2,
body.admin.theme-dark .admin-dashboard-hero-copy p,
body.admin.theme-dark .admin-dashboard-section-head h2,
body.admin.theme-dark .admin-dashboard-section-head p,
body.admin.theme-dark .admin-page-heading h1,
body.admin.theme-dark .admin-page-heading-category{
  color:#fff!important;
}
body.admin.theme-dark :where(a:not(.button):not(.admin-notification-badge)),
body.theme-dark .content-article a,
body.theme-dark .article-body a{
  color:#fff!important;
}
body.admin.theme-dark :where(a:not(.button):not(.admin-notification-badge):hover),
body.admin.theme-dark :where(a:not(.button):not(.admin-notification-badge):focus),
body.theme-dark .content-article a:hover,
body.theme-dark .content-article a:focus,
body.theme-dark .article-body a:hover,
body.theme-dark .article-body a:focus{
  color:#fff!important;
  text-decoration-thickness:2px;
}
body.admin.theme-dark a.button,
body.admin.theme-dark .button,
body.admin.theme-dark button,
body.admin.theme-dark input[type="submit"]{
  color:var(--farbe-button-text,#111)!important;
}
body.admin.theme-dark .admin-primary-link,
body.admin.theme-dark .admin-brand-actions a,
body.admin.theme-dark .admin-quick-links a,
body.admin.theme-dark .admin-nav-links a{
  color:#fff!important;
}

/* v6: Verwaltungsformulare, Listen und Editor im Theme „Dunkel“ vollständig themegerecht. */
body.admin.theme-dark .cms-editor,
body.admin.theme-dark [contenteditable="true"].cms-editor{
  background:#111820!important;
  color:#f7f7f7!important;
  border-color:#71818d!important;
  caret-color:#fff!important;
  color-scheme:dark;
}
body.admin.theme-dark .cms-editor .text-standard{color:#f7f7f7!important}
body.admin.theme-dark .cms-editor .text-grau{color:#c4ccd3!important}
body.admin.theme-dark .cms-editor a{color:#fff!important;text-decoration:underline}
body.admin.theme-dark .cms-editor::selection,
body.admin.theme-dark .cms-editor *::selection{background:#315a73;color:#fff}

body.admin.theme-dark :where(
  .form-card,
  .user-card,
  .setting-section,
  .letter-group,
  .articles-group,
  .translation-management,
  .translation-language-summary article,
  .language-option-grid,
  .language-option,
  .media-tabs,
  .media-card,
  .editor-upload-box,
  .embed-preview,
  .embed-controls,
  .admin-note,
  .event-existing-image-fieldset,
  .event-image-choice,
  fieldset,
  label.choice,
  table,
  thead,
  tbody,
  tr,
  th,
  td
){
  background:#1d232b!important;
  color:#f4f7fa!important;
  border-color:#52606c!important;
}
body.admin.theme-dark :where(.editor-help,.media-help,.admin-page-heading,.translation-management-head,.article-page-group-body){
  background:#202832!important;
  color:#f4f7fa!important;
  border-color:#60717f!important;
}
body.admin.theme-dark :where(thead th,.translation-status-table thead th){
  background:#29343e!important;
  color:#fff!important;
}
body.admin.theme-dark :where(.translation-status-table tbody th,.article-page-group>summary,.letter-group>summary,.articles-group>summary){
  background:#232c35!important;
  color:#fff!important;
  border-color:#52606c!important;
}
body.admin.theme-dark :where(
  .form-card label,
  .form-card legend,
  .form-card p,
  .form-card li,
  .user-card label,
  .setting-section label,
  .setting-section p,
  .media-tabs p,
  .media-card p,
  .media-card small,
  .article-page-summary-copy small,
  .translation-status-table tbody th small,
  .language-option small,
  .slug-prefix
){color:#f4f7fa!important}
body.admin.theme-dark :where(.user-tabs .tab,.articles-tabs .tab){
  background:#26313b!important;
  color:#fff!important;
  border-color:#657685!important;
}
body.admin.theme-dark :where(.user-tabs .tab:hover,.user-tabs .tab:focus,.articles-tabs .tab:hover,.articles-tabs .tab:focus){
  background:#344452!important;
  color:#fff!important;
}
body.admin.theme-dark :where(.user-tabs .tab.active,.articles-tabs .tab.active){
  background:#315a73!important;
  color:#fff!important;
  border-color:#91cdf5!important;
}
body.admin.theme-dark :where(.media-card code,.translation-source-type){
  background:#111820!important;
  color:#fff!important;
  border-color:#52606c!important;
}
body.admin.theme-dark :where(input,textarea,select,option){
  background:#111820!important;
  color:#f7f7f7!important;
  border-color:#71818d!important;
}
body.admin.theme-dark :where(input,textarea)::placeholder{color:#bdc8d0!important;opacity:1}
body.admin.theme-dark .submenu-option-list{border-left-color:#71818d!important}
body.admin.theme-dark :where(a:not(.button):not(.admin-notification-badge)){color:#fff!important}
body.admin.theme-dark :where(a:not(.button):not(.admin-notification-badge):visited){color:#fff!important}
body.admin.theme-dark :where(a:not(.button):not(.admin-notification-badge):hover),
body.admin.theme-dark :where(a:not(.button):not(.admin-notification-badge):focus){color:#fff!important}

/* v7: Lernführung folgt vollständig dem Theme Dunkel */
body.theme-dark .help-tour-window,
body.theme-dark .help-tour-content,
body.theme-dark .help-tour-status,
body.theme-dark .help-tour-minimized{background:#1d232b!important;color:#f4f4f4!important;border-color:#52606c!important}
body.theme-dark .help-tour-head{background:#050505!important;color:#fff!important}
body.theme-dark .help-tour-head h2{color:#fff!important}
body.theme-dark .help-tour-sidebar,
body.theme-dark .help-tour-actions{background:#232931!important;color:#f4f4f4!important;border-color:#52606c!important}
body.theme-dark .help-tour-search-label input{background:#111820!important;color:#f7f7f7!important;border-color:#71818d!important}
body.theme-dark .help-tour-list-category,
body.theme-dark .help-tour-entry-category{color:#b7ddf5!important}
body.theme-dark .help-tour-list-entry{color:#f4f4f4!important;background:#232931!important;border-color:#52606c!important}
body.theme-dark .help-tour-list-entry:hover,
body.theme-dark .help-tour-list-entry:focus{color:#fff!important;background:#303b46!important;border-color:#71818d!important}
body.theme-dark .help-tour-list-entry.active,
body.theme-dark .help-tour-list-entry.active:hover,
body.theme-dark .help-tour-list-entry.active:focus{color:#111!important;background:#91cdf5!important;border-color:#b7ddf5!important}
body.theme-dark .help-tour-target,
body.theme-dark .help-tour-target:visited{background:#91cdf5!important;color:#111!important;border-color:#b7ddf5!important}
body.theme-dark .help-tour-target:hover,
body.theme-dark .help-tour-target:focus{background:#b7ddf5!important;color:#111!important}
body.theme-dark .help-tour-minimized-prev,
body.theme-dark .help-tour-minimized-next,
body.theme-dark .help-tour-minimized-pause,
body.theme-dark .help-tour-minimized-audio,
body.theme-dark .help-tour-minimized-open,
body.theme-dark .help-tour-minimized-close,
body.theme-dark .help-tour-minimize-button{background:#91cdf5!important;color:#111!important}

/* v11: Unterkarten der Übersetzungsverwaltung ohne helle Schrift auf weißer Fläche */
body.admin.theme-dark .translation-demo-card,
body.admin.theme-dark .translation-language-summary article,
body.admin.theme-dark .language-option{
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .translation-demo-card :where(p,strong,small),
body.admin.theme-dark .translation-language-summary article :where(p,strong,small),
body.admin.theme-dark .language-option :where(strong,small){color:var(--farbe-text,#f4f4f4)!important}
body.admin.theme-dark .translation-demo-card :where(h2,h3),
body.admin.theme-dark .translation-language-summary article :where(h2,h3){color:var(--farbe-blau-dunkel,#b7ddf5)!important}

/* v12: neue Kontakt-, Such- und Datenübersichtskarten im dunklen Farbschema */
body.admin.theme-dark :where(
  .contact-admin-summary,
  .contact-message-card,
  .contact-message-original,
  .contact-message-translations,
  .contact-translation-card,
  .contact-forward-form,
  .admin-event-search-card,
  .admin-event-search-status
){
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark :where(
  .contact-message-card p,
  .contact-message-original p,
  .contact-translation-card p,
  .contact-translation-card small,
  .admin-event-search-card p
){color:var(--farbe-text,#f4f4f4)!important}
body.admin.theme-dark :where(
  .contact-message-head h3,
  .contact-message-translations>summary,
  .admin-event-search-card h3
){color:var(--farbe-blau-dunkel,#b7ddf5)!important}
body.theme-dark :where(
  .data-overview-hero,
  .data-overview-section,
  .data-browser-block,
  .data-overview-columns>div,
  .data-overview-table th,
  .data-overview-table td,
  .data-overview-log th,
  .data-overview-log td
){
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.theme-dark :where(.data-overview-section h2,.data-overview-section h3,.data-browser-block h3,.data-overview-hero h1){color:var(--farbe-blau-dunkel,#b7ddf5)!important}
body.admin.theme-dark .contact-message-status.status-beantwortet{background:#163f25!important;color:#fff!important;border-color:#4f9a68!important}
body.admin.theme-dark .contact-translation-error{color:#ff9aa2!important}

/* v12: Kalender und auswählbare Inhaltskarten im dunklen Design */
body.admin.theme-dark .admin-calendar,
body.theme-dark .event-calendar-public{
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .admin-calendar .calendar-head,
body.theme-dark .event-calendar-public .calendar-head{
  background:var(--farbe-hell,#232931)!important;
  color:var(--farbe-blau-dunkel,#b7ddf5)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .admin-calendar .calendar-head :where(h2,a),
body.theme-dark .event-calendar-public .calendar-head :where(h3,a){color:inherit!important}
body.admin.theme-dark .admin-calendar .calendar-weekdays strong,
body.theme-dark .event-calendar-public .calendar-weekdays strong{
  background:var(--farbe-hell,#232931)!important;
  color:var(--farbe-blau-dunkel,#b7ddf5)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .admin-calendar .calendar-day,
body.theme-dark .event-calendar-public .calendar-day{
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .admin-calendar .calendar-day.empty,
body.theme-dark .event-calendar-public .calendar-day.empty{
  background:var(--farbe-hell,#232931)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  opacity:.72!important;
}
body.admin.theme-dark .admin-calendar .calendar-date,
body.theme-dark .event-calendar-public .calendar-date{color:var(--farbe-blau-dunkel,#b7ddf5)!important}
body.admin.theme-dark .admin-calendar .calendar-event-mini,
body.theme-dark .event-calendar-public .calendar-event-mini{
  background:#29343e!important;
  color:#f4f7fa!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .admin-calendar .calendar-event-mini :where(strong,small,span),
body.theme-dark .event-calendar-public .calendar-event-mini :where(strong,small,span){color:#f4f7fa!important}
body.admin.theme-dark .admin-calendar .calendar-new-event,
body.theme-dark .event-calendar-public .calendar-new-event{color:var(--farbe-blau,#91cdf5)!important}
body.admin.theme-dark :where(.content-kind-option,.event-image-choice,.help-builder-catalog-item,.language-option,.event-place-card,.selection-card){
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark :where(.content-kind-option,.event-image-choice,.help-builder-catalog-item,.language-option,.event-place-card,.selection-card) :where(strong,small,p){color:inherit!important}
body.admin.theme-dark :where(.content-kind-option:has(input:checked),.event-image-choice:has(input:checked),.language-option:has(input:checked),.help-builder-catalog-item.is-selected,.selection-card.is-selected){
  background:#29343e!important;
  color:#fff!important;
  border-color:var(--farbe-blau,#91cdf5)!important;
}


/* v12.1: Keine alten hellen/ausgegrauten Kalender-Schriftfarben durchlassen. */
body.admin.theme-dark .admin-calendar :where(.calendar-day,.calendar-day span,.calendar-day strong,.calendar-day small,.calendar-event-mini,.calendar-event-mini span,.calendar-event-mini strong,.calendar-event-mini small),
body.theme-dark .event-calendar-public :where(.calendar-day,.calendar-day span,.calendar-day strong,.calendar-day small,.calendar-event-mini,.calendar-event-mini span,.calendar-event-mini strong,.calendar-event-mini small){
  color:var(--farbe-text,#f4f4f4)!important;
  opacity:1;
}
body.admin.theme-dark .admin-calendar .calendar-date,
body.theme-dark .event-calendar-public .calendar-date{
  color:var(--farbe-blau-dunkel,#b7ddf5)!important;
}


/* v16: aktuelle Kontaktsprachfassung und einzelne Sprachklappen im Dunkel-Theme */
body.admin.theme-dark :where(.contact-message-current,.contact-language-fold,.contact-language-fold-content,.contact-translations-complete){
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .contact-language-fold>summary{
  background:var(--farbe-hell,#232931)!important;
  color:var(--farbe-blau-dunkel,#b7ddf5)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .contact-language-fold>summary span:last-child,
body.admin.theme-dark :where(.contact-message-current p,.contact-message-current h4,.contact-language-fold-content p,.contact-language-fold-content small,.contact-translations-complete){
  color:var(--farbe-text,#f4f4f4)!important;
}

/* v16: Statistik-, Auswertungs- und Listenobjekte im dunklen Layout lesbar. */
body.admin.theme-dark :where(.dashboard-card,.stats-session-list,.stats-login-list,.stats-visit-list,.stats-session,.stats-login-row,.stats-visit){
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark :where(.dashboard-card>strong,.dashboard-card h3,.dashboard-number,.stats-session strong,.stats-login-row strong,.stats-visit strong){
  color:var(--farbe-blau-dunkel,#b7ddf5)!important;
}
body.admin.theme-dark :where(.dashboard-card small,.dashboard-card p,.dashboard-status,.stats-session summary,.stats-login-row span,.stats-login-row small,.stats-visit summary,.stats-visit span,.stats-visit small){
  color:var(--farbe-text,#f4f4f4)!important;
}
body.admin.theme-dark :where(.stats-session>summary,.stats-visit>summary){
  background:var(--farbe-hell,#232931)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}

/* v38: verbleibende helle Verwaltungs- und Statistikflächen im Nachtmodus beseitigen. */
body.admin.theme-dark :where(
  .stats-visitor-controls,
  .stats-chart,
  .stats-geo-chart,
  .stats-location-filter,
  .stats-session,
  .stats-login-row,
  .stats-visit,
  .stats-geo-switch a,
  .editor-media-folder,
  .event-search-distance-group,
  .event-place-category,
  .slideshow-gallery-card,
  .media-editor-info,
  .image-edit-controls,
  .backup-mode-list .check-row,
  .ai-reference-item,
  .generation-runner,
  .translation-page-group,
  .fixed-voice-controls,
  .microphone-panel
){
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark :where(
  .stats-visitor-controls,
  .stats-chart,
  .stats-geo-chart,
  .stats-location-filter,
  .stats-session,
  .stats-login-row,
  .stats-visit,
  .editor-media-folder,
  .event-search-distance-group,
  .event-place-category,
  .slideshow-gallery-card,
  .media-editor-info,
  .image-edit-controls,
  .backup-mode-list .check-row,
  .ai-reference-item,
  .generation-runner,
  .translation-page-group,
  .microphone-panel
) :where(p,span,small,strong,label,legend,summary,code){
  color:var(--farbe-text,#f4f4f4)!important;
}
body.admin.theme-dark .stats-periods a,
body.admin.theme-dark .stats-geo-switch a{
  background:var(--farbe-hell,#232931)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .stats-periods a:hover,
body.admin.theme-dark .stats-periods a:focus,
body.admin.theme-dark .stats-geo-switch a:hover,
body.admin.theme-dark .stats-geo-switch a:focus{
  background:#303b46!important;
  color:#fff!important;
}
body.admin.theme-dark .stats-periods a.active,
body.admin.theme-dark .stats-geo-switch a.active{
  background:#315a73!important;
  color:#fff!important;
  border-color:#91cdf5!important;
}
body.admin.theme-dark .stats-geo-track,
body.admin.theme-dark .microphone-level{
  background:#0f151b!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .editor-media-folder>summary,
body.admin.theme-dark .event-search-distance-group>summary,
body.admin.theme-dark .event-place-category>summary,
body.admin.theme-dark .stats-visit>summary{
  background:var(--farbe-hell,#232931)!important;
  color:var(--farbe-blau-dunkel,#b7ddf5)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}

/* v8: Link-Dialog im Beitragseditor folgt im Theme „Dunkel“ vollständig dem Farbschema. */
body.admin.theme-dark .editor-link-panel{
  background:#1d232b!important;
  color:#f4f7fa!important;
  border-color:#71818d!important;
}
body.admin.theme-dark .editor-link-heading,
body.admin.theme-dark .editor-link-tab-panel,
body.admin.theme-dark .link-panel-actions,
body.admin.theme-dark .link-target-choice{
  background:transparent!important;
  color:#f4f7fa!important;
  border-color:#60717f!important;
}
body.admin.theme-dark .editor-link-heading h3,
body.admin.theme-dark .editor-link-tab-panel label,
body.admin.theme-dark .link-target-choice legend,
body.admin.theme-dark .link-target-choice label{
  color:#f4f7fa!important;
}
body.admin.theme-dark .editor-link-tabs{
  border-bottom-color:#4f6c82!important;
}
body.admin.theme-dark .editor-link-tabs button{
  background:#315a73!important;
  color:#ffffff!important;
  border-color:#6e879a!important;
}
body.admin.theme-dark .editor-link-tabs button:hover,
body.admin.theme-dark .editor-link-tabs button:focus{
  background:#3c6d8c!important;
  color:#ffffff!important;
}
body.admin.theme-dark .editor-link-tabs button.active{
  background:#91cdf5!important;
  color:#111!important;
  border-color:#a8d9f8!important;
}
body.admin.theme-dark .link-panel-close{
  background:#91cdf5!important;
  color:#111!important;
  border-color:#71818d!important;
}
body.admin.theme-dark .link-panel-close:hover,
body.admin.theme-dark .link-panel-close:focus{
  background:#a8d9f8!important;
  color:#111!important;
}
body.admin.theme-dark .link-panel-actions button{
  background:#91cdf5!important;
  color:#111!important;
  border-color:#71818d!important;
}
body.admin.theme-dark .link-panel-actions button:hover,
body.admin.theme-dark .link-panel-actions button:focus{
  background:#a8d9f8!important;
  color:#111!important;
}

/* v42: Statusmarken der Übersetzungsverwaltung bleiben im Nachtlayout lesbar. */
body.admin.theme-dark .translation-status.translation-status-done{background:#dff2e3!important;color:#17612d!important;border-color:#a9d7b4!important}
body.admin.theme-dark .translation-status.translation-status-missing{background:#f4f0db!important;color:#69580a!important;border-color:#d9ca80!important}
body.admin.theme-dark .translation-status.translation-status-outdated{background:#fff0d8!important;color:#7a4700!important;border-color:#e7bc75!important}
body.admin.theme-dark .translation-status.translation-status-error,
body.admin.theme-dark .translation-status.translation-status-corrupt{background:#f8dddd!important;color:#8b1e1e!important;border-color:#e2a4a4!important}
body.admin.theme-dark .translation-status.translation-status-pending{background:#dce9f7!important;color:#214f78!important;border-color:#a9c2da!important}
body.admin.theme-dark .translation-status.translation-status-prepared{background:#283744!important;color:#fff!important;border-color:#60798d!important}
body.admin.theme-dark .admin-personal-note-info{color:var(--farbe-text,#f4f7fa)!important}


/* v46: Verwaltungs-Kopfaktionen verwenden im Nachtlayout dieselbe Button-Basis
   wie die Schnellzugriffe unter „Zuletzt verwendet“. Eigene Layoutregeln können
   diese Basis durch die später gerenderten Overrides weiterhin überschreiben. */
body.admin.theme-dark .admin-brand-actions .admin-header-action-button{
  background:var(--farbe-blau)!important;
  color:var(--farbe-button-text)!important;
}
body.admin.theme-dark .admin-brand-actions .admin-header-action-button:hover,
body.admin.theme-dark .admin-brand-actions .admin-header-action-button:focus{
  background:var(--farbe-blau-dunkel)!important;
  color:var(--farbe-button-text)!important;
}

/* v46: Die kompakte Objekt-Auswahl bleibt trotz allgemeiner Button-Regeln lesbar. */
body.admin.theme-dark .layout-object-index-toggle{
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .layout-object-index-toggle strong,
body.admin.theme-dark .layout-object-index-toggle span{color:inherit!important}

/* v48: Verwaltungsnavigation und Layout-Vorschau verwenden identische Nacht-Basiswerte. */
body.theme-dark{
  --layout-admin-menu-background:#91cdf5;--layout-admin-menu-text:#363636;--layout-admin-menu-border:#52606c;
  --layout-admin-menu-hover:#a8d9f8;--layout-admin-menu-hover-text:#363636;--layout-admin-menu-active:#14749a;
  --layout-admin-menu-active-text:#fff;--layout-admin-menu-active-border:#8bd5f2;
  --layout-admin-category-background:#1d232b;--layout-admin-category-text:#fff;--layout-admin-category-border:#52606c;
  --layout-admin-category-hover:#29343e;--layout-admin-category-hover-text:#fff;--layout-admin-category-open:#232931;
  --layout-admin-category-open-text:#fff;--layout-admin-category-arrow:#fff;
  --layout-admin-page-icon:#5b6268;--layout-admin-page-icon-text:#fff;--layout-admin-page-category:#f4f7fa;--layout-admin-page-title:#b7ddf5;
}

/* v49: Selektor-Abgleich Verwaltungsmenü und Statistik – Nacht. */
body.theme-dark{
  --layout-admin-menu-background:#91cdf5;
  --layout-admin-menu-text:#363636;
  --layout-admin-menu-border:#52606c;
  --layout-admin-menu-hover:#a8d9f8;
  --layout-admin-menu-hover-text:#363636;
}
body.admin.theme-dark .admin-nav-submenu a,
body.admin.theme-dark .admin-mobile-category-panel .admin-mobile-category-links a,
body.admin.theme-dark .admin-mobile-category-links a{
  background:var(--layout-admin-menu-background,#91cdf5)!important;
  color:var(--layout-admin-menu-text,#363636)!important;
  border-color:var(--layout-admin-menu-border,#52606c)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.admin.theme-dark .admin-nav-submenu a:hover,
body.admin.theme-dark .admin-nav-submenu a:focus,
body.admin.theme-dark .admin-nav-submenu a:focus-visible,
body.admin.theme-dark .admin-mobile-category-links a:hover,
body.admin.theme-dark .admin-mobile-category-links a:focus,
body.admin.theme-dark .admin-mobile-category-links a:focus-visible{
  background:var(--layout-admin-menu-hover,#a8d9f8)!important;
  color:var(--layout-admin-menu-hover-text,#363636)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.admin.theme-dark .admin-nav-submenu a.active,
body.admin.theme-dark .admin-mobile-category-links a.active{
  background:var(--layout-admin-menu-active,#14749a)!important;
  color:var(--layout-admin-menu-active-text,#fff)!important;
  border-color:var(--layout-admin-menu-active-border,#8bd5f2)!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Der Statistik-Zeitraum und die zugehörigen Auswertungsflächen dürfen im Nachtlayout nie weiß bleiben. */
body.admin.theme-dark .stats-visitor-controls,
body.admin.theme-dark .stats-access-ranking,
body.admin.theme-dark .stats-chart,
body.admin.theme-dark .stats-geo-chart,
body.admin.theme-dark .stats-location-filter{
  background:#1d232b!important;
  color:#f4f4f4!important;
  border-color:#52606c!important;
}
body.admin.theme-dark .stats-visitor-controls :where(label,span,strong,p,small){color:#f4f4f4!important}
body.admin.theme-dark .stats-date-form input[type="date"],
body.admin.theme-dark .stats-date-form input,
body.admin.theme-dark .stats-date-form select{
  background:#111820!important;
  color:#f7f7f7!important;
  border-color:#71818d!important;
  -webkit-text-fill-color:currentColor!important;
  color-scheme:dark!important;
}
body.admin.theme-dark .stats-date-form button,
body.admin.theme-dark .stats-date-navigation .stats-arrow{
  background:#91cdf5!important;
  color:#111!important;
  border-color:#71818d!important;
}
/* v50 ADMIN-FARBPALETTE BEGIN */
body.theme-dark{
  --admin-bg-000:#100f0f;
  --admin-bg-050505:#111010;
  --admin-bg-0d151c:#263d51;
  --admin-bg-0d4f6c:#15465b;
  --admin-bg-101820:#283b4f;
  --admin-bg-111:#1a1919;
  --admin-bg-112331:#1e3e57;
  --admin-bg-121b24:#273b4f;
  --admin-bg-122635:#1e3e57;
  --admin-bg-14688c:#154459;
  --admin-bg-14749a:#154558;
  --admin-bg-163f25:#1e5632;
  --admin-bg-17212b:#293b4c;
  --admin-bg-172632:#253d50;
  --admin-bg-173049:#1b3957;
  --admin-bg-173622:#235233;
  --admin-bg-17382a:#22523e;
  --admin-bg-173b52:#194059;
  --admin-bg-1d5c80:#154059;
  --admin-bg-1e4b68:#193f57;
  --admin-bg-1f2a37:#2a384a;
  --admin-bg-1f5d83:#153f58;
  --admin-bg-202428:#272829;
  --admin-bg-242424:#292727;
  --admin-bg-243040:#293749;
  --admin-bg-244f6b:#1c3d53;
  --admin-bg-283744:#293a49;
  --admin-bg-2c2c2c:#2f2c2c;
  --admin-bg-2e1b1d:#4b2a2d;
  --admin-bg-2e3337:#2d2e2f;
  --admin-bg-2f6689:#1c3c50;
  --admin-bg-2f7b4a:#1e4f2f;
  --admin-bg-30353a:#2d2e2f;
  --admin-bg-321b1d:#4b292c;
  --admin-bg-32373b:#2d2e2f;
  --admin-bg-34383d:#2d2e2f;
  --admin-bg-343a40:#2d2e2f;
  --admin-bg-365470:#23374a;
  --admin-bg-3b4044:#2d2e2f;
  --admin-bg-3d4146:#2d2e2f;
  --admin-bg-461f22:#4f2326;
  --admin-bg-477093:#223647;
  --admin-bg-4b3b13:#5c4817;
  --admin-bg-4b535b:#2d2e2f;
  --admin-bg-4c1717:#581b1b;
  --admin-bg-4c3513:#5c4017;
  --admin-bg-527a9b:#243544;
  --admin-bg-5b6268:#2d2e2f;
  --admin-bg-5c6770:#2d2e2f;
  --admin-bg-7b4aa0:#362147;
  --admin-bg-8b1a1a:#581515;
  --admin-bg-999:#232121;
  --admin-bg-9b1c1c:#571414;
  --admin-bg-a51d2d:#57141c;
  --admin-bg-a60000:#581515;
  --admin-bg-c5162e:#55141d;
  --admin-bg-c9242f:#541418;
  --admin-bg-cee7f4:#103446;
  --admin-bg-d20f2f:#55141e;
  --admin-bg-d6b000:#554a14;
  --admin-bg-d7263d:#53131c;
  --admin-bg-dceaf2:#17303e;
  --admin-bg-dceff9:#103345;
  --admin-bg-ddd:#1e1c1c;
  --admin-bg-dfeaf1:#1a2e3b;
  --admin-bg-dfeaf2:#192d3d;
  --admin-bg-dff2e3:#193d20;
  --admin-bg-dff3e4:#173e21;
  --admin-bg-e5ebef:#1f2d36;
  --admin-bg-e6eaee:#1f2a36;
  --admin-bg-e6eef8:#122742;
  --admin-bg-e6f1fb:#102b44;
  --admin-bg-e6f6e9:#163e1e;
  --admin-bg-e7edf2:#1e2b37;
  --admin-bg-e7f0f6:#172e3d;
  --admin-bg-e7f1f5:#19323c;
  --admin-bg-e7f5ec:#193c25;
  --admin-bg-e8bf2d:#514413;
  --admin-bg-e8f0f5:#1a2e3b;
  --admin-bg-e8f6ee:#183c27;
  --admin-bg-e9eef2:#1e2c36;
  --admin-bg-eaf0f4:#1d2d37;
  --admin-bg-eaf4fd:#102b44;
  --admin-bg-edf1f4:#1e2c36;
  --admin-bg-edf3f7:#1a2d3a;
  --admin-bg-edf5f8:#17323c;
  --admin-bg-edf6fb:#103144;
  --admin-bg-edf7fd:#103043;
  --admin-bg-eee:#1d1b1b;
  --admin-bg-eef1f3:#1e2c36;
  --admin-bg-eef2f4:#1e2e36;
  --admin-bg-eef2f5:#1e2c36;
  --admin-bg-eef4f7:#1b2f39;
  --admin-bg-eef4f8:#182d3b;
  --admin-bg-eef5f8:#18313b;
  --admin-bg-eef5f9:#162f3e;
  --admin-bg-eef8fd:#103243;
  --admin-bg-eef9f0:#163e1d;
  --admin-bg-f1f5f8:#1c2c38;
  --admin-bg-f2f4f7:#1e2735;
  --admin-bg-f2f5f7:#1e2c35;
  --admin-bg-f3f7fa:#182c3b;
  --admin-bg-f4f0db:#413a14;
  --admin-bg-f4f6f8:#1e2a35;
  --admin-bg-f4f8fa:#1a2f39;
  --admin-bg-f7f9fa:#1e2d35;
  --admin-bg-f7fafc:#162d3c;
  --admin-bg-f8dddd:#451010;
  --admin-bg-f8fbfd:#122e40;
  --admin-bg-fafcfd:#172f3b;
  --admin-bg-fbfcfd:#1b2937;
  --admin-bg-fbfdff:#102942;
  --admin-bg-fde8e8:#441010;
  --admin-bg-fdecec:#431010;
  --admin-bg-fff:#1c1a1a;
  --admin-bg-fff0d8:#453010;
  --admin-bg-fff0f1:#431013;
  --admin-bg-fff1d6:#453310;
  --admin-bg-fff1f1:#431010;
  --admin-bg-fff4d6:#453710;
  --admin-bg-fff7f7:#431010;
  --admin-bg-fff8d5:#453c10;
  --admin-bg-rgba-0-0-0-07:rgba(0,0,0,0.07);
  --admin-bg-rgba-0-0-0-08:rgba(0,0,0,0.08);
  --admin-bg-rgba-0-0-0-18:rgba(0,0,0,0.18);
  --admin-bg-rgba-240-196-0-18:rgba(139,118,24,0.18);
  --admin-bg-rgba-255-255-255-06:rgba(255,255,255,0.06);
  --admin-bg-rgba-255-255-255-08:rgba(255,255,255,0.08);
  --admin-bg-rgba-255-255-255-45:rgba(255,255,255,0.45);
  --admin-bg-rgba-255-255-255-96:rgba(255,255,255,0.96);
  --admin-border-0d6f98:#2a8ab2;
  --admin-border-14688c:#2a89b2;
  --admin-border-1d5c80:#2a80b2;
  --admin-border-1f5d83:#2a7eb1;
  --admin-border-2b6f92:#3281a9;
  --admin-border-2f6689:#387aa3;
  --admin-border-2f7b4a:#3d9f5f;
  --admin-border-2f8b4c:#37a45a;
  --admin-border-4d7894:#4b7590;
  --admin-border-536779:#4f6f8c;
  --admin-border-536b7d:#4f728c;
  --admin-border-5b6268:#71818d;
  --admin-border-5f6972:#71818d;
  --admin-border-5f7c95:#4f708c;
  --admin-border-64748b:#4f688c;
  --admin-border-74484c:#8c4f55;
  --admin-border-777:#71818d;
  --admin-border-778894:#71818d;
  --admin-border-7890a0:#4f748c;
  --admin-border-7aa5bf:#477794;
  --admin-border-7b4aa0:#734596;
  --admin-border-7d93a4:#4f728c;
  --admin-border-888:#71818d;
  --admin-border-8bd5f2:#2a8bb2;
  --admin-border-8e1620:#b22a35;
  --admin-border-955d62:#8c4f54;
  --admin-border-995b61:#8c4f55;
  --admin-border-9db0bd:#4f738c;
  --admin-border-9eb5c5:#4f738c;
  --admin-border-9eb6c7:#4f738c;
  --admin-border-9fb7c6:#4f758c;
  --admin-border-a9c2da:#426f99;
  --admin-border-a9d7b4:#469659;
  --admin-border-aab7c1:#4f728c;
  --admin-border-aab8c2:#4f738c;
  --admin-border-aac1d2:#4c738f;
  --admin-border-aeb9c3:#4f6f8c;
  --admin-border-b9c5ce:#4f728c;
  --admin-border-b9c5cf:#4f708c;
  --admin-border-b9c8d3:#4f728c;
  --admin-border-b9c9d4:#4f738c;
  --admin-border-bcc7d1:#4f6f8c;
  --admin-border-bfcbd4:#4f728c;
  --admin-border-bfd1dd:#4c748f;
  --admin-border-c6d0d8:#4f718c;
  --admin-border-c6d1d9:#4f728c;
  --admin-border-c7d0d7:#4f718c;
  --admin-border-c7d1d9:#4f718c;
  --admin-border-c7d4dc:#4f758c;
  --admin-border-c82f3f:#b22a38;
  --admin-border-c8d2da:#4f718c;
  --admin-border-c9242f:#b22a33;
  --admin-border-c98787:#974444;
  --admin-border-c9d6df:#4f738c;
  --admin-border-cbd6de:#4f728c;
  --admin-border-ccc:#52606c;
  --admin-border-ccd4da:#4f728c;
  --admin-border-ccd6dd:#4f738c;
  --admin-border-ccd6df:#4f6f8c;
  --admin-border-ccd7df:#4f728c;
  --admin-border-ccd7e0:#4f718c;
  --admin-border-ccd8e0:#4f748c;
  --admin-border-cdd6dd:#4f718c;
  --admin-border-cf7e7e:#a03b3b;
  --admin-border-cfd8e0:#4f6f8c;
  --admin-border-d1d8de:#4f708c;
  --admin-border-d1dbe3:#4f718c;
  --admin-border-d2dde4:#4f748c;
  --admin-border-d3dce3:#4f718c;
  --admin-border-d4dbe0:#4f738c;
  --admin-border-d5dee5:#4f718c;
  --admin-border-d6b000:#b2992a;
  --admin-border-d6dee5:#4f708c;
  --admin-border-d6e0e7:#4f738c;
  --admin-border-d7dfe5:#4f728c;
  --admin-border-d7e0e6:#4f748c;
  --admin-border-d8e0e6:#4f728c;
  --admin-border-d8e1e8:#4f718c;
  --admin-border-d9b2b2:#934848;
  --admin-border-d9ca80:#a99533;
  --admin-border-e2a4a4:#a63535;
  --admin-border-e2b5b5:#9e3e3e;
  --admin-border-e7bc75:#b27e2a;
  --admin-border-e8bf2d:#b2942a;
  --admin-border-f0c400:#b2992a;
  --admin-border-ff0:#b2b22a;
  --admin-border-ff6b6b:#b22a2a;
  --admin-border-ffe600:#b2a42a;
  --admin-border-fff:#52606c;
  --admin-border-rgba-0-0-0-15:rgba(0,0,0,0.15);
  --admin-border-rgba-20-104-140-2:rgba(90,185,226,0.2);
  --admin-border-rgba-255-255-255-1:rgba(255,255,255,0.1);
  --admin-border-rgba-255-255-255-12:rgba(255,255,255,0.12);
  --admin-border-rgba-255-255-255-14:rgba(255,255,255,0.14);
  --admin-border-rgba-255-255-255-15:rgba(255,255,255,0.15);
  --admin-border-rgba-255-255-255-16:rgba(255,255,255,0.16);
  --admin-border-rgba-255-255-255-18:rgba(255,255,255,0.18);
  --admin-border-rgba-255-255-255-2:rgba(255,255,255,0.2);
  --admin-border-rgba-255-255-255-22:rgba(255,255,255,0.22);
  --admin-border-rgba-255-255-255-45:rgba(255,255,255,0.45);
  --admin-fg-10212d:#a5c7df;
  --admin-fg-111:#f4f7fa;
  --admin-fg-111827:#aab9da;
  --admin-fg-12334a:#9dc8e7;
  --admin-fg-14688c:#98d2eb;
  --admin-fg-15384f:#9ec9e5;
  --admin-fg-153b59:#9cc6e8;
  --admin-fg-163e58:#9dcae7;
  --admin-fg-164561:#9bcce8;
  --admin-fg-164f23:#9fe4af;
  --admin-fg-164f75:#98caeb;
  --admin-fg-17212b:#aec2d5;
  --admin-fg-173820:#a8dbb6;
  --admin-fg-173a50:#a0cae4;
  --admin-fg-173d56:#9ec9e5;
  --admin-fg-17612d:#9ce8b3;
  --admin-fg-1d5c80:#9bcce8;
  --admin-fg-214d69:#a2c9e2;
  --admin-fg-214f78:#9fc4e5;
  --admin-fg-222:#f4f7fa;
  --admin-fg-234c66:#a4c9e0;
  --admin-fg-244f69:#a4c9e0;
  --admin-fg-244f6b:#a3c8e0;
  --admin-fg-24516d:#a3c9e1;
  --admin-fg-2f6689:#a4c8e0;
  --admin-fg-31566b:#abc8d9;
  --admin-fg-31566e:#aac7d9;
  --admin-fg-334551:#aec6d5;
  --admin-fg-4b5963:#aec5d5;
  --admin-fg-4b5b67:#aec5d5;
  --admin-fg-526674:#aec5d5;
  --admin-fg-53616b:#aec5d5;
  --admin-fg-536b7a:#aec6d5;
  --admin-fg-5d6870:#f4f7fa;
  --admin-fg-63717a:#f4f7fa;
  --admin-fg-651c1c:#e49f9f;
  --admin-fg-65727a:#f4f7fa;
  --admin-fg-664900:#ebd498;
  --admin-fg-667:#f4f7fa;
  --admin-fg-66747e:#f4f7fa;
  --admin-fg-69580a:#ebdd98;
  --admin-fg-7a4700:#ebc998;
  --admin-fg-7b1717:#eb9898;
  --admin-fg-7b1723:#eb98a2;
  --admin-fg-8b1e1e:#e99a9a;
  --admin-fg-9b1c1c:#eb9898;
  --admin-fg-b01d27:#eb989e;
  --admin-fg-b4d3ea:#9fc7e4;
  --admin-fg-c8f5d2:#98ebab;
  --admin-fg-d6e5f1:#a4c5e0;
  --admin-fg-d8ecfb:#98c8eb;
  --admin-fg-e7f4ff:#98c5eb;
  --admin-fg-f1f5f9:#a9c2da;
  --admin-fg-f1f8ff:#98c2eb;
  --admin-fg-f4fff6:#98eba7;
  --admin-fg-f7f8f9:#aec2d5;
  --admin-fg-ffd0d0:#eb9898;
  --admin-fg-ffe5aa:#ebd298;
  --admin-fg-ffe600:#ebe398;
  --admin-fg-fff:#ffffff;
  --admin-fg-fff4cf:#ebd898;
  --admin-fg-fff4f4:#eb9898;
  --admin-misc-1f5d83:#318cc4;
  --admin-shadow-14688c:rgba(0,0,0,0.6);
  --admin-shadow-1d5c80:rgba(0,0,0,0.6);
  --admin-shadow-c9242f:rgba(0,0,0,0.6);
  --admin-shadow-e8bf2d:rgba(0,0,0,0.6);
  --admin-shadow-rgba-0-0-0-14:rgba(0,0,0,0.14);
  --admin-shadow-rgba-0-0-0-16:rgba(0,0,0,0.16);
  --admin-shadow-rgba-0-0-0-18:rgba(0,0,0,0.18);
  --admin-shadow-rgba-0-0-0-22:rgba(0,0,0,0.22);
  --admin-shadow-rgba-0-0-0-25:rgba(0,0,0,0.25);
  --admin-shadow-rgba-0-0-0-28:rgba(0,0,0,0.28);
  --admin-shadow-rgba-0-0-0-35:rgba(0,0,0,0.35);
  --admin-shadow-rgba-13-111-152-2:rgba(13,111,152,0.2);
  --admin-shadow-rgba-165-29-45-0:rgba(165,29,45,0);
  --admin-shadow-rgba-165-29-45-45:rgba(165,29,45,0.45);
  --admin-shadow-rgba-17-24-39-04:rgba(17,24,39,0.04);
  --admin-shadow-rgba-17-24-39-05:rgba(17,24,39,0.05);
  --admin-shadow-rgba-17-24-39-08:rgba(17,24,39,0.08);
  --admin-shadow-rgba-20-104-140-15:rgba(20,104,140,0.15);
  --admin-shadow-rgba-20-104-140-18:rgba(20,104,140,0.18);
  --admin-shadow-rgba-214-176-0-25:rgba(214,176,0,0.25);
  --admin-shadow-rgba-215-38-61-14:rgba(215,38,61,0.14);
  --admin-shadow-rgba-255-255-255-28:rgba(255,255,255,0.28);
  --admin-shadow-rgba-255-255-255-35:rgba(255,255,255,0.35);
  --admin-shadow-rgba-26-100-137-15:rgba(26,100,137,0.15);
  --admin-shadow-rgba-47-102-137-25:rgba(47,102,137,0.25);
}
/* v50 ADMIN-FARBPALETTE END */

/* v50: Kanonische Verwaltungsfarben – diese Regeln sind die letzte Theme-Instanz. */
body.admin.theme-dark .admin-nav-submenu a,
body.admin.theme-dark .admin-mobile-category-panel .admin-mobile-category-links a,
body.admin.theme-dark .admin-mobile-category-links a{
  background:var(--layout-admin-menu-background,#91cdf5)!important;
  color:var(--layout-admin-menu-text,#363636)!important;
  border-color:var(--layout-admin-menu-border,#52606c)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.admin.theme-dark .admin-nav-submenu a:hover,
body.admin.theme-dark .admin-nav-submenu a:focus,
body.admin.theme-dark .admin-nav-submenu a:focus-visible,
body.admin.theme-dark .admin-mobile-category-links a:hover,
body.admin.theme-dark .admin-mobile-category-links a:focus,
body.admin.theme-dark .admin-mobile-category-links a:focus-visible{
  background:var(--layout-admin-menu-hover,#a8d9f8)!important;
  color:var(--layout-admin-menu-hover-text,#363636)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.admin.theme-dark .stats-geo-center{
  background:var(--farbe-hell,#232931)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-left-color:var(--farbe-blau,#91cdf5)!important;
}
body.admin.theme-dark .admin-nav-submenu a.active,
body.admin.theme-dark .admin-mobile-category-links a.active{background:var(--layout-admin-menu-active,#14749a)!important;color:var(--layout-admin-menu-active-text,#ffffff)!important;border-color:var(--layout-admin-menu-active-border,#8bd5f2)!important;-webkit-text-fill-color:currentColor!important}

/* v51: KANONISCHE Verwaltungsmenü-Schaltflächen.
   Diese Regel ist absichtlich spezifischer als die allgemeinen Admin-Linkregeln.
   Damit ist --layout-admin-menu-* die einzige wirksame Farbquelle im echten Menü. */
body.admin.theme-dark .admin-category-bar .admin-category-nav .admin-nav-group .admin-nav-submenu a,
body.admin.theme-dark .admin-category-bar .admin-mobile-category-panel .admin-mobile-category-links a{
  background:var(--layout-admin-menu-background,#91cdf5)!important;
  color:var(--layout-admin-menu-text,#363636)!important;
  border-color:var(--layout-admin-menu-border,#52606c)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.admin.theme-dark .admin-category-bar .admin-category-nav .admin-nav-group .admin-nav-submenu a > span:not(.admin-notification-badge),
body.admin.theme-dark .admin-category-bar .admin-mobile-category-panel .admin-mobile-category-links a > span:not(.admin-notification-badge){
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
}
body.admin.theme-dark .admin-category-bar .admin-category-nav .admin-nav-group .admin-nav-submenu a:hover,
body.admin.theme-dark .admin-category-bar .admin-category-nav .admin-nav-group .admin-nav-submenu a:focus,
body.admin.theme-dark .admin-category-bar .admin-category-nav .admin-nav-group .admin-nav-submenu a:focus-visible,
body.admin.theme-dark .admin-category-bar .admin-mobile-category-panel .admin-mobile-category-links a:hover,
body.admin.theme-dark .admin-category-bar .admin-mobile-category-panel .admin-mobile-category-links a:focus,
body.admin.theme-dark .admin-category-bar .admin-mobile-category-panel .admin-mobile-category-links a:focus-visible{
  background:var(--layout-admin-menu-hover,#a8d9f8)!important;
  color:var(--layout-admin-menu-hover-text,#363636)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.admin.theme-dark .admin-category-bar .admin-category-nav .admin-nav-group .admin-nav-submenu a.active,
body.admin.theme-dark .admin-category-bar .admin-mobile-category-panel .admin-mobile-category-links a.active{
  background:var(--layout-admin-menu-active,#14749a)!important;
  color:var(--layout-admin-menu-active-text,#ffffff)!important;
  border-color:var(--layout-admin-menu-active-border,#8bd5f2)!important;
  -webkit-text-fill-color:currentColor!important;
}

/* v61: Chat und Plauderecke im Nacht-Design vollständig dunkel und kontrastreich. */
body.theme-dark :where(
  .active-chat-panel,
  .chat-message-frame,
  .chat-stream-box,
  .chat-stream-box .chat-message,
  .chat-composer,
  .recent-contact,
  .recent-contact-card,
  .person-card,
  .person-profile-panel,
  .available-chat-room,
  .chat-trash-box,
  .people-results .person-card
){
  background:#1d232b!important;
  color:#f4f7fa!important;
  border-color:#52606c!important;
}
body.theme-dark.chat-stream-body,
body.theme-dark .chat-stream-body{
  background:#16191d!important;
  color:#f4f7fa!important;
}
body.theme-dark .chat-stream-box{background:#16191d!important}
body.theme-dark .chat-stream-box .chat-message{background:#1d232b!important;box-shadow:0 0 0 1px #52606c}
body.theme-dark :where(.chat-message-content,.chat-message-content p,.chat-message-content small,.active-chat-head p,.recent-contact small,.person-card p,.available-chat-room p){color:#f4f7fa!important}
body.theme-dark :where(.community-main-tabs a,.open-chat-tabs a,.open-chat-tabs .open-chat-tab){background:#26313b!important;color:#fff!important;border-color:#52606c!important}
body.theme-dark :where(.community-main-tabs a.active,.open-chat-tabs a.active,.open-chat-tabs .open-chat-tab.active){background:#315a73!important;color:#fff!important;border-color:#91cdf5!important}
body.theme-dark .open-chat-tabs .open-chat-tab>a{color:#fff!important}
body.theme-dark .chat-composer textarea{background:#111820!important;color:#f7f7f7!important;border-color:#71818d!important}
body.theme-dark .emoji-row button{background:#232c35!important;color:#fff!important;border-color:#52606c!important}
body.theme-dark .recent-contact-delete button{background:#26313b!important;color:#ffb6bd!important;border-color:#657685!important}
body.theme-dark .recent-contact-delete button:hover,
body.theme-dark .recent-contact-delete button:focus{background:#3b252a!important;color:#fff!important}
body.theme-dark .chat-message-original{background:#232c35!important;color:#f4f7fa!important;border-left-color:#91cdf5!important}

/* v64: Kontakt-Antwortdialog ausschließlich im Layout „Nacht“ vollständig lesbar.
   Das eigentliche Vereins-E-Mail-Template in .contact-email-live-preview bleibt bewusst
   unverändert, damit die Vorschau weiterhin exakt die später versendete E-Mail zeigt. */
body.admin.theme-dark .contact-reply-dialog,
body.admin.theme-dark .contact-reply-dialog-head,
body.admin.theme-dark .contact-reply-meta,
body.admin.theme-dark .contact-reply-compose,
body.admin.theme-dark .contact-reply-preview-title,
body.admin.theme-dark .contact-reply-dialog-actions{
  background:var(--farbe-flaeche,#1d232b)!important;
  color:var(--farbe-text,#f4f4f4)!important;
  border-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .contact-reply-dialog-head{
  border-bottom-color:var(--farbe-linie,#52606c)!important;
}
body.admin.theme-dark .contact-reply-compose{
  background:var(--farbe-hell,#232931)!important;
}
body.admin.theme-dark .contact-reply-dialog-head :where(strong,small),
body.admin.theme-dark .contact-reply-meta label,
body.admin.theme-dark .contact-reply-compose :where(label,strong,span,p,small),
body.admin.theme-dark .contact-reply-preview-title :where(strong,small){
  color:var(--farbe-text,#f4f4f4)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.admin.theme-dark .contact-reply-meta :where(input,select,textarea),
body.admin.theme-dark .contact-reply-compose textarea{
  background:var(--farbe-input-bg,#111820)!important;
  color:var(--farbe-input-text,#f7f7f7)!important;
  -webkit-text-fill-color:var(--farbe-input-text,#f7f7f7)!important;
  border-color:var(--farbe-linie,#52606c)!important;
  caret-color:var(--farbe-input-text,#f7f7f7)!important;
}
body.admin.theme-dark .contact-reply-meta :where(input,textarea)::placeholder,
body.admin.theme-dark .contact-reply-compose textarea::placeholder{
  color:#cbd5df!important;
  -webkit-text-fill-color:#cbd5df!important;
  opacity:.82!important;
}
body.admin.theme-dark .contact-reply-translation-status{
  background:#202b34!important;
  color:var(--farbe-text,#f4f4f4)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.admin.theme-dark .contact-reply-translation-status.is-error{
  background:#3a2024!important;
  color:#ffd6da!important;
  -webkit-text-fill-color:currentColor!important;
}
body.admin.theme-dark .contact-reply-close{
  background:var(--farbe-blau,#91cdf5)!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}

/* v67: Nacht – Hilfe-Links und Notizen vollständig lesbar und einheitlich */
body.theme-dark .help-tour-list-entry,
body.theme-dark .help-tour-list-entry > span,
body.theme-dark .help-tour-list-entry .help-tour-list-icon{
  color:#f4f7fa!important;
}
body.theme-dark .help-tour-list-entry:hover,
body.theme-dark .help-tour-list-entry:focus,
body.theme-dark .help-tour-list-entry:hover > span,
body.theme-dark .help-tour-list-entry:focus > span{
  color:#fff!important;
}
body.theme-dark .help-tour-list-entry.active,
body.theme-dark .help-tour-list-entry.active > span,
body.theme-dark .help-tour-list-entry.active .help-tour-list-icon{
  color:#111!important;
}
body.admin.theme-dark .admin-page-notes,
body.admin.theme-dark .admin-page-notes-body,
body.admin.theme-dark .admin-built-in-hints,
body.admin.theme-dark .admin-collected-hints{
  background:#1d232b!important;
  color:#f4f7fa!important;
  border-color:#52606c!important;
}
body.admin.theme-dark .admin-page-notes > summary,
body.admin.theme-dark .admin-page-notes > summary strong,
body.admin.theme-dark .admin-page-notes > summary span,
body.admin.theme-dark .admin-built-in-hints h3,
body.admin.theme-dark .admin-built-in-hints li,
body.admin.theme-dark .admin-personal-note-info,
body.admin.theme-dark .admin-notes-version{
  color:#f4f7fa!important;
}
body.admin.theme-dark .admin-page-notes textarea{
  background:#111820!important;
  color:#f7f7f7!important;
  border-color:#71818d!important;
}
