/* ==========================================================================
   30 — Kontrastkorrekturen
   bradentonbroker.de, angelegt 28.08.2026 bei der Farbangleichung an die .com

   Alle Werte programmatisch gemessen, nicht geschaetzt.
   Zielwert 4,5:1 bei Fliesstext, 3:1 ab 24px oder ab 18,66px fett.
   Nach der letzten Runde: null Verstoesse ueber alle 58 URLs.

   Diese Datei muss NACH 20-editorial.css geladen werden.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Erste Runde
   -------------------------------------------------------------------------- */

/* Kopfzeilen-CTA: dunkler Text auf Gold ergab 2,33:1.
   Dunkles Gold mit weisser Schrift ergibt 5,35:1. */
#primary-menu li.menu-button > a,
#primary-menu li.menu-button > a:hover,
#primary-menu li.menu-button > a:focus {
	background-color: var(--color-bronze-dark) !important;
	color: #FFFFFF !important;
}

/* Sprachumschalter: Gold auf Weiss ergab 4,14:1. */
#primary-menu li.lang-switch > a {
	color: var(--color-bronze-dark) !important;
}

/* Inhalte auf dunklen Block-Flaechen.
   Die Block-Inline-Styles setzen den Hintergrund, die Textfarbe kam aus der
   Theme-Regel und blieb dunkel — Navy auf Ozeanblau ergab 1,26:1.
   Hinweis: Der Anker "background-color:" ist noetig, sonst wuerde ein
   Selektor auf "color:#0E4A63" auch "background-color:#0E4A63" treffen. */
[style*="background-color:#0E4A63"] p,
[style*="background-color:#0E4A63"] li,
[style*="background-color:#0E4A63"] figcaption,
[style*="background-color:#0A3A4E"] p,
[style*="background-color:#0A3A4E"] li,
[style*="background-color:#0A3A4E"] figcaption {
	color: var(--color-cream);
}

[style*="background-color:#0E4A63"] h1,
[style*="background-color:#0E4A63"] h2,
[style*="background-color:#0E4A63"] h3,
[style*="background-color:#0E4A63"] h4,
[style*="background-color:#0A3A4E"] h1,
[style*="background-color:#0A3A4E"] h2,
[style*="background-color:#0A3A4E"] h3,
[style*="background-color:#0A3A4E"] h4 {
	color: var(--color-gold-on-dark);
}

[style*="background-color:#0E4A63"] a:not(.wp-block-button__link),
[style*="background-color:#0A3A4E"] a:not(.wp-block-button__link) {
	color: var(--color-gold-on-dark);
}

/* Inhalte auf Sandflaechen: Tuerkis und Gold sind dort zu hell.
   Buttons ausgenommen — sonst faerbt die Regel den Buttontext ein und
   erzeugt dunkel auf dunkel (das ist beim Bauen tatsaechlich passiert). */
[style*="background-color:#F4EADB"] p,
[style*="background-color:#F4EADB"] li,
[style*="background-color:#F4EADB"] h1,
[style*="background-color:#F4EADB"] h2,
[style*="background-color:#F4EADB"] h3,
[style*="background-color:#F4EADB"] h4,
[style*="background-color:#F4EADB"] a:not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--color-teal-deep);
}

/* Bildunterschriften standen in Creme auf Weiss, 1,10:1. */
.wp-element-caption,
figcaption.wp-element-caption {
	color: var(--color-warm-gray);
}

/* Seitentitel und Related-Ueberschrift auf dunkler Theme-Flaeche. */
.entry-hero-container-inner .page-title,
.entry-hero-container-inner .page-title span,
.entry-related-title {
	color: var(--color-gold-on-dark);
}


/* --------------------------------------------------------------------------
   Zweite Runde
   -------------------------------------------------------------------------- */

/* Kadence-Ueberschriftsbloecke erzeugen ID-spezifische Regeln und schlagen
   die Elementregeln oben. Daher hier !important. */
[style*="background-color:#0E4A63"] .wp-block-kadence-advancedheading,
[style*="background-color:#0A3A4E"] .wp-block-kadence-advancedheading,
[style*="background-color:#0E4A63"] .wp-block-kadence-advancedheading a,
[style*="background-color:#0A3A4E"] .wp-block-kadence-advancedheading a {
	color: var(--color-gold-on-dark) !important;
}

[style*="background-color:#F4EADB"] .wp-block-kadence-advancedheading,
[style*="background-color:#F4EADB"] .wp-block-kadence-advancedheading a {
	color: var(--color-teal-deep) !important;
}

/* Buttons aus Block-Inline-Styles: dunkler Text auf mittlerem Tuerkis ergab
   1,88:1, auf Gold 2,33:1. Beim Gold-Button wird zusaetzlich die Flaeche
   abgedunkelt, weil Weiss auf #A07440 nur 3,99:1 schafft. */
.wp-block-button__link[style*="background-color:#10788C"] {
	color: #FFFFFF !important;
}

.wp-block-button__link[style*="background-color:#A07440"] {
	background-color: var(--color-bronze-dark) !important;
	color: #FFFFFF !important;
}

/* Gold im Footer auf Navy ergab 2,93:1.
   Zwei Schreibweisen, weil Gutenberg Inline-Styles ohne Leerzeichen schreibt
   und handgeschriebene Widget-Styles mit. Der Anker mit Semikolon bzw. ^=
   verhindert, dass die Regel auch background-color trifft. */
.site-footer [style*="; color: #A07440"],
.site-footer [style^="color: #A07440"],
.site-footer [style*=";color:#A07440"],
.site-footer [style^="color:#A07440"],
.site-footer-wrap [style*="; color: #A07440"],
.site-footer-wrap [style^="color: #A07440"],
.site-footer-wrap [style*=";color:#A07440"],
.site-footer-wrap [style^="color:#A07440"] {
	color: var(--color-gold-on-dark) !important;
}

/* Aktiver Menuepunkt: Gold auf Weiss ergab 4,14:1. */
#primary-menu .current-menu-item > a,
#primary-menu .current_page_item > a,
#primary-menu .current-menu-ancestor > a,
#primary-menu .current_page_ancestor > a {
	color: var(--color-bronze-dark) !important;
}

/* Restfarbe aus einer aelteren Palette, nur als helles Gold auf Dunkel benutzt. */
[style^="color:#C8A882"],
[style*=";color:#C8A882"],
[style^="color: #C8A882"],
[style*="; color: #C8A882"] {
	color: var(--color-gold-on-dark) !important;
}


/* --------------------------------------------------------------------------
   Dritte Runde
   -------------------------------------------------------------------------- */

/* Zwei Kadence-Bloecke auf der Startseite: Der Hintergrund kommt dort aus
   generierten Klassen, nicht aus Inline-Styles, deshalb direkt adressiert.
   Die uniqueIDs sind stabil, sie aendern sich beim Speichern nicht. */
.kt-adv-heading185_92cb07-40,
.kt-adv-heading185_92cb07-40 * {
	color: var(--color-gold-on-dark) !important;
}

.kt-adv-headinghome-rat-link-1,
.kt-adv-headinghome-rat-link-2,
.kt-adv-headinghome-rat-link-3 {
	color: var(--color-teal-deep) !important;
}

/* Beitragstitel in Listen und im Related-Bereich: Gold auf Weiss 4,14:1. */
.entry-title a,
.entry-related .entry-title a,
.loop-entry .entry-title a {
	color: var(--color-bronze-dark);
}

.entry-title a:hover,
.entry-title a:focus {
	color: var(--color-teal-mid);
}


/* --------------------------------------------------------------------------
   Uebergangsregel — kann weg, sobald WPCode-Snippet 662 korrigiert ist
   --------------------------------------------------------------------------

   Das Snippet "A11y: Hero-Contrast" enthaelt noch die alten Hexwerte
   #0D3B4A, #C9A875 und #F4EDE0 und liess sich programmatisch nicht speichern.
   Bis das von Hand korrigiert oder hierher verlegt ist, zieht diese Regel die
   Hero-Flaeche auf die neue Markenfarbe. */
.entry-hero-container-inner,
.entry-hero-container-inner .entry-hero-section {
	background-color: var(--color-teal-deep) !important;
}
