/* AgoraNET global color scheme v001 — 05.11.2026.
   Requires body.agora-theme and the single global controller's
   html[data-agora-theme="light|dark"]. No image inversion or admin-bar styling.
   Inventory: layout-inventar.json, seven public pages supplied by the owner.
   Remove the Plenum probe's separate :root palette/controller before combining. */
:root {
  color-scheme:light;
  --agora-canvas:#ffffff; --agora-surface:#ffffff; --agora-surface-alt:#eaf4f5; --agora-soft:#f7fafb;
  --agora-text:#183c43; --agora-heading:#0b4650; --agora-muted:#45636a;
  --agora-link:#0b4650; --agora-link-hover:#07353c; --agora-visited:#665080;
  --agora-primary:#12626e; --agora-primary-text:#ffffff; --agora-primary-hover:#0b4650;
  --agora-hero:#12626e; --agora-hero-text:#ffffff; --agora-kicker:#ffe0a0;
  --agora-accent:#f2a634; --agora-accent-text:#173c44;
  --agora-notice:#fff6e6; --agora-notice-text:#6b480b;
  --agora-border:#c6dadd; --agora-control-border:#6f8589; --agora-focus:#0b4650;
  --agora-error:#9a2424; --agora-error-bg:#fff1f0;
  --agora-disabled:#586d73; --agora-disabled-bg:#e2e9eb;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-agora-theme="light"]):not([data-agora-theme="dark"]) {
    color-scheme:dark;
    --agora-canvas:#0b1b22; --agora-surface:#132b33; --agora-surface-alt:#1b3841; --agora-soft:#132b33;
    --agora-text:#eaf4f5; --agora-heading:#ffffff; --agora-muted:#b5cbd0;
    --agora-link:#80e3d9; --agora-link-hover:#b4f4ed; --agora-visited:#d3b6f4;
    --agora-primary:#80e3d9; --agora-primary-text:#0b1b22; --agora-primary-hover:#b4f4ed;
    --agora-hero:#123f49; --agora-hero-text:#ffffff; --agora-kicker:#f2c76b;
    --agora-accent:#f2c76b; --agora-accent-text:#173c44;
    --agora-notice:#342c1d; --agora-notice-text:#f4d69a;
    --agora-border:#34535d; --agora-control-border:#719297; --agora-focus:#f2c76b;
    --agora-error:#ffb4ab; --agora-error-bg:#422626;
    --agora-disabled:#a9bcc0; --agora-disabled-bg:#253b44;
  }
}
:root[data-agora-theme="dark"] {
  color-scheme:dark;
  --agora-canvas:#0b1b22; --agora-surface:#132b33; --agora-surface-alt:#1b3841; --agora-soft:#132b33;
  --agora-text:#eaf4f5; --agora-heading:#ffffff; --agora-muted:#b5cbd0;
  --agora-link:#80e3d9; --agora-link-hover:#b4f4ed; --agora-visited:#d3b6f4;
  --agora-primary:#80e3d9; --agora-primary-text:#0b1b22; --agora-primary-hover:#b4f4ed;
  --agora-hero:#123f49; --agora-hero-text:#ffffff; --agora-kicker:#f2c76b;
  --agora-accent:#f2c76b; --agora-accent-text:#173c44;
  --agora-notice:#342c1d; --agora-notice-text:#f4d69a;
  --agora-border:#34535d; --agora-control-border:#719297; --agora-focus:#f2c76b;
  --agora-error:#ffb4ab; --agora-error-bg:#422626;
  --agora-disabled:#a9bcc0; --agora-disabled-bg:#253b44;
}

/* Actual global shells, including the outer custom layout header and footer. */
html body.agora-theme,
html body.agora-theme :is(#boxed-wrapper,#wrapper,#main,#content,.fusion-tb-header,.fusion-tb-footer,.fusion-footer,.fusion-header-wrapper,.fusion-header,.fusion-secondary-header,.fusion-secondary-main-menu,.fusion-footer-widget-area,.fusion-footer-copyright-area,.fusion-page-title-bar) {
  background-color:var(--agora-canvas)!important; color:var(--agora-text)!important;
}
html body.agora-theme #main .post-content { color:var(--agora-text)!important; }
/* The two legal pages have neutral Avada builder wrappers, not colored cards. */
html body.agora-theme :is(#post-1027,#post-1043) :is(.fusion-fullwidth,.fusion-builder-row,.fusion-layout-column,.fusion-column-wrapper) { background-color:transparent!important; color:var(--agora-text)!important; }
html body.agora-theme #main :is(h1,h2,h3,h4,h5,h6) { color:var(--agora-heading)!important; }
html body.agora-theme #main :is(.fusion-title,.fusion-text) { color:var(--agora-text); }
html body.agora-theme :is(.fusion-tb-footer,.fusion-footer-widget-area,.fusion-footer-copyright-area,.fusion-page-title-bar) :is(h1,h2,h3,h4,h5,h6,.widget-title) { color:var(--agora-heading)!important; }
html body.agora-theme :is(.fusion-tb-footer,.fusion-footer-widget-area,.fusion-copyright-notice) :is(p,li,span) { color:inherit; }
html body.agora-theme :is(.fusion-main-menu .sub-menu,.fusion-mobile-nav-holder>ul,.awb-menu__sub-ul,.fusion-modal .modal-content) { background-color:var(--agora-surface)!important; color:var(--agora-text)!important; border-color:var(--agora-border)!important; }
html body.agora-theme :is(#main,.fusion-tb-footer,.fusion-footer-widget-area,.fusion-footer-copyright-area,.fusion-page-title-bar) a { color:var(--agora-link)!important; }
html body.agora-theme :is(#main,.fusion-tb-footer,.fusion-footer-widget-area,.fusion-footer-copyright-area,.fusion-page-title-bar) a:visited { color:var(--agora-visited)!important; }
html body.agora-theme :is(#main,.fusion-tb-footer,.fusion-footer-widget-area,.fusion-footer-copyright-area,.fusion-page-title-bar) a:hover { color:var(--agora-link-hover)!important; text-decoration:underline; text-underline-offset:.2em; }
html body.agora-theme :is(#main,.fusion-tb-header,.fusion-tb-footer,.fusion-header-wrapper,.fusion-mobile-nav-holder,.agn-color-control) :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--agora-focus)!important; outline-offset:3px!important; box-shadow:0 0 0 3px var(--agora-canvas)!important;
}

/* Existing custom header. No display override on nav/toggle: retain menu JS. */
html body.agora-theme .agn-site-header { background:var(--agora-surface)!important; color:var(--agora-text)!important; border-color:var(--agora-border)!important; }
html body.agora-theme .agn-site-header__inner { background-color:transparent!important; color:var(--agora-text)!important; flex-wrap:wrap; column-gap:14px; row-gap:10px; align-items:center; }
html body.agora-theme .agn-site-header__brand,
html body.agora-theme .agn-site-header__brand:visited { color:var(--agora-heading)!important; order:0; min-width:0; }
html body.agora-theme .agn-site-header__brand :is(span,strong) { color:inherit!important; }
html body.agora-theme .agn-site-header__brand img { max-width:100%; height:auto; }
html body.agora-theme .agn-site-header__nav { order:1; background:var(--agora-surface)!important; color:var(--agora-text)!important; border-color:var(--agora-border)!important; min-width:0; }
html body.agora-theme .agn-site-header__link,
html body.agora-theme .agn-site-header__link:visited { color:var(--agora-link)!important; }
html body.agora-theme .agn-site-header__link:hover { color:var(--agora-link-hover)!important; background-color:var(--agora-surface-alt)!important; }
html body.agora-theme .agn-site-header__toggle { order:3; box-sizing:border-box; flex:0 1 auto; width:auto; min-width:56px; max-width:clamp(90px,31vw,134px); min-height:44px; padding:6px 8px; white-space:normal; line-height:1.2; font-size:14px; color:var(--agora-heading)!important; background:var(--agora-surface)!important; border-color:var(--agora-control-border)!important; }
html body.agora-theme .agn-site-header__toggle[aria-expanded="true"] { background:var(--agora-surface-alt)!important; }
html body.agora-theme .agn-site-header__link--primary,
html body.agora-theme .agn-site-header__link--primary:visited { color:var(--agora-primary-text)!important; background:var(--agora-primary)!important; border-color:var(--agora-primary)!important; }
html body.agora-theme .agn-site-header__link--primary:hover { color:var(--agora-primary-text)!important; background:var(--agora-primary-hover)!important; border-color:var(--agora-primary-hover)!important; }

/* Global switch inserted by the rollout controller before the hamburger. */
html body.agora-theme label.agn-color-control {
  box-sizing:border-box; display:inline-flex; flex:0 0 auto; order:2; align-items:center; justify-content:center; gap:7px;
  min-height:44px; margin:0; padding:3px 7px 3px 11px; border:1px solid var(--agora-control-border); border-radius:8px;
  color:var(--agora-text); background:var(--agora-surface-alt); font-family:inherit; font-size:13px; line-height:1.25; white-space:nowrap;
}
html body.agora-theme .agn-color-control .agn-color-label { color:var(--agora-text); font-size:13px; font-weight:600; }
html body.agora-theme .agn-color-control select {
  box-sizing:border-box; display:block; width:auto; min-width:85px; max-width:110px; min-height:36px; height:auto;
  margin:0; padding:5px 4px; border:0; border-radius:4px; background-color:var(--agora-surface); color:var(--agora-text);
  font-family:inherit; font-size:14px; line-height:1.3; font-weight:600; cursor:pointer; appearance:auto;
}
html body.agora-theme .agn-color-control select option { color:var(--agora-text); background-color:var(--agora-surface); }
html body.agora-theme .agn-color-control select:focus-visible { outline:3px solid var(--agora-focus)!important; outline-offset:2px!important; box-shadow:0 0 0 2px var(--agora-canvas)!important; }
/* Footer/body-end fallback is in flow, not a fixed overlay. */
html body.agora-theme > label.agn-color-control { display:flex; width:max-content; max-width:calc(100% - 32px); margin:24px auto; }
html body.agora-theme .fusion-tb-footer .agn-color-control { margin:16px; }
@media(max-width:1024px) {
  html body.agora-theme .agn-site-header__nav { order:4; flex-basis:100%; width:100%; }
  html body.agora-theme .agn-site-header__inner > .agn-color-control { order:1; margin-inline-start:auto; }
  html body.agora-theme .agn-site-header__toggle { order:2; }
}
@media(max-width:600px) {
  html body.agora-theme .agn-site-header__inner { column-gap:8px; }
  html body.agora-theme .agn-site-header__inner > .agn-color-control { padding:3px 5px; gap:0; }
  html body.agora-theme .agn-site-header__inner > .agn-color-control .agn-color-label {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
  }
  html body.agora-theme .agn-site-header__inner > .agn-color-control select { min-width:78px; max-width:88px; font-size:14px; }
}
@media(max-width:390px) {
  html body.agora-theme .agn-site-header__inner { padding-inline:12px!important; }
  html body.agora-theme .agn-site-header__brand { max-width:calc(100% - 150px); font-size:clamp(19px,5.8vw,23px); }
}

/* Known inline markup, no .agora-home addition required. Case-insensitive hex;
   covers both background and background-color plus optional colon whitespace. */
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="#183c43" i],
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="#173c43" i] { color:var(--agora-text)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="#0b4650" i] { color:var(--agora-heading)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="color:#12626e" i],
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="color: #12626e" i] { color:var(--agora-link)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="#45636a" i] { color:var(--agora-muted)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="color:#ffffff" i],
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="color: #ffffff" i] { color:var(--agora-hero-text)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="#f2c76b" i] { color:var(--agora-kicker)!important; }
html body.agora-theme #agoranet-prototype :is(p,span)[style*="color:#d8ecee" i] { color:var(--agora-hero-text)!important; }
html body.agora-theme #agoranet-prototype span[style*="color:#f2a634" i] { color:var(--agora-kicker)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) :is(section,article,div)[style*="#eaf4f5" i] { background-color:var(--agora-surface-alt)!important; color:var(--agora-text)!important; border-color:var(--agora-border)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) :is(section,article,div)[style*="#fff6e6" i] { background-color:var(--agora-notice)!important; color:var(--agora-text)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) :is(section,article,div)[style*="#f7fafb" i] { background-color:var(--agora-soft)!important; color:var(--agora-text)!important; border-color:var(--agora-border)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) :is(section,div)[style*="background:#12626e" i],
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) :is(section,div)[style*="background: #12626e" i],
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) :is(section,div)[style*="background-color:#12626e" i],
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) :is(section,div)[style*="background-color: #12626e" i] { background-color:var(--agora-hero)!important; color:var(--agora-hero-text)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="border-top:4px solid #12626e" i] { border-top-color:var(--agora-primary)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) [style*="border-top:1px solid #d8ecee" i] { border-top-color:var(--agora-border)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) :is(div,span)[style*="border:1px solid #d8ecee" i] { border-color:var(--agora-border)!important; }
html body.agora-theme #agoranet-prototype > div:first-child span[style*="border:1px solid #d8ecee" i] { border-color:var(--agora-hero-text)!important; }
/* Preserve gold CTA foregrounds, including Prototype's differently written CTA. */
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) a[style*="background:#f2a634" i],
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) a[style*="background-color:#f2a634" i] { background-color:var(--agora-accent)!important; color:var(--agora-accent-text)!important; border-color:var(--agora-accent)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) a[style*="background:#12626e" i],
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) a[style*="background-color:#12626e" i] { background-color:var(--agora-primary)!important; color:var(--agora-primary-text)!important; border-color:var(--agora-primary)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) a[style*="color:#0b4650" i]:visited { color:var(--agora-visited)!important; }
html body.agora-theme :is(#post-1002,#post-1100,#post-1080) a[style*="color:#0b4650" i]:hover { color:var(--agora-link-hover)!important; }
/* The gold Prototype CTA also carries #0b4650: keep its button text on visit. */
html body.agora-theme #post-1080 a[style*="background-color:#f2a634" i]:is(:visited,:hover) { color:var(--agora-accent-text)!important; }

/* Journal and Journal privacy: all locally documented special colors. */
html body.agora-theme #main :is(.agora-bs-journal,.agora-bs-privacy) { color:var(--agora-text)!important; }
html body.agora-theme #main .agora-bs-journal .agora-bs-hero { background:var(--agora-hero)!important; color:var(--agora-hero-text)!important; border-top-color:var(--agora-accent)!important; }
html body.agora-theme #main .agora-bs-journal .agora-bs-hero :is(h1,h2,h3,.agora-bs-subtitle,.agora-bs-intro) { color:var(--agora-hero-text)!important; }
html body.agora-theme #main .agora-bs-journal .agora-bs-kicker { color:var(--agora-kicker)!important; }
html body.agora-theme #main .agora-bs-journal :is(.agora-bs-topic,.agora-bs-editorial) { background:var(--agora-surface-alt)!important; border-color:var(--agora-border)!important; }
html body.agora-theme #main .agora-bs-journal .agora-bs-topic { border-top-color:var(--agora-primary)!important; }
html body.agora-theme #main .agora-bs-journal :is(.agora-bs-empty,.agora-bs-contact) { background:var(--agora-soft)!important; border-color:var(--agora-border)!important; }
html body.agora-theme #main .agora-bs-journal .agora-bs-contact { background:var(--agora-surface)!important; }
html body.agora-theme #main .agora-bs-journal :is(.agora-bs-source,.agora-bs-meta) { color:var(--agora-muted)!important; }
html body.agora-theme #main .agora-bs-journal .agora-bs-number { color:var(--agora-link)!important; }
html body.agora-theme #main .agora-bs-journal .agora-bs-steps li::before { background:var(--agora-primary)!important; color:var(--agora-primary-text)!important; }
html body.agora-theme #main .agora-bs-journal :is(.agora-bs-steps li,.agora-bs-footer) { border-color:var(--agora-border)!important; }
html body.agora-theme #main .agora-bs-journal :is(.agora-bs-status,.agora-bs-label),
html body.agora-theme #main .agora-bs-privacy .agora-bs-draft { background:var(--agora-notice)!important; color:var(--agora-notice-text)!important; border-left-color:var(--agora-accent)!important; }

/* Public content forms only. No selector enters #wpadminbar. */
html body.agora-theme #main :is(input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) {
  background-color:var(--agora-surface)!important; color:var(--agora-text)!important; border-color:var(--agora-control-border)!important;
}
html body.agora-theme #main :is(input,textarea)::placeholder { color:var(--agora-muted)!important; opacity:1; }
html body.agora-theme #main :is(input[type="submit"],input[type="button"],button[type="submit"],.fusion-button) { background:var(--agora-primary)!important; color:var(--agora-primary-text)!important; border-color:var(--agora-primary)!important; }
html body.agora-theme #main .fusion-button :is(.fusion-button-text,.fusion-button-icon) { color:inherit!important; }
html body.agora-theme #main :is(input,textarea)[aria-invalid="true"] { border-color:var(--agora-error)!important; }
html body.agora-theme #main :is(input,select,textarea,button):disabled[disabled] { background:var(--agora-disabled-bg)!important; color:var(--agora-disabled)!important; }
html body.agora-theme #main :is(input[type="checkbox"],input[type="radio"]) { accent-color:var(--agora-primary); }
/* Search and 404 inventory (systemseiten.json). Public widgets only, not admin. */
html body.agora-theme :is(#main,#sidebar,.fusion-sidebar) .widget,
html body.agora-theme #main :is(.fusion-post-content-wrapper,.fusion-post-content,.fusion-search-page-search-form) { color:var(--agora-text)!important; background-color:var(--agora-canvas)!important; border-color:var(--agora-border)!important; }
html body.agora-theme :is(#main,#sidebar,.fusion-sidebar) .widget :is(p,li,label) { color:var(--agora-text)!important; }
html body.agora-theme :is(#main,#sidebar,.fusion-sidebar) .widget :is(h1,h2,h3,h4,h5,h6) { color:var(--agora-heading)!important; }
html body.agora-theme :is(#sidebar,.fusion-sidebar) a { color:var(--agora-link)!important; }
html body.agora-theme :is(#sidebar,.fusion-sidebar) a:visited { color:var(--agora-visited)!important; }
html body.agora-theme :is(#sidebar,.fusion-sidebar) a:hover { color:var(--agora-link-hover)!important; }
html body.agora-theme :is(#main,#sidebar,.fusion-sidebar,.fusion-tb-footer) :is(.searchform,.wp-block-search) :is(input[type="search"],input.s,.wp-block-search__input) {
  color:var(--agora-text)!important; background:var(--agora-surface)!important; border-color:var(--agora-control-border)!important;
}
html body.agora-theme :is(#main,#sidebar,.fusion-sidebar,.fusion-tb-footer) :is(.searchform,.wp-block-search) :is(input[type="submit"],button[type="submit"],.wp-block-search__button) {
  color:var(--agora-primary-text)!important; background:var(--agora-primary)!important; border-color:var(--agora-primary)!important;
}
html body.agora-theme :is(#sidebar,.fusion-sidebar) :is(a,input,button,select,textarea):focus-visible {
  outline:3px solid var(--agora-focus)!important; outline-offset:3px!important; box-shadow:0 0 0 3px var(--agora-canvas)!important;
}
html body.agora-theme.error404 .agn-error { color:var(--agora-text)!important; background:var(--agora-surface)!important; border-color:var(--agora-border)!important; }
html body.agora-theme.error404 #main .agn-error h1 { color:var(--agora-heading)!important; }
html body.agora-theme.error404 .agn-error :is(p,.agn-error-code) { color:var(--agora-muted)!important; }
html body.agora-theme.error404 .agn-error-links a,
html body.agora-theme.error404 .agn-error-links a:visited { color:var(--agora-link)!important; background-color:var(--agora-surface-alt)!important; border-color:var(--agora-control-border)!important; }
html body.agora-theme.error404 .agn-error-links a:hover { color:var(--agora-primary-text)!important; background-color:var(--agora-primary)!important; border-color:var(--agora-primary)!important; }
/* Same-origin image content is unchanged; remote iframe contents are not styled. */
html body.agora-theme #main iframe { max-width:100%; }
html.agn-scheme-change body.agora-theme :is(a,button,select,span) { transition:none!important; }

/* Avada styles the search widget's FORM like a gold button. Keep the actual
   button distinct and allow the adjacent input to shrink inside its sidebar. */
body.agora-theme.search #main form.wp-block-search {
  display:block!important; box-sizing:border-box; width:100%; max-width:100%;
  min-width:0; padding:0; background:transparent!important;
  color:var(--agora-text)!important; border:0; box-shadow:none; text-align:start;
}
body.agora-theme.search #main .wp-block-search__label {
  display:block; margin:0 0 .45rem; color:var(--agora-text)!important;
}
body.agora-theme.search #main .wp-block-search__inside-wrapper {
  display:flex; width:100%; min-width:0; max-width:100%; box-sizing:border-box;
}
body.agora-theme.search #main .wp-block-search__input {
  flex:1 1 5rem; min-width:0!important; width:0; max-width:100%; box-sizing:border-box;
}
body.agora-theme.search #main .wp-block-search__button { flex:0 0 auto; }
body.agora-theme #post-1027 .fusion-text,
body.agora-theme #post-1043 .fusion-text,
body.agora-theme :is(#post-1027,#post-1043) :is(p,h1,h2,h3,li,a) {
  overflow-wrap:anywhere; hyphens:auto;
}
@media(max-width:580px) {
  body.agora-theme :is(#post-1027,#post-1043) :is(h1,h2) {
    font-size:clamp(1.5rem,7vw,2rem)!important;
  }
}
@media(forced-colors:active) {
  html body.agora-theme :is(#main,.fusion-tb-header,.fusion-tb-footer,.agn-color-control) :is(a,button,input,select,textarea,summary):focus-visible { outline:3px solid Highlight!important; box-shadow:none!important; }
  html body.agora-theme label.agn-color-control { border-color:ButtonText; }
}
@media(prefers-reduced-motion:reduce) { html body.agora-theme { scroll-behavior:auto; } }
