/* Open Company Atlas: eigenes dunkles Schema (Stufe B, 05.12.2026). Greift NUR, wenn Geraet/Browser den Dunkelmodus melden.
   Ueberschreibt nur Werte (CSS-Variablen und gezielte Regeln); die bestehenden CSS-Dateien bleiben unveraendert. Karte: Kacheln bleiben hell.
   Rueckweg: Einbindung entfernen. Palette: Grund #0b1624, Kaesten #15283f (eine Stufe heller), Felder #0f2036, Schrift Creme #f3efe4/#e9e3d3, Akzent Gold #e6cd82. */
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root, .aw, body, body.jobs-welt, body.atlas-welt {
    --paper: #0b1624; --card: #15283f; --soft: #1b3250; --sky: rgba(243,239,228,.08); --tint: rgba(243,239,228,.10);
    --ink: #f3efe4; --text: #e9e3d3; --ink2: #ddd7c6; --muted: #b9c5d3; --line: rgba(243,239,228,.28);
    --gold: #d9b862; --gold-d: #e0c070; --gold-l: #e6cd82; --primary-h: #f0d58a;
    --k-text: #e9e3d3; --k-t1: #f3efe4; --k-muted: #b9c5d3; --k-linie: rgba(243,239,228,.28); --k-rand: rgba(243,239,228,.28); --k-f2h: #1b3250; --k-fokus: #e6cd82;
  }
  html:not(.x1):not(.x2) body { background: #0b1624; color: #e9e3d3; }
  /* Schrift */
  html:not(.x1):not(.x2) body :is(h1,h2,h3,h4,h5,h6,b,strong,th,dt,legend,label,p,li,td,dd,span,small,time,summary,code,div,figcaption,em,blockquote,i,button,a.knopf,a) { color: #e9e3d3 !important; }
  html:not(.x1):not(.x2) body :is(h1,h2,h3,h4,h5,h6,b,strong,th,dt,legend,.lead) { color: #f3efe4 !important; }
  html:not(.x1):not(.x2) body :is(.zl-meta,.zl-sub,.hinweis,.unter,.nv-satz,.kt-note,small) { color: #b9c5d3 !important; }
  html:not(.x1):not(.x2) body :is(.eyebrow,.auge,.zl-lbl,.kt-f label) { color: #e6cd82 !important; }
  html:not(.x1):not(.x2) body a { color: #e6cd82 !important; }
  html:not(.x1):not(.x2) body :is(header.aw-top, footer.fuss) :is(a,span,div,b,i,p,li) { color: #f3efe4 !important; }
  /* Kopf und Fuss: Navy bleibt, Goldlinie trennt vom dunkleren Grund; Menueknopf klar sichtbar */
  html:not(.x1):not(.x2) body header.aw-top { border-bottom: 1px solid rgba(201,165,74,.6); }
  html:not(.x1):not(.x2) body footer.fuss { border-top: 1px solid rgba(201,165,74,.45); }
  html:not(.x1):not(.x2) body .aw-burger { border: 2px solid #f3efe4; color: #f3efe4; background: rgba(243,239,228,.12); }
  /* Kaesten, Listen, Tabellen (vorher weiss) */
  html:not(.x1):not(.x2) body :is(a.chip,a.lst-land-k,div.aw-more-menu,div.fakt,div.jb-tog,div.kasten,div.lf-p,div.tabelle-rahmen,div.zl-grp,form.kt-bar,form.zl-search,li.aw-fact,li.fact,li.grp,li.job,p.notice,p.kt-note,p.warn-zeile,section.block,section.finder,section.panelcard,span.pill,table.merk,.steps > li,.zl-trust > div,.pager > a,.quick > a,.liste li > a,.activef li > a,.fields li > a,.zl-flat li > a) { background: #15283f; border-color: rgba(243,239,228,.28); }
  html:not(.x1):not(.x2) body :is(.beleg > dl,.near li > a,a.skip,a.sprung,div.ic,div.mono,span.zl-ic,section.kt-list) { background: #101f33; }
  html:not(.x1):not(.x2) body :is(th,code) { background: #1b3250; }
  html:not(.x1):not(.x2) body :is(li.tag,span.tag,.aw-more-menu > a) { background: rgba(243,239,228,.10); }
  html:not(.x1):not(.x2) body :is(li.tag,span.tag) { color: #e6cd82 !important; }
  /* Felder und Knoepfe */
  html:not(.x1):not(.x2) body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { background-color: #0f2036 !important; color: #f3efe4 !important; border-color: rgba(243,239,228,.6) !important; color-scheme: dark; }
  html:not(.x1):not(.x2) body select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f3efe4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px 8px !important; -webkit-appearance: none; appearance: none; padding-right: 34px; }
  html:not(.x1):not(.x2) body :is(input[type=checkbox],input[type=radio]) { accent-color: #e0c070; color-scheme: dark; }
  html:not(.x1):not(.x2) body :is(details,summary) { color-scheme: dark; }
  html:not(.x1):not(.x2) body :is(input,textarea)::placeholder { color: #a9b8c9; opacity: 1; }
  html:not(.x1):not(.x2) body select option { background: #0f2036; color: #f3efe4; }
  html:not(.x1):not(.x2) body :is(.jb-tog > a,.pager > b,button.kt-sw-b[aria-pressed="true"]) { background: #10263f; color: #f3efe4 !important; border: 1px solid #c9a54a; }
  html:not(.x1):not(.x2) body button.kt-sw-b:not([aria-pressed="true"]) { background: #15283f; color: #f3efe4 !important; box-shadow: inset 0 0 0 1px rgba(243,239,228,.6); }
  html:not(.x1):not(.x2) body button.kt-go { background: #e0c070; color: #10263f !important; border: 1px solid #e0c070; }
  html:not(.x1):not(.x2) body :is(a.btn-gold,a.knopf,a.chip.on,.jb-tog > a,.pager > b) { color: #f3efe4 !important; }
  /* Hauptknopf je Ansicht: gold gefuellt, Navy-Schrift (das Auffaelligste der Ansicht); Nebenknoepfe bleiben umrandet */
  html:not(.x1):not(.x2):not(.x3):not(.x4) body :is(a.btn-gold,button.go,button.knopf,button.lf-knopf,a.lf-knopf),
  html:not(.x1):not(.x2):not(.x3):not(.x4) body :is(a.btn-gold,button.go,button.knopf,button.lf-knopf,a.lf-knopf) :is(span,i,b,svg) { color: #10263f !important; }
  html:not(.x1):not(.x2):not(.x3):not(.x4) body :is(a.btn-gold,button.go,button.knopf,button.lf-knopf,a.lf-knopf) { background: #e0c070; border: 1px solid #e0c070; color: #10263f !important; font-weight: 600; }
  html:not(.x1):not(.x2) body :is(a.knopf.hell,a.lf-sek-knopf,button.lf-sek-knopf) { background: transparent; border: 1px solid rgba(243,239,228,.6); color: #f3efe4 !important; }
  /* Kopfzeile "Company profile"-Link: kein eigener Hintergrund (ueberdeckte die Zeile darueber) */
  html:not(.x1):not(.x2) body .sp-kopf p > a { background: transparent; }
  /* Karte: Rahmen, Leiste und Liste dunkel, Kacheln und Bedienelemente der Karte bleiben hell */
  html:not(.x1):not(.x2) body .kt-map, html:not(.x1):not(.x2) body .kt-map :is(a,div,span,button,b) { color: #243a52 !important; }
  html:not(.x1):not(.x2) body .kt-map .kt-c { color: #fff !important; }
  html:not(.x1):not(.x2) body .kt-map .leaflet-bar a, html:not(.x1):not(.x2) body .kt-map .maplibregl-ctrl button { background: #fff; color: #243a52 !important; }
  html:not(.x1):not(.x2) body .kt-map .leaflet-control-attribution, html:not(.x1):not(.x2) body .kt-map .maplibregl-ctrl-attribution { background: rgba(255,255,255,.88); }
  html:not(.x1):not(.x2) body .kt-map a { color: #7d5f17 !important; }
}
/* Restliste 05.12.2026 (1): Abschnittsflaechen "Open positions", "Fresh from company websites": kein Band, Seitengrund; die Karten darin behalten ihre Flaeche */
@media (prefers-color-scheme: dark) {
  html:not(.x1):not(.x2) body section.block { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
  html:not(.x1):not(.x2) body .kt-sw .kt-sw-b[aria-pressed="true"] { border: 2px solid #c9a54a; }
  html:not(.x1):not(.x2) body .kt-sw .kt-sw-b:not([aria-pressed="true"]) { border: 2px solid rgba(243,239,228,.6); box-shadow: none; }
}
