/*
 * MFM Elektrotechnik — Kontrast-Korrekturen (WCAG AA)
 * Erstellt 2026-06-10. Zentrale Accessibility-Override-Datei, lädt zuletzt.
 * Quelle: site-weiter Laufzeit-Kontrast-Audit (alle 65 öffentl. Seiten) +
 *         pro-Komponente Draft & adversariale WCAG-Re-Verifikation (Workflow).
 *
 * Warum !important: Die Original-Farben stehen teils in SEHR tief verschachtelten
 * Selektoren (z.B. main.min.css: ".mfm-unified-subpage .entry-content
 * .mfm-konfigurator-wrapper .choice-desc", 4 Klassen) bzw. in INLINE-<style>-
 * Blöcken der Seiten-Templates (laden NACH dieser Datei). Eine Override-Ebene
 * für Barrierefreiheit muss diese zuverlässig schlagen — !important ist hier das
 * korrekte, wartbare Mittel (KEINE Quell-Regel nutzt !important, daher gewinnen
 * diese Regeln eindeutig und ohne Seiteneffekt). Alle Selektoren sind auf ihren
 * Komponenten-Container gescopt; generische Tags (li/h4/strong/a) bluten nicht aus.
 * Zielkontrast: >=4.5:1 (Normaltext), >=3:1 (große Schrift/Icons). // = WCAG-Ratio.
 */

/* === 1) Theme / front-page / shared component classes === */
.mfm-choices .mfm-choice .choice-desc { color: rgba(255,255,255,.92) !important; } /* Slate→Weiß auf Teal (1.12→~6) */
.mfm-feature-badge { color: #0f766e !important; }                                  /* Soft-Teal→Dunkelteal auf Weiß (1.92→5.2) */
.mfm-karriere-mini-inner { background: #0f766e !important; }                       /* Banner-BG abdunkeln, Weiß besteht (→5.5) */
#mfm-14a-calc .mfm-14a-hint,
#mfm-14a-calc .mfm-14a-vs { color: #5b6473 !important; }                            /* Hinweistext Slate-400→dunkler (2.45→~4.8) */

/* === 2) Elektro-Konfigurator (/elektroinstallationen/) — dunkle Panels === */
.mfm-ek-konfigurator .mfm-ek-section-title { color: #ffffff !important; }          /* 14.6 */
.mfm-ek-konfigurator .mfm-ek-icon { color: #ffffff !important; }                   /* 14.6 */
.mfm-ek-konfigurator .mfm-ek-section-desc { color: #cbd5e1 !important; }           /* 9.9 */
.mfm-ek-konfigurator .mfm-ek-submit-note { color: #cbd5e1 !important; }            /* 12.0 */
.mfm-ek-konfigurator .mfm-ek-niveau-features li { color: #cbd5e1 !important; }     /* 12.0 */

/* === 3) Beleuchtungstechnik (/beleuchtung/) — dunkle Sektionen (#0F0F1A) === */
.beleuchtung-lp .bt-section-title { color: #f8f6f2 !important; }                   /* 17.6 */
.beleuchtung-lp .bt-process-step h4 { color: #f8f6f2 !important; }                 /* 17.6 */
.beleuchtung-lp .bt-funding-sources p,
.beleuchtung-lp .bt-funding-sources p strong { color: #cbd5e1 !important; }        /* 8.7 */

/* === 4) Loxone-Seiten — NUR die grüne Basis-Variante der Eyebrow-Labels.
   Die Modifier .blue (--lx-mfm-primary) und .warm (--lx-warm) haben eigene,
   bereits AA-taugliche Farben (z.T. auf andersfarbigen/dunklen Pills) und
   dürfen NICHT übergangen werden → per :not() ausgeschlossen. */
.lx-section-label:not(.blue):not(.warm),
.lx-scenario-time:not(.blue):not(.warm),
.lx-reference-type:not(.blue):not(.warm) { color: #316b22 !important; }            /* helle Sektion: Dunkelgrün (2.3→5.4) */
.lx-process .lx-section-label:not(.blue):not(.warm),
.lx-process .lx-scenario-time:not(.blue):not(.warm),
.lx-process .lx-reference-type:not(.blue):not(.warm) { color: #ffffff !important; } /* dunkle Prozess-Sektion: Weiß (14.8) */

/* === 5) Fonio / KI-Telefonassistent — Akzentfarben auf hell === */
.fonio-testimonial .fonio-testimonial-stars { color: #b45309 !important; }         /* 5.0 */
.mfm-fbs-pricing-card .mfm-fbs-addon-requires { color: #b45309 !important; }       /* 5.0 */
.mfm-fbs-transparency-mfm strong { color: #047857 !important; }                    /* 5.0 */
.mfm-fbs-calc-inputs .mfm-fbs-optional { color: #4b5563 !important; }              /* 7.2 */

/* === 6) Fahrtkosten-Widget (/news/, /kundendienst/ u.a.) === */
.mfm-widget-title { color: #ffffff !important; }                                   /* 17.9 (dunkles Widget) */
.mfm-fahrtkosten-calculator .mfm-button,
.mfm-fahrtkosten-widget .mfm-widget-button {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}                                                                                  /* Weiß auf Teal-700 (1.86→5.47) */
.mfm-fahrtkosten-calculator .mfm-button:hover,
.mfm-fahrtkosten-widget .mfm-widget-button:hover {
    background: #115e57 !important;
    border-color: #115e57 !important;
    color: #ffffff !important;
}
.mfm-fahrtkosten-calculator .mfm-trust-badge:first-child,
.mfm-fahrtkosten-widget .mfm-trust-badge:first-child { color: #0f766e !important; } /* 5.1 */
.mfm-brand-footer a,
.mfm-brand-footer a:visited { color: #0f766e !important; }                          /* 5.2 */
.mfm-brand-footer a:hover { color: #115e57 !important; }
