/* digitalesbankkonto.de v240 — global navy typography override
   Purpose: normal-weight dark-blue navigation and dark-blue site typography.
   Loaded after page-local CSS to avoid editing SEO/content/functionality. */

:root {
  --dbk-navy: #123A63;
  --dbk-navy-soft: #2B5274;
  --dbk-navy-muted: #456783;
  --text: #123A63 !important;
  --text-md: #123A63 !important;
  --text-sm: #2B5274 !important;
  --text-xs: #456783 !important;
}

html, body {
  color: var(--dbk-navy) !important;
}

/* Global headings: never black/charcoal. */
h1, h2, h3,
.h1, .h2, .h3,
[class*="heading"],
[class*="headline"] {
  color: var(--dbk-navy) !important;
}

/* General readable copy. Keep semantic link/accent colours untouched. */
p, li, td, th, label, legend, summary, blockquote, figcaption,
.copy, .text, .description, .subtitle, .subline,
.provider-desc, .hero-sub, .lead, .note, .source-note,
.footer, .footer p, .footer span {
  color: var(--dbk-navy) !important;
}

/* Navigation: normal weight and dark blue on every page. */
.nav-links a,
.nav-drawer a,
.nav a,
.links a,
nav a,
header nav a,
.main-nav a,
.site-nav a,
.desktop-nav a,
.mobile-nav a,
.menu a,
.nav-menu a,
.navigation a {
  color: var(--dbk-navy) !important;
  font-weight: 400 !important;
}

/* Header/menu CTA remains legible while following the dark-blue text rule. */
.nav-cta,
.nav-drawer .drawer-cta,
header .nav-cta,
header .drawer-cta {
  color: var(--dbk-navy) !important;
  font-weight: 400 !important;
  background: #EAF2FF !important;
  border: 1px solid #C7D8FC !important;
}

/* Do not flatten brand/logo typography into ordinary menu text. */
.nav-logo,
.nav-logo *,
.brand,
.brand * {
  color: inherit;
}

/* Contrast exceptions: white copy is intentional only on genuinely dark/blue UI surfaces. */
.cta-block,
.cta-block h1,
.cta-block h2,
.cta-block h3,
.cta-block p,
.cta-block li,
.dark-section,
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section p,
.blue-section,
.blue-section h1,
.blue-section h2,
.blue-section h3,
.blue-section p {
  color: #FFFFFF !important;
}

/* Buttons/interactive controls keep their contrast and affiliate functionality. */
.btn-blue,
.btn-blue *,
.cta-primary,
.cta-primary *,
.btn-aff,
.btn-aff *,
.featured-badge,
.featured-badge *,
a[style*="background:#1a56db"],
a[style*="background: #1a56db"] {
  color: #FFFFFF !important;
}

/* Prevent old black/charcoal fallback values on common text components. */
.rechner-h2,
.ratgeber-card h3,
.money-card strong,
.review-item strong,
.author-box strong,
.data-table th,
.decision-card h3,
.quick-answer p {
  color: var(--dbk-navy) !important;
}

/* Additional legacy variable normalization for older comparison/article templates. */
:root {
  --muted: #456783 !important;
  --light: #54728A !important;
}

/* Any legacy dark footer is navy rather than near-black. White is retained here
   strictly for accessible contrast on the dark-blue surface. */
footer,
.footer {
  background-color: #123A63 !important;
  color: #FFFFFF !important;
}
footer p, footer li, footer span, footer small, footer a,
.footer p, .footer li, .footer span, .footer small, .footer a {
  color: #FFFFFF !important;
}
