.theme-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; cursor: pointer; color: var(--ci-muted); white-space: nowrap; }
.theme-toggle .form-check-input { margin: 0; float: none; width: 38px; height: 22px; cursor: pointer; }
.theme-toggle .form-check-input:checked { background-color: #285c46; border-color: #285c46; }
[data-theme=dark] {
  color-scheme: dark;
  --ci-brand: #15191d;
  --ci-brand-raised: #29332f;
  --ci-canvas: #14171b;
  --ci-surface: #1e2227;
  --ci-section: #191d22;
  --ci-section-alt: #20242a;
  --ci-soft: #2a3037;
  --ci-text: #edf0f3;
  --ci-muted: #bcc3cb;
  --ci-placeholder: #a8b1bc;
  --ci-border: #424a54;
  --ci-success: #a9d9bc;
  --ci-success-soft: #233d2e;
  --ci-warning: #f0cf85;
  --ci-warning-soft: #3c3220;
  --ci-danger: #f2b6ac;
  --ci-danger-soft: #402923;
  --dark-link: #b9dda7;
  --bs-body-color: var(--ci-text);
  --bs-body-bg: var(--ci-canvas);
  --bs-secondary-color: var(--ci-muted);
  --bs-border-color: var(--ci-border);
}
[data-theme=dark] .search-field input,
[data-theme=dark] .join-address,
[data-theme=dark] .results-heading select { background: transparent; color: var(--ci-text); }
[data-theme=dark] .join-address { background: var(--ci-surface); border-color: var(--ci-border); }
[data-theme=dark] .stat-icon,
[data-theme=dark] .map-pin,
[data-theme=dark] .search-icon,
[data-theme=dark] .modal-server-maps .fa-map,
[data-theme=dark] .server-info-line,
[data-theme=dark] .upcoming-server-icon,
[data-theme=dark] .server-rules li::before,
[data-theme=dark] .landing-section#serverregeln .server-rules li::before,
[data-theme=dark] .section-icon,
[data-theme=dark] .map-picker-option[aria-selected=true],
[data-theme=dark] .map-picker-option > i,
[data-theme=dark] .map-picker-option:hover,
[data-theme=dark] .map-picker-trigger > i,
[data-theme=dark] .btn-close,
[data-theme=dark] .legal-modal a,
[data-theme=dark] .join-help a,
[data-theme=dark] .community-button,
[data-theme=dark] .btn-light,
[data-theme=dark] .footer-menu-link:hover,
[data-theme=dark] .footer-legal button:hover,
[data-theme=dark] .stats-inner > .live-badge { color: var(--dark-link); }
[data-theme=dark] .live-badge[data-state=warning] { color: var(--ci-warning); }
[data-theme=dark] .live-badge[data-state=stale] { color: var(--ci-muted); }
[data-theme=dark] .map-label { color: var(--ci-text); background: var(--ci-surface); border-color: var(--ci-border); }
[data-theme=dark] .hero::before { opacity: .16; }
[data-theme=dark] .hero, [data-theme=dark] .stats-strip, [data-theme=dark] .modal-header, [data-theme=dark] .modal-footer { border-color: var(--ci-border); }
[data-theme=dark] .join-rules-notice { color: #f5cdc5; border-color: #795047; border-left-color: var(--ci-danger); }
[data-theme=dark] .join-rules-notice .join-rules-link:hover { color: #ffe3dd; }
[data-theme=dark] .form-check-input:not(:checked) { background-color: #56606c; border-color: #87919e; }
[data-theme=dark] :is(button,a,input,select,textarea):focus-visible { outline-color: var(--ci-accent) !important; }
[data-theme=dark] .server-card:hover { border-color: #748d7d; }
[data-theme=dark] .openomsi-heading img { background: #fff; border-radius: 8px; padding: 8px; }
[data-theme=dark] .server-avatar { color: #fff; }
[data-theme=dark] .server-info-line { border-color: var(--ci-border); }
[data-theme=dark] .status-dot, [data-theme=dark] .capacity > span { background: var(--ci-success); }
[data-theme=dark] .unknown .status-dot { background: var(--ci-warning); }
[data-theme=dark] .offline .status-dot, [data-theme=dark] .demo .status-dot { background: var(--ci-placeholder); }
[data-theme=dark] .server-contact-copy p, [data-theme=dark] .server-contact-action small { color: var(--ci-muted); }
[data-theme=dark] .server-contact-section::after { opacity: .35; }
.footer-legal { align-items: center; flex-wrap: wrap; }
.footer-legal .theme-toggle { font-size: 13px; margin-right: 12px; }
@media(max-width:767px) { .footer-legal { gap: 8px 16px; } .footer-legal .theme-toggle { margin-right: 0; } }
