/* HRRS Dark Mode.
   Wird nur zugeschaltet, wenn der Dark Mode aktiv ist. */

/* === Basis === */

html[data-theme="dark"] {
    --site-bg: #0f1620;
    --site-bg-soft: #111b26;
    --site-ink: #dde9f4;
    --site-muted: #9db2c3;
    --site-primary: #2f93a6;
    --site-primary-dark: #78c4d1;
    --site-border: #2a3d50;
    --site-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] body.layout-modern {
    background: #101820;
    color: var(--site-ink);
}

html[data-theme="dark"] body.layout-modern a {
    color: #9ed5df;
}

html[data-theme="dark"] body.layout-modern a:hover,
html[data-theme="dark"] body.layout-modern a:focus {
    color: #c7e8ee;
}

html[data-theme="dark"] .site-navbar .dropdown-menu,
html[data-theme="dark"] .navbar-inverse.site-navbar .dropdown-menu {
    background: #1a2836;
    border-color: #315166;
}

html[data-theme="dark"] .site-navbar .dropdown-menu > li > a,
html[data-theme="dark"] .navbar-inverse.site-navbar .dropdown-menu > li > a {
    color: #d9e7f1;
}

html[data-theme="dark"] .site-navbar .dropdown-menu > li > a:hover,
html[data-theme="dark"] .site-navbar .dropdown-menu > li > a:focus,
html[data-theme="dark"] .navbar-inverse.site-navbar .dropdown-menu > li > a:hover {
    background-color: #24394d;
    color: #ffffff;
}

html[data-theme="dark"] .site-navbar .dropdown-menu .divider,
html[data-theme="dark"] .navbar-inverse.site-navbar .dropdown-menu .divider {
    background-color: #345063;
}

html[data-theme="dark"] .content-surface,
html[data-theme="dark"] .sidenav,
html[data-theme="dark"] .seitenleiste,
html[data-theme="dark"] .home-current-stack,
html[data-theme="dark"] #inhalt_start section {
    background: #162330;
    border-color: var(--site-border);
    color: var(--site-ink);
    box-shadow: var(--site-shadow);
}

html[data-theme="dark"] #inhalt_start .home-current-stack > section {
    background: transparent;
    border: 0;
    box-shadow: none;
}

html[data-theme="dark"] .home-current-issue-actions a {
    background: #162330;
    border-color: #3f9dad;
    color: #d9edf2;
}

html[data-theme="dark"] .home-current-issue-actions a:hover,
html[data-theme="dark"] .home-current-issue-actions a:focus {
    background: #1d3040;
    color: #ffffff;
}

html[data-theme="dark"] .home-current-issue-image {
    border-color: #33495a;
}

html[data-theme="dark"] .home-current-issue-editorial {
    border-top-color: #33495a;
}

html[data-theme="dark"] .content-surface .issue-header {
    background: #0b4654;
}

html[data-theme="dark"] .content-surface .issue-header-pdf {
    border-color: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .content-surface .issue-heading-with-action,
html[data-theme="dark"] #inhalt_ausgabe .issue-heading-with-action,
html[data-theme="dark"] #inhalt_ausgabe_vollst .issue-heading-with-action {
    background: transparent !important;
}

html[data-theme="dark"] .content-surface .issue-heading-with-action h3,
html[data-theme="dark"] #inhalt_ausgabe .issue-heading-with-action h3,
html[data-theme="dark"] #inhalt_ausgabe_vollst .issue-heading-with-action h3 {
    background: transparent !important;
    border-left-color: #526674;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .help-block {
    color: var(--site-muted) !important;
}

html[data-theme="dark"] .home-rail .seitenleiste,
html[data-theme="dark"] #inhalt_start section {
    background: #162330;
    border: 1px solid var(--site-border);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .breadcrumb {
    background: #162330;
    border-color: var(--site-border);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .breadcrumb > li {
    background: #162330;
    color: #e8f0f6;
}

html[data-theme="dark"] .breadcrumb > .active,
html[data-theme="dark"] .breadcrumb > li:last-child {
    background: #162330;
    color: #e8f0f6;
}

html[data-theme="dark"] .breadcrumb > li > a {
    color: #e8f0f6;
}

html[data-theme="dark"] .breadcrumb > li > a:hover,
html[data-theme="dark"] .breadcrumb > li > a:focus {
    color: #ffffff;
}

html[data-theme="dark"] .sidebar .nav > li > a {
    color: #d4e2ed;
}

html[data-theme="dark"] .sidebar .nav > li > a:hover,
html[data-theme="dark"] .sidebar .nav > li > a:focus {
    background-color: #223445;
}

html[data-theme="dark"] body:is(.section-ueber, .section-archiv, .section-entscheidungen, .section-rechtsprechung, .section-newsletter) .sidebar .nav > li > a {
    border-bottom-color: var(--site-border);
    background: transparent;
    color: #d4e2ed;
}

html[data-theme="dark"] body:is(.section-ueber, .section-archiv, .section-entscheidungen, .section-rechtsprechung, .section-newsletter) .sidebar .nav > li > a:hover,
html[data-theme="dark"] body:is(.section-ueber, .section-archiv, .section-entscheidungen, .section-rechtsprechung, .section-newsletter) .sidebar .nav > li > a:focus,
html[data-theme="dark"] body:is(.section-ueber, .section-archiv, .section-entscheidungen, .section-rechtsprechung, .section-newsletter) .site-sidebar .nav > li.active > a,
html[data-theme="dark"] body:is(.section-ueber, .section-archiv, .section-entscheidungen, .section-rechtsprechung, .section-newsletter) .site-sidebar .nav > li.active > a:hover,
html[data-theme="dark"] body:is(.section-ueber, .section-archiv, .section-entscheidungen, .section-rechtsprechung, .section-newsletter) .site-sidebar .nav > li.active > a:focus {
    background: transparent;
    color: #9ed5df;
}

html[data-theme="dark"] body:is(.section-ueber, .section-archiv, .section-entscheidungen, .section-rechtsprechung, .section-newsletter) .sidebar .nav .nav > li > a {
    color: var(--site-muted);
}

html[data-theme="dark"] #front_leiste h3 {
    color: #dce8f2;
}

html[data-theme="dark"] #front_leiste form {
    background: #1b2936;
    border-color: #33485c;
}

html[data-theme="dark"] .decision-selection-toolbar {
    background: #162330;
    border-color: #33485c;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .decision-selection-toolbar button {
    background: #162330;
    border-color: #33485c;
    color: #d9edf2;
}

html[data-theme="dark"] .decision-selection-toolbar button:hover,
html[data-theme="dark"] .decision-selection-toolbar button:focus {
    background: #1d3040;
    color: #ffffff;
}

html[data-theme="dark"] .decision-selection-toolbar button i {
    color: #9ed5df;
}

html[data-theme="dark"] .decision-selection-toolbar .selection-toolbar-close {
    background: #162330;
    border-color: #506474;
}

html[data-theme="dark"] .decision-selection-toolbar .selection-toolbar-close i {
    color: #aebdca;
}

html[data-theme="dark"] .decision-selection-toolbar .selection-toolbar-close:hover,
html[data-theme="dark"] .decision-selection-toolbar .selection-toolbar-close:focus {
    background: #1d3040;
    border-color: #3f9dad;
}

html[data-theme="dark"] .content-surface a.issue-decision-card {
    background: transparent;
    border-color: transparent;
    color: #d9edf2;
    box-shadow: none;
}

html[data-theme="dark"] .content-surface a.issue-decision-card .issue-decision-icon {
    background: #263746;
    border-color: #506474;
    color: #9ed5df;
}

html[data-theme="dark"] .content-surface a.issue-decision-card .issue-decision-kicker {
    color: #aebdca;
}

html[data-theme="dark"] .content-surface a.issue-decision-card .issue-decision-label {
    color: #aebdca;
}

html[data-theme="dark"] .content-surface a.issue-decision-card:hover,
html[data-theme="dark"] .content-surface a.issue-decision-card:focus {
    background: transparent;
    color: #ffffff;
}

html[data-theme="dark"] .content-surface a.issue-decision-card:hover .issue-decision-icon,
html[data-theme="dark"] .content-surface a.issue-decision-card:focus .issue-decision-icon {
    background: #1d3040;
    border-color: #3f9dad;
}

html[data-theme="dark"] .archive-hub-card,
html[data-theme="dark"] .monograph-card {
    background: var(--surface, #161b20);
    border-color: var(--site-border, #2d3840);
}

html[data-theme="dark"] #inhalt_start section h2 {
    border-bottom-color: #314557;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background: #101923;
    border-color: #40566b;
    color: #dde9f4;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #88a0b2;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    border-color: #4ea7b6;
    box-shadow: 0 0 0 2px rgba(78, 167, 182, 0.22);
}

html[data-theme="dark"] .form-check-input {
    background-color: #101923;
    border-color: #40566b;
}

html[data-theme="dark"] .form-check-input:checked {
    background-color: #4ea7b6;
    border-color: #4ea7b6;
}

html[data-theme="dark"] .form-check-input:focus {
    border-color: #4ea7b6;
    box-shadow: 0 0 0 0.16rem rgba(78, 167, 182, 0.22);
}

html[data-theme="dark"] .form-check-input[type="radio"]:checked {
    background-color: #101923;
    border-color: #4ea7b6;
}

html[data-theme="dark"] .form-check-input[type="radio"]:checked::after {
    background: #4ea7b6;
}

html[data-theme="dark"] .site-footer {
    background: linear-gradient(120deg, #0b131c 0%, #111c29 100%);
}

html[data-theme="dark"] .site-share-button {
    border-color: rgba(213, 229, 245, 0.22);
}

html[data-theme="dark"] .site-share-button:hover,
html[data-theme="dark"] .site-share-button:focus {
    background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .tooltip.site-tooltip {
    --bs-tooltip-bg: #162330;
    --bs-tooltip-color: #dce8f2;
    --site-tooltip-border: #3b6078;
}

html[data-theme="dark"] .tooltip.site-tooltip .tooltip-inner {
    border-color: #3b6078;
}

html[data-theme="dark"] .tooltip.site-tooltip .site-tooltip-title {
    background: #1f6f88;
}

html[data-theme="dark"] .tooltip.site-tooltip .site-tooltip-body {
    color: #dce8f2;
}

html[data-theme="dark"] .newsletter-action-button {
    border-color: #456078;
    background-color: #1b2936;
    color: #dce8f2;
}

html[data-theme="dark"] .newsletter-action-button:hover,
html[data-theme="dark"] .newsletter-action-button:focus {
    border-color: #4ea7b6;
    background-color: #223748;
    color: #ffffff;
}

html[data-theme="dark"] .newsletter-consent .form-check-label {
    color: #dce8f2;
}

html[data-theme="dark"] .search-term-highlight {
    background: #7b5f17;
    color: #fffdf4;
}

/* === Suche === */

html[data-theme="dark"] .meili-search-page a.search-hit-decision-link {
    color: #d9edf2;
}

html[data-theme="dark"] .meili-search-page .search-hit-decision-icon {
    background: #263746;
    border-color: #506474;
    color: #9ed5df;
}

html[data-theme="dark"] .meili-search-page .search-hit-hrrs-number {
    color: #aebdca;
}

html[data-theme="dark"] .meili-search-page a.search-hit-decision-link:hover,
html[data-theme="dark"] .meili-search-page a.search-hit-decision-link:focus {
    color: #ffffff;
}

html[data-theme="dark"] .meili-search-page a.search-hit-decision-link:hover .search-hit-decision-icon,
html[data-theme="dark"] .meili-search-page a.search-hit-decision-link:focus .search-hit-decision-icon {
    background: #1d3040;
    border-color: #3f9dad;
}

html[data-theme="dark"] .meili-search-page a.search-hit-article-link {
    color: #d9edf2;
}

html[data-theme="dark"] .meili-search-page .search-hit-article-icon {
    background: #263746;
    border-color: #506474;
    color: #9ed5df;
}

html[data-theme="dark"] .meili-search-page a.search-hit-article-link:hover,
html[data-theme="dark"] .meili-search-page a.search-hit-article-link:focus {
    color: #ffffff;
}

html[data-theme="dark"] .meili-search-page a.search-hit-article-link:hover .search-hit-article-icon,
html[data-theme="dark"] .meili-search-page a.search-hit-article-link:focus .search-hit-article-icon {
    background: #1d3040;
    border-color: #3f9dad;
}

html[data-theme="dark"] .meili-search-page .form-select option {
    background: #101923;
    color: #dde9f4;
}

html[data-theme="dark"] body.meili-search-page {
    background:
        radial-gradient(circle at 8% 0%, rgba(45, 160, 179, 0.12), transparent 38%),
        radial-gradient(circle at 90% 0%, rgba(195, 155, 67, 0.12), transparent 42%),
        #0f1620;
    color: var(--site-ink);
}

html[data-theme="dark"] .meili-search-page .search-shell,
html[data-theme="dark"] .meili-search-page .search-form-card,
html[data-theme="dark"] .meili-search-page .card {
    background: #162330;
    border-color: var(--site-border);
    color: var(--site-ink);
}

html[data-theme="dark"] .meili-search-page .search-title {
    color: #dce8f2;
}

html[data-theme="dark"] .meili-search-page .nav-tabs {
    border-bottom-color: #3a4f63;
}

html[data-theme="dark"] .meili-search-page .nav-tabs .nav-link {
    color: #b7c9d8;
}

html[data-theme="dark"] .meili-search-page .nav-tabs .nav-link.active {
    background: #1f3141;
    color: #e8f1f8;
    border-color: #3a4f63 #3a4f63 #1f3141;
}

html[data-theme="dark"] .meili-search-page .search-suggest-menu {
    background: #1a2836;
    border: 1px solid #335166;
}

html[data-theme="dark"] .meili-search-page .search-suggest-menu .dropdown-item {
    color: #dce8f2;
}

html[data-theme="dark"] .meili-search-page .search-suggest-menu .dropdown-item:hover,
html[data-theme="dark"] .meili-search-page .search-suggest-menu .dropdown-item:focus,
html[data-theme="dark"] .meili-search-page .search-suggest-menu .dropdown-item.active {
    background: #243a4d;
    color: #ffffff;
}

html[data-theme="dark"] .meili-search-page .page-link {
    background: #1b2a38;
    border-color: #364f66;
    color: #dce8f2;
}

html[data-theme="dark"] .meili-search-page .page-link:hover,
html[data-theme="dark"] .meili-search-page .page-link:focus {
    background: #243a4d;
    color: #ffffff;
}

html[data-theme="dark"] .meili-search-page .page-item.active .page-link {
    background: #1f7d8d;
    border-color: #1f7d8d;
    color: #ffffff;
}

html[data-theme="dark"] .meili-search-page .hit mark {
    background: #7b5f17;
    color: #fffdf4;
}
