/*
 * Gemeinsame Seitenfarben fuer die sechs oeffentlichen Bereiche.
 * Einsatz- und Auswertungstabellen, Zeichenflaeche, rote Kopf-/Fusszeilen,
 * Standardvorlagen und truppbezogene Aktionsflaechen werden bewusst nicht
 * angesprochen.
 */
html[data-ast-menu-theme="light"]{
 --ast-page-bg:#d3d3d3;
 --ast-page-text:#171717;
 --ast-page-muted:#656565;
 --ast-page-surface:#fff;
 --ast-page-soft:#f4f4f4;
 --ast-page-line:#aaa;
 color-scheme:light;
}
html[data-ast-menu-theme="dark"]{
 --ast-page-bg:#2b2b2d;
 --ast-page-text:#f2f2f7;
 --ast-page-muted:#c7c7cc;
 --ast-page-surface:#333336;
 --ast-page-soft:#3a3a3d;
 --ast-page-line:#666;
 color-scheme:dark;
}
@media(prefers-color-scheme:light){
 html[data-ast-menu-theme="system"]{
  --ast-page-bg:#d3d3d3;
  --ast-page-text:#171717;
  --ast-page-muted:#656565;
  --ast-page-surface:#fff;
  --ast-page-soft:#f4f4f4;
  --ast-page-line:#aaa;
  color-scheme:light;
 }
}
@media(prefers-color-scheme:dark){
 html[data-ast-menu-theme="system"]{
  --ast-page-bg:#2b2b2d;
  --ast-page-text:#f2f2f7;
  --ast-page-muted:#c7c7cc;
  --ast-page-surface:#333336;
  --ast-page-soft:#3a3a3d;
  --ast-page-line:#666;
  color-scheme:dark;
 }
}

body.page-id-9,
body.page-id-37,
body.page-id-272,
body.page-id-33,
body.page-id-110,
body.page-id-39,
body.page-id-9 #page,
body.page-id-37 #page,
body.page-id-272 #page,
body.page-id-33 #page,
body.page-id-110 #page,
body.page-id-39 #page{
 background-color:var(--ast-page-bg,#d3d3d3)!important;
}

/* Textseiten und Nutzungshinweise erhalten passende Kontraste. */
body.page-id-33 .entry-content,
body.page-id-110 .entry-content,
body.page-id-39 .entry-content{
 color:var(--ast-page-text,#171717);
}
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-content h1,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-content h2,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-content h3,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-content h1,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-content h2,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-content h3{
 color:#f2f2f7!important;
}
html[data-ast-menu-theme="dark"] body.page-id-33 .entry-content a,
html[data-ast-menu-theme="dark"] body.page-id-110 .entry-content a{
 color:#fff;
}
@media(prefers-color-scheme:dark){
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-content h1,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-content h2,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-content h3,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-content h1,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-content h2,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-content h3{
  color:#f2f2f7!important;
 }
 html[data-ast-menu-theme="system"] body.page-id-33 .entry-content a,
 html[data-ast-menu-theme="system"] body.page-id-110 .entry-content a{
  color:#fff;
 }
}

/* Die umfangreiche Hilfe bezieht ihre Flaechen aus denselben Variablen. */
html[data-ast-menu-theme="dark"] .ast-help{
 --help-bg:#2b2b2d;
 --help-card:#333336;
 --help-text:#f2f2f7;
 --help-muted:#c7c7cc;
 --help-line:#5d5d61;
 --help-soft:#3a3a3d;
 color-scheme:dark;
}
@media(prefers-color-scheme:dark){
 html[data-ast-menu-theme="system"] .ast-help{
  --help-bg:#2b2b2d;
  --help-card:#333336;
  --help-text:#f2f2f7;
  --help-muted:#c7c7cc;
  --help-line:#5d5d61;
  --help-soft:#3a3a3d;
  color-scheme:dark;
 }
}
html[data-ast-menu-theme="dark"] .ast-help-nav-group,
html[data-ast-menu-theme="dark"] .ast-help-panel,
html[data-ast-menu-theme="dark"] .ast-help-section,
html[data-ast-menu-theme="dark"] .ast-help-settings-card,
html[data-ast-menu-theme="dark"] .ast-help-formula > div,
html[data-ast-menu-theme="dark"] .ast-help-tool,
html[data-ast-menu-theme="dark"] .ast-help-update-meta{
 border-color:var(--help-line);
 background:var(--help-card);
 color:var(--help-text);
}
html[data-ast-menu-theme="dark"] .ast-help-module{
 border-color:#666;
 background:#333336;
 color:#f2f2f7;
}
html[data-ast-menu-theme="dark"] .ast-help-module:hover,
html[data-ast-menu-theme="dark"] .ast-help-module:focus-visible,
html[data-ast-menu-theme="dark"] .ast-help-module.is-active{
 border-color:#8a8a8d;
 background:#424245;
 color:#fff;
}
html[data-ast-menu-theme="dark"] .ast-help-nav-head-icon:not(.is-red),
html[data-ast-menu-theme="dark"] .ast-help-module-icon{
 background:#454548;
 color:#f2f2f7;
}
html[data-ast-menu-theme="dark"] .ast-help-module-disabled,
html[data-ast-menu-theme="dark"] .ast-help-module-disabled:hover,
html[data-ast-menu-theme="dark"] .ast-help-module-disabled:focus-visible{
 border-color:#555;
 background:#303033;
 color:#9a9a9f;
}
html[data-ast-menu-theme="dark"] .ast-help-group-label,
html[data-ast-menu-theme="dark"] .ast-help-pressure-hint,
html[data-ast-menu-theme="dark"] .ast-help-resource-note{
 color:var(--help-muted);
}
html[data-ast-menu-theme="dark"] .ast-help-status{
 background:#333336;
 color:#f2f2f7;
}
html[data-ast-menu-theme="dark"] .ast-help-ios-path span{
 background:#48484c;
 color:#fff;
}
html[data-ast-menu-theme="dark"] .ast-help-audio-button{
 border-color:#707074;
 background:#3a3a3d;
 color:#fff;
}
html[data-ast-menu-theme="dark"] .ast-help-action-icon,
html[data-ast-menu-theme="dark"] .ast-help-close-icon{
 border-color:#777;
 background:#3a3a3d;
 color:#fff;
}
@media(prefers-color-scheme:dark){
 html[data-ast-menu-theme="system"] .ast-help-nav-group,
 html[data-ast-menu-theme="system"] .ast-help-panel,
 html[data-ast-menu-theme="system"] .ast-help-section,
 html[data-ast-menu-theme="system"] .ast-help-settings-card,
 html[data-ast-menu-theme="system"] .ast-help-formula > div,
 html[data-ast-menu-theme="system"] .ast-help-tool,
 html[data-ast-menu-theme="system"] .ast-help-update-meta{
  border-color:var(--help-line);
  background:var(--help-card);
  color:var(--help-text);
 }
 html[data-ast-menu-theme="system"] .ast-help-module{
  border-color:#666;background:#333336;color:#f2f2f7;
 }
 html[data-ast-menu-theme="system"] .ast-help-module:hover,
 html[data-ast-menu-theme="system"] .ast-help-module:focus-visible,
 html[data-ast-menu-theme="system"] .ast-help-module.is-active{
  border-color:#8a8a8d;background:#424245;color:#fff;
 }
 html[data-ast-menu-theme="system"] .ast-help-nav-head-icon:not(.is-red),
 html[data-ast-menu-theme="system"] .ast-help-module-icon{background:#454548;color:#f2f2f7}
 html[data-ast-menu-theme="system"] .ast-help-module-disabled,
 html[data-ast-menu-theme="system"] .ast-help-module-disabled:hover,
 html[data-ast-menu-theme="system"] .ast-help-module-disabled:focus-visible{
  border-color:#555;background:#303033;color:#9a9a9f;
 }
 html[data-ast-menu-theme="system"] .ast-help-group-label{color:var(--help-muted)}
 html[data-ast-menu-theme="system"] .ast-help-status{background:#333336;color:#f2f2f7}
 html[data-ast-menu-theme="system"] .ast-help-ios-path span{background:#48484c;color:#fff}
 html[data-ast-menu-theme="system"] .ast-help-audio-button{border-color:#707074;background:#3a3a3d;color:#fff}
 html[data-ast-menu-theme="system"] .ast-help-action-icon,
 html[data-ast-menu-theme="system"] .ast-help-close-icon{border-color:#777;background:#3a3a3d;color:#fff}
}

/* Seitenbezogener Zuruecksetzen-Dialog folgt ebenfalls der gewaehlten Darstellung. */
html[data-ast-menu-theme="light"] .ast-help-reset-dialog{background:rgba(0,0,0,.48)}
html[data-ast-menu-theme="light"] .ast-help-reset-card{border-color:#888;background:#fff;color:#171717;color-scheme:light}
html[data-ast-menu-theme="light"] .ast-help-reset-close{color:#333}
html[data-ast-menu-theme="light"] .ast-help-reset-actions button{border-color:#999;background:#f2f2f2;color:#171717}
html[data-ast-menu-theme="dark"] .ast-help-reset-dialog{background:rgba(0,0,0,.7)}
html[data-ast-menu-theme="dark"] .ast-help-reset-card{border-color:#666;background:#242426;color:#f6f6f6;color-scheme:dark}
html[data-ast-menu-theme="dark"] .ast-help-reset-close{color:#f5f5f5}
html[data-ast-menu-theme="dark"] .ast-help-reset-actions button{border-color:#686868;background:#3a3a3c;color:#f5f5f5}
html[data-ast-menu-theme="light"] .ast-help-reset-actions .is-danger,
html[data-ast-menu-theme="dark"] .ast-help-reset-actions .is-danger{border-color:#b00000;background:#d90000;color:#fff}

/* Seitentitel und alle Ueberschriften bleiben im dunklen Modus lesbar. */
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-title,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-title,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-content h1,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-content h2,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-content h3,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-content h4,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-content h5,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-33 .entry-content h6,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-content h1,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-content h2,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-content h3,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-content h4,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-content h5,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-110 .entry-content h6,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-39 .entry-content .ast-help h1,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-39 .entry-content .ast-help h2,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-39 .entry-content .ast-help h3,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-39 .entry-content .ast-help h4,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-39 .entry-content .ast-help h5,
html[data-ast-menu-theme="dark"] body.ast-textseite.page-id-39 .entry-content .ast-help h6{color:#f2f2f7!important}
@media(prefers-color-scheme:dark){
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-title,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-title,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-content h1,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-content h2,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-content h3,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-content h4,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-content h5,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-33 .entry-content h6,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-content h1,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-content h2,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-content h3,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-content h4,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-content h5,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-110 .entry-content h6,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-39 .entry-content .ast-help h1,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-39 .entry-content .ast-help h2,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-39 .entry-content .ast-help h3,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-39 .entry-content .ast-help h4,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-39 .entry-content .ast-help h5,
 html[data-ast-menu-theme="system"] body.ast-textseite.page-id-39 .entry-content .ast-help h6{color:#f2f2f7!important}
}


/* Beide Zustände des App-Zurücksetzen-Dialogs erhalten explizite Titelfarben. */
html[data-ast-menu-theme="light"] body .ast-help-reset-card .ast-help-reset-title,
html[data-ast-menu-theme="light"] body .ast-help-reset-card [data-ast-reset-title]{color:#000!important;-webkit-text-fill-color:#000!important}
html[data-ast-menu-theme="dark"] body .ast-help-reset-card .ast-help-reset-title,
html[data-ast-menu-theme="dark"] body .ast-help-reset-card [data-ast-reset-title]{color:#fff!important;-webkit-text-fill-color:#fff!important}
@media(prefers-color-scheme:dark){
html[data-ast-menu-theme="system"] body .ast-help-reset-card .ast-help-reset-title,
html[data-ast-menu-theme="system"] body .ast-help-reset-card [data-ast-reset-title]{color:#fff!important;-webkit-text-fill-color:#fff!important}
}
@media(prefers-color-scheme:light){
html[data-ast-menu-theme="system"] body .ast-help-reset-card .ast-help-reset-title,
html[data-ast-menu-theme="system"] body .ast-help-reset-card [data-ast-reset-title]{color:#000!important;-webkit-text-fill-color:#000!important}
}

/* Gemeinsame Kopf-/Fußleisten und Menüöffner im dunklen Anzeigemodus. */
@media screen{
html[data-ast-menu-theme="dark"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) .ast-menue-button{background:#454549!important;border-color:#888!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-ast-menu-theme="dark"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) .ast-menue-button:is(:hover,:focus-visible){background:#555559!important}
html[data-ast-menu-theme="dark"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) .ast-menue-button:active{background:#626267!important}
html[data-ast-menu-theme="dark"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) .ast-menue-button svg{color:#fff!important;stroke:currentColor}
html[data-ast-menu-theme="dark"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) :is(.ast-menue-zeile,.site-header,.inside-header,.site-footer,.site-info,.inside-site-info){background-color:#960000!important;border-color:#960000!important}
html[data-ast-menu-theme="dark"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) :is(.site-info,.inside-site-info,.site-info a,.site-header .site-title,.site-header .site-title a){color:#fff!important;-webkit-text-fill-color:#fff!important}
}
@media screen and (prefers-color-scheme:dark){
html[data-ast-menu-theme="system"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) .ast-menue-button{background:#454549!important;border-color:#888!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-ast-menu-theme="system"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) .ast-menue-button:is(:hover,:focus-visible){background:#555559!important}
html[data-ast-menu-theme="system"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) .ast-menue-button:active{background:#626267!important}
html[data-ast-menu-theme="system"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) .ast-menue-button svg{color:#fff!important;stroke:currentColor}
html[data-ast-menu-theme="system"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) :is(.ast-menue-zeile,.site-header,.inside-header,.site-footer,.site-info,.inside-site-info){background-color:#960000!important;border-color:#960000!important}
html[data-ast-menu-theme="system"] body:is(.page-id-9,.page-id-37,.page-id-272,.page-id-33,.page-id-110,.page-id-39,.page-id-106) :is(.site-info,.inside-site-info,.site-info a,.site-header .site-title,.site-header .site-title a){color:#fff!important;-webkit-text-fill-color:#fff!important}
}

/* Freihandzeichnung: dunkle Werkzeugleiste und Umgebung, weißes Zeichenblatt. */
@media screen{
html[data-ast-menu-theme="dark"] body.page-id-272 .ast-menue-zeile .ast-draw-tool{background:#454549!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#888!important}
html[data-ast-menu-theme="dark"] body.page-id-272 .ast-menue-zeile .ast-draw-tool:is(:hover,:focus-visible){background:#555559!important}
html[data-ast-menu-theme="dark"] body.page-id-272 .ast-menue-zeile .ast-draw-tool[aria-pressed="true"]{background:#626267!important;border-color:#888!important}
html[data-ast-menu-theme="dark"] body.page-id-272 .ast-menue-zeile .ast-draw-tool svg{color:#fff;stroke:currentColor}
html[data-ast-menu-theme="dark"] body.page-id-272 .ast-draw-stage{background:#2b2b2d}
}
@media screen and (prefers-color-scheme:dark){
html[data-ast-menu-theme="system"] body.page-id-272 .ast-menue-zeile .ast-draw-tool{background:#454549!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#888!important}
html[data-ast-menu-theme="system"] body.page-id-272 .ast-menue-zeile .ast-draw-tool:is(:hover,:focus-visible){background:#555559!important}
html[data-ast-menu-theme="system"] body.page-id-272 .ast-menue-zeile .ast-draw-tool[aria-pressed="true"]{background:#626267!important;border-color:#888!important}
html[data-ast-menu-theme="system"] body.page-id-272 .ast-menue-zeile .ast-draw-tool svg{color:#fff;stroke:currentColor}
html[data-ast-menu-theme="system"] body.page-id-272 .ast-draw-stage{background:#2b2b2d}
}

/* Drei Flächenebenen: Hintergrund, Themenbereiche und Kapitel/Buttons. */
@media screen{
html[data-ast-menu-theme="dark"] .ast-help .ast-help-module:not(.ast-help-module-disabled),
html[data-ast-menu-theme="dark"] .ast-help :is(.ast-help-section,.ast-help-settings-card,.ast-help-tool,.ast-help-formula>div){background:#454549}
html[data-ast-menu-theme="dark"] .ast-help .ast-help-module:not(.ast-help-module-disabled):is(:hover,:focus-visible,.is-active){background:#555559}
}
@media screen and (prefers-color-scheme:dark){
html[data-ast-menu-theme="system"] .ast-help .ast-help-module:not(.ast-help-module-disabled),
html[data-ast-menu-theme="system"] .ast-help :is(.ast-help-section,.ast-help-settings-card,.ast-help-tool,.ast-help-formula>div){background:#454549}
html[data-ast-menu-theme="system"] .ast-help .ast-help-module:not(.ast-help-module-disabled):is(:hover,:focus-visible,.is-active){background:#555559}
}

/*
 * Gewoehnliche Taster verwenden Grau nur waehrend des Drueckens.
 * Ein nach dem Tippen verbleibender Hoverzustand aendert die Flaeche nicht.
 * Geoeffnete Hilfe-Kapitel (.is-active) bleiben bewusst markiert.
 */
body:is(.page-id-9,.page-id-106) .ast-startauswahl .ast-startauswahl-button:hover:not(:active){
 background:#f5f5f5!important
}
body.page-id-39 .ast-help .ast-help-module:not(.ast-help-module-disabled):not(.is-active):hover:not(:active){
 background:var(--help-card,#fff)!important
}
html[data-ast-menu-theme="dark"] body.page-id-39 .ast-help .ast-help-module:not(.ast-help-module-disabled):not(.is-active):hover:not(:active){
 background:#454549!important
}
@media(prefers-color-scheme:dark){
html[data-ast-menu-theme="system"] body.page-id-39 .ast-help .ast-help-module:not(.ast-help-module-disabled):not(.is-active):hover:not(:active){
 background:#454549!important
}
}

/* Verfuegbares Kunden-PWA-Update im roten Modulmenue. */
html body #ast-menue-overlay .ast-menue-module-leiste .ast-menue-module-link[data-asu-update]::after{
 content:"Update"!important;
 display:inline-flex!important;
 position:static!important;
 order:3;
 align-items:center!important;
 justify-content:center!important;
 box-sizing:border-box!important;
 width:auto!important;
 min-width:0!important;
 height:auto!important;
 min-height:0!important;
 margin:0!important;
 padding:2px 6px!important;
 border:1px solid #a26a0c!important;
 border-radius:7px!important;
 background:#ffe69b!important;
 box-shadow:0 1px 3px rgba(95,62,7,.18)!important;
 color:#17120a!important;
 -webkit-text-fill-color:#17120a!important;
 font:700 9px/1.05 Arial,Helvetica,sans-serif!important;
 letter-spacing:0!important;
}
