/* Dark surfaces and dedicated seasonal image files from backgrounds/. */
html.home-layout[data-project-theme=dark] { --page-background: #070c11; color-scheme: dark; color: #e3eaf0; }
.home-layout[data-project-theme=dark] body.seasonal-background::before { background-image: var(--season-background-image); }
@media (pointer: coarse) {
  .home-layout[data-project-theme=dark] body.seasonal-background { background-color: var(--page-background); background-image: var(--season-background-image); background-size: auto 100vh; }
}
.home-layout[data-project-theme=dark] .site { --content-background: #19242e; color: #e3eaf0; }
.home-layout[data-project-theme=dark] .masthead { background-color: #364657; background-blend-mode: multiply; }
.home-layout[data-project-theme=dark] .share-button { background: #223544; border-color: #71889d; color: #e3eaf0; box-shadow: 0 3px 10px #0004; }
.home-layout[data-project-theme=dark] .share-button:is(:hover, :focus-visible) { background: #344e63; border-color: #9dccf4; color: #fff; box-shadow: 0 4px 14px #0005, 0 0 0 3px #9dccf41a; }
.home-layout[data-project-theme=dark] .share-button:active { background: #182a39; color: #fff; box-shadow: inset 0 1px 4px #0005; }
.home-layout[data-project-theme=dark] .share-button:focus-visible { outline-color: #9dccf4; }
.home-layout[data-project-theme=dark] :is(.navigation, .menu-panel, .station-search, .sidebar, .station-region, .station-favorites, .favorite-rows, .home-news-header, .news-card, .about-profile, .contact-card, .contact-search, .radar-extra, .share-dialog, .bot-container) { background: #202e3a; color: #e3eaf0; border-color: #435462; }
.home-layout[data-project-theme=dark] :is(.region-heading, .social-toolbar, .station-view-options, .region-sort-panel, .favorite-panel-heading, .home-news, .navigator-toolbar, .contact-toolbar, .editorial-heading, .overview-heading, .overview-block h2, .responsive-page h2.editorial-description) { background: #283a47; color: #e3eaf0; border-color: #435462; box-shadow: none; }
.home-layout[data-project-theme=dark] :is(.nav-trigger, .menu-tree a, .menu-tree summary, .menu-results a, .menu-label, .region-heading h3, .station-search-label, .portal-section-heading h2, .partner-intro h2, .home-news-header h2, .navigator-results a, .contact-card h2, .contact-card h3, .contact-card p, .imprint-heading, .imprint-legal, .imprint-legal h2, .imprint-legal h3, .about-profile, .radar-view, .lightning-view) { color: #e3eaf0; }
.home-layout[data-project-theme=dark] :is(.section-eyebrow, .weather-legend, .region-count, .station-search-status, .station-favorites-hint, .search-result-context, .region-map-credits, .news-date, .news-excerpt, .region-sort-note) { color: #b5c9bd; }
.home-layout[data-project-theme=dark] :is(.weather-legend, .station-search-field, .region-count, .nav-search, input, select, textarea, .station-view-button[aria-pressed=true], .favorite-station-heading, .news-actions, .news-comments, .radar-map figcaption, .radar-extra[open] summary, .radar-extra summary:hover) { background: #18252f; color: #e3eaf0; border-color: #526574; }
.home-layout[data-project-theme=dark] :is(#chat-input, #chat-send, .nav-search-voice, .nav-search-toggle, .nav-search-clear, .station-view-button, .region-sort-field, .favorite-panel-heading h3) { background: transparent; color: #e3eaf0; }
.home-layout[data-project-theme=dark] #chat-input::placeholder { color: #b5c3ce; }
.home-layout[data-project-theme=dark] :is(.station-search-help, .favorite-empty, .home-news-social, .news-comment, .news-comments-form, .contact-form, .contact-result) { background: #263643; color: #e3eaf0; border-color: #526574; }
.home-layout[data-project-theme=dark] :is(.menu-tree a:hover, .menu-tree summary:hover, .menu-results a:hover, .nav-trigger:hover, .navigator-results a:hover, .station-view-button:hover) { background: #374e5e; color: #fff; }
.home-layout[data-project-theme=dark] a:not(.nav-trigger):not(.station-link):not(.timelapse-button):not(.station-step):not(.timelapse-choice a) { color: #9dccf4; }
.home-layout[data-project-theme=dark] .station-navigation .station-step { background: #283a47; border-color: #435462; color: #e3eaf0; }
.home-layout[data-project-theme=dark] .station-navigation a.station-step:is(:hover, :focus-visible) { background: #344b5c; border-color: #7894a8; color: #fff; }
.home-layout[data-project-theme=dark] .station-navigation .station-step[aria-disabled=true] { background: #202e3a; border-color: #384955; color: #718493; }
.home-layout[data-project-theme=dark] .clock { background: #202e3a; border-color: #526574; }
.home-layout[data-project-theme=dark] .clock[data-project-theme-renderer=filter] { background: #fff; filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
.home-layout[data-project-theme=dark] .overview-social img { filter: brightness(0) invert(1); }
.home-layout[data-project-theme=dark] .overview-social a:is(:hover, :focus-visible) { background: #344b5c; }
.home-layout[data-project-theme=dark] .overview-social a:focus-visible { outline-color: #9dccf4; }
.home-layout[data-project-theme=dark] :is(.detail-panel > summary, .hero-toggle) { background: #283a47; border-color: #435462; color: #e3eaf0; }
.home-layout[data-project-theme=dark] :is(.detail-panel > summary, .hero-toggle):is(:hover, :focus-visible) { background: #344b5c; border-color: #7894a8; color: #fff; }
.home-layout[data-project-theme=dark] .detail-panel > summary::after { color: #e3eaf0; }
.home-layout[data-project-theme=dark] .radar-extra summary::after { border-color: #e3eaf0; }
html[data-weather-clock=true][data-project-theme=dark] #date-display { color: #bbcbd6; }
html[data-weather-clock=true][data-project-theme=dark] #time-display { color: #e3eaf0; }
.home-layout[data-project-theme=dark] :is(.home-grid, .partners, .station-row, .station-data, .favorite-rows) { border-color: #435462; }
.home-layout[data-project-theme=dark] .region-map-credits a { color: #b4d5c1; }
.home-layout[data-project-theme=dark] .station-search-help code { color: #a9d1f3; }
.home-layout[data-project-theme=dark] .share-dialog::backdrop { background: #071019b3; }
.home-layout[data-project-theme=dark] .consent-placeholder { background: #263643; color: #e3eaf0; }
.home-layout[data-project-theme=dark] :is(.imprint-operator, .editorial-contact, .contact-security, .radar-map, .lightning-card, .incidents-card) { background: #202e3a; color: #e3eaf0; border-color: #435462; }
.home-layout[data-project-theme=dark] :is(.contact-intro h2, .contact-intro p, .contact-fields label, .contact-optional, .contact-privacy, .contact-submit-row > span, .imprint-contact-status, .imprint-stations-heading, .radar-extra summary strong, .radar-extra summary small) { color: #c8d7e0; }
.home-layout[data-project-theme=dark] :is(.warning-card, .warning-image-status, .incident-controls, .incident-stat, .incident-map-card, .incident-list-card, .editorial-social, .cm-modal, .klaro .cookie-notice) { background: #202e3a; color: #e3eaf0; border-color: #435462; }
.home-layout[data-project-theme=dark] :is(.warning-intro p, .warning-provider, .warning-label, .warning-preview, .warning-section-title, .warning-credit, .incidents-view, .incidents-view h2, .incidents-view h3, .incident-status, .imprint-contact-search label, .page-impressum h2, .page-impressum h3, .news-card h2, .news-comments h2, .news-comments h3, .news-card-body, .news-content) { color: #e3eaf0; }
.home-layout[data-project-theme=dark] .page-impressum.overview-layout :is(h2, h3) { color: #e3eaf0; }
/* Legacy station text comes from independent origins and often has inline colors.
   Switch its presentation without replacing sources, fetching data or reloading.
   White source backgrounds blend into the dark row; black readings become white. */
.home-layout[data-project-theme=dark] :is(.station-row, .station-data) { background-color: #202e3a; isolation: isolate; }
.home-layout[data-project-theme=dark] .station-row iframe { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
/* Classic first-party embeds without a native theme switch (e.g. ranking widget). */
html[data-weather-theme-fallback=true][data-project-theme=dark] { color-scheme: dark; background: #202e3a; color: #e3eaf0; }
html[data-weather-theme-fallback=true][data-project-theme=dark] body { --bg: #202e3a; --bg-body: #202e3a; --text: #e3eaf0; --text-primary: #e3eaf0; --text-secondary: #b7c6d1; --input-bg: #283c4b; --border: #435462; --muted: #b7c6d1; --shadow: 3px 3px 9px #101b24, -3px -3px 9px #2c3e4b; --shadow-inset: inset 2px 2px 5px #101b24; background: #202e3a !important; color: #e3eaf0 !important; }
html[data-weather-theme-fallback=true][data-project-theme=dark] :is(table, tbody, tr, td, th, .panel, .card, .widget-container, .widget-content, header, .page, .chart-panel, .multi-item, .mode-switch) { background-color: #202e3a; color: #e3eaf0; border-color: #435462; }
html[data-weather-theme-fallback=true][data-project-theme=dark] :is(input, select, button) { background-color: #283c4b; color: #e3eaf0; border-color: #526574; }
html[data-weather-theme-fallback=true][data-project-theme=dark] a { color: #9dccf4; }
html[data-weather-theme-fallback=true][data-project-theme=dark] :is([bgcolor=white], [bgcolor="#ffffff"], [bgcolor="#FFFFFF"]) { background: #202e3a !important; }
html[data-weather-theme-fallback=true][data-project-theme=dark] :is(font[color=black], font[color="#000000"]) { color: #e3eaf0; }
html[data-weather-theme-fallback=true][data-project-theme=dark] :is(.panel-title, .nav-btn.active) { background: #283c4b; }
html[data-weather-theme-fallback=true][data-project-theme=dark] :is(h1, h2, label, .legend-item, .legend-label, .loading-indicator) { color: #e3eaf0; }
