/* Hilfsklassen für die Website-Farben (Sites › Einstellungen › Farben).
   Die Variablen --ps-farbe-1, --ps-farbe-2 … (beliebig viele) setzt ps_layouts am <body> (page.typoscript, bodyTagCObject). */
/* Weiß gibt es immer (Auswahl „Weiß“, Wert w) */
:root { --ps-farbe-w: #fff; }
.ps-bg-w { background-color: var(--ps-farbe-w); }
.ps-text-w { color: var(--ps-farbe-w); }
/* .ps-bg-1, .ps-text-1 … für alle Website-Farben: erzeugt (Classes/Frontend/WebsiteFarbenCss.php, page.cssInline) */

/* Kontrastmodus (Button „Hoher Kontrast“, Klasse ps-kontrast am <html>): Website-Farben werden zu einer hellen
   Fläche mit Rahmen (--ps-kontrast-flaeche, --ps-kontrast-rahmen aus kunde.scss), farbige Schrift wird normale
   Textfarbe. !important, weil die Website-Farben als style-Attribut am <body> stehen. */
html.ps-kontrast body {
  --ps-farbe-w: var(--ps-kontrast-flaeche) !important;
  /* --ps-farbe-1 … für alle Website-Farben: erzeugt (Classes/Frontend/WebsiteFarbenCss.php) */
}
html.ps-kontrast :is(.ps-bg-w, [class*="ps-bg-"]) {
  box-shadow: inset 0 0 0 2px var(--ps-kontrast-rahmen);
}
html.ps-kontrast :is(.ps-text-w, [class*="ps-text-"]) {
  color: inherit !important;
}
/* Social-Media-Links mit gewählter Website-Farbe (style-Attribut am Element): im Kontrastmodus Standardfarben */
html.ps-kontrast .ps-social[style] {
  --ps-social-flaeche: var(--ps-color-primary) !important;
  --ps-social-icon-farbe: var(--ps-color-background) !important;
}

/* Elemente, die eine Website-Farbe per style-Attribut setzen: Icons, Schrift auf der (jetzt hellen) Fläche dunkel */
html.ps-kontrast .iconfakten[style*="--iconfakten-icon-farbe"] {
  --iconfakten-icon-farbe: var(--ps-color-text) !important;
}
html.ps-kontrast .ce-teaser--website-farbe {
  --ps-banner-text-auf-bild: var(--ps-color-text);
}
html.ps-kontrast .infobanner[style*="var(--ps-farbe-"] {
  --ps-infobanner-text-negativ: var(--ps-color-text);
}
