/* ============================================================
   MSD LIGHT MODE — Vollständige Korrekturen (WCAG AA)
   Alle Seiten: GEO, SEO, Blog, Monitoring, Kurs, Prämien,
   KWK, Prämien, Dashboard, Login, Frontpage Blog-Sektion
   ============================================================ */

/* ── KERN: Body & Hintergründe ─────────────────────────────── */
[data-theme="light"] {
	--opt-blue-darkest: #f7f4ee;
	--opt-blue-dark:    #ffffff;
	--opt-blue-mid:     #efe9dd;
	--opt-blue-accent:  #ddd2bc;
	--opt-blue-bright:  #2a4a7d;
	--opt-blue-light:   #1d3a66;
	--opt-cream:        #16203a;
	--opt-cream-dark:   #26314d;
	--opt-white:        #16203a;
	--opt-gold:         #9c7d2e;
	--opt-gold-light:   #b8923a;
	--opt-text-muted:   rgba(22,32,58,.66);
	--opt-border-gold:    rgba(156,125,46,.22);
	--opt-border-gold-md: rgba(156,125,46,.38);
	--opt-border-gold-lg: rgba(156,125,46,.55);
}
[data-theme="light"] body,
[data-theme="light"] .site-main,
[data-theme="light"] main,
[data-theme="light"] #main-content { background-color: #f7f4ee; color: #16203a; }

/* ── GEO CHECK & SEO CHECK — blauer Hintergrund → light ───── */
[data-theme="light"] .msd-geo-wrap,
[data-theme="light"] .msd-geo-section,
[data-theme="light"] .geo-checker,
[data-theme="light"] .geo-result,
[data-theme="light"] .seo-check-wrap,
[data-theme="light"] .seo-checker,
[data-theme="light"] .seo-result,
[data-theme="light"] .msd-seo-section,
[data-theme="light"] [class*="geo-"][class*="-wrap"],
[data-theme="light"] [class*="seo-"][class*="-wrap"],
[data-theme="light"] .msd-checker-wrap,
[data-theme="light"] .msd-check-section {
	background-color: #f7f4ee !important;
	background: #f7f4ee !important;
	color: #16203a !important;
}
/* GEO Plugin Farben */
[data-theme="light"] .geo-hero,
[data-theme="light"] .geo-form-section,
[data-theme="light"] .geo-tool-section,
[data-theme="light"] .msd-geo-hero,
[data-theme="light"] .msd-geo-tool {
	background-color: #f7f4ee !important;
	border-color: rgba(156,125,46,.2) !important;
}
[data-theme="light"] .geo-card,
[data-theme="light"] .geo-result-card,
[data-theme="light"] .seo-card,
[data-theme="light"] .seo-result-card {
	background: #ffffff !important;
	color: #16203a !important;
	border-color: rgba(156,125,46,.2) !important;
}
/* Alle tiefen blauen Backgrounds in Plugin-Bereichen */
[data-theme="light"] [style*="background:#07101f"],
[data-theme="light"] [style*="background: #07101f"],
[data-theme="light"] [style*="background:#0d1e3a"],
[data-theme="light"] [style*="background: #0d1e3a"],
[data-theme="light"] [style*="background:#0a1428"],
[data-theme="light"] [style*="background: #0a1428"],
[data-theme="light"] [style*="background-color:#07101f"],
[data-theme="light"] [style*="background-color:#0d1e3a"],
[data-theme="light"] [style*="background-color:#0a1428"] {
	background: #f7f4ee !important;
	background-color: #f7f4ee !important;
}

/* ── MONITORING ─────────────────────────────────────────────── */
[data-theme="light"] .msd-monitor-wrap,
[data-theme="light"] .msd-monitor-dashboard,
[data-theme="light"] .monitor-section,
[data-theme="light"] .monitor-hero {
	background-color: #f7f4ee !important;
	color: #16203a !important;
}
[data-theme="light"] .monitor-card,
[data-theme="light"] .msd-monitor-card,
[data-theme="light"] .monitor-stat-box {
	background: #ffffff !important;
	border-color: rgba(156,125,46,.2) !important;
	color: #16203a !important;
}
[data-theme="light"] .monitor-card h2,
[data-theme="light"] .monitor-card h3,
[data-theme="light"] .msd-monitor-card h2,
[data-theme="light"] .msd-monitor-card h3 { color: #16203a !important; }
[data-theme="light"] .monitor-stat { color: rgba(22,32,58,.7) !important; }
[data-theme="light"] .monitor-stat-value { color: #9c7d2e !important; }
[data-theme="light"] .monitor-status--ok { color: #15803d; background: rgba(21,128,61,.08); border-color: rgba(21,128,61,.25); }
[data-theme="light"] .monitor-status--error { color: #b91c1c; background: rgba(185,28,28,.06); border-color: rgba(185,28,28,.2); }

/* ── KI KURS ────────────────────────────────────────────────── */
[data-theme="light"] .ki-kurs-page,
[data-theme="light"] .kurs-wrap,
[data-theme="light"] .kurs-section,
[data-theme="light"] .kurs-hero,
[data-theme="light"] .ki-course-wrap { background-color: #f7f4ee !important; color: #16203a !important; }
[data-theme="light"] .kurs-card,
[data-theme="light"] .kurs-module,
[data-theme="light"] .ki-kurs-card,
[data-theme="light"] .kurs-step { background: #ffffff !important; border-color: rgba(156,125,46,.2) !important; color: #16203a !important; }
[data-theme="light"] .kurs-hero__heading,
[data-theme="light"] .ki-kurs-h1 { color: #16203a !important; }
[data-theme="light"] .kurs-hero__sub,
[data-theme="light"] .ki-kurs-sub { color: rgba(22,32,58,.7) !important; }

/* ── KI KURS DASHBOARD & LOGIN ──────────────────────────────── */
[data-theme="light"] .kurs-dashboard,
[data-theme="light"] .kurs-dashboard-wrap,
[data-theme="light"] .ki-dashboard,
[data-theme="light"] .ki-dashboard-wrap,
[data-theme="light"] .kurs-login-wrap,
[data-theme="light"] .ki-login-wrap { background-color: #f7f4ee !important; color: #16203a !important; }
[data-theme="light"] .kurs-dashboard__card,
[data-theme="light"] .ki-dashboard__card,
[data-theme="light"] .dashboard-card,
[data-theme="light"] .login-card { background: #ffffff !important; border-color: rgba(156,125,46,.2) !important; color: #16203a !important; }
[data-theme="light"] .dashboard-card h2,
[data-theme="light"] .dashboard-card h3 { color: #16203a !important; }
[data-theme="light"] .login-card h2 { color: #16203a !important; }
[data-theme="light"] .ki-login__input,
[data-theme="light"] .login-input { background: #ffffff; border: 1px solid rgba(156,125,46,.4); color: #16203a; }
[data-theme="light"] .ki-login__input:focus { border-color: #9c7d2e; outline: 2px solid rgba(156,125,46,.3); }

/* ── PRÄMIEN VERDIENEN ──────────────────────────────────────── */
[data-theme="light"] .pramien-page,
[data-theme="light"] .praemien-page,
[data-theme="light"] .kwk-lp,
[data-theme="light"] .kwk-lp__hero,
[data-theme="light"] .msd-provision-wrap { background-color: #f7f4ee !important; color: #16203a !important; }
[data-theme="light"] .kwk-lp__card,
[data-theme="light"] .praemien-card,
[data-theme="light"] .pramien-box,
[data-theme="light"] .kwk-lp__tier-card { background: #ffffff !important; border-color: rgba(156,125,46,.2) !important; color: #16203a !important; }
[data-theme="light"] .kwk-lp__hero-h1,
[data-theme="light"] .praemien-h1 { color: #16203a !important; }
[data-theme="light"] .kwk-lp__hero-sub,
[data-theme="light"] .praemien-sub { color: rgba(22,32,58,.7) !important; }
/* KWK Shortcode-Elemente */
[data-theme="light"] .kwk-wrap,
[data-theme="light"] .kwk-card,
[data-theme="light"] .kwk-portal { background: #f7f4ee; color: #16203a; }
[data-theme="light"] .kwk-card { background: #ffffff !important; border-color: rgba(156,125,46,.2) !important; }
[data-theme="light"] .kwk-stat-box { background: #ffffff; border-color: rgba(156,125,46,.2); }
[data-theme="light"] .kwk-stat-num { color: #16203a; }
[data-theme="light"] .kwk-stat-lbl { color: rgba(22,32,58,.6); }
[data-theme="light"] .kwk-tab { color: rgba(22,32,58,.7); background: rgba(156,125,46,.06); }
[data-theme="light"] .kwk-tab.active { background: rgba(156,125,46,.15); color: #9c7d2e; }
[data-theme="light"] .kwk-panel { background: #f7f4ee; }
[data-theme="light"] .kwk-link-input { background: #ffffff; border-color: rgba(156,125,46,.3); color: #16203a; }
[data-theme="light"] .kwk-hint { color: rgba(22,32,58,.6); }
[data-theme="light"] .kwk-table thead tr { background: #16203a; }
[data-theme="light"] .kwk-faq-item { border-color: rgba(156,125,46,.2); }
[data-theme="light"] .kwk-faq-q { color: #16203a; }
[data-theme="light"] .kwk-faq-a { color: rgba(22,32,58,.7); }
[data-theme="light"] .kwk-portal-header { border-color: rgba(156,125,46,.15); }
[data-theme="light"] .kwk-portal-name { color: #16203a; }
[data-theme="light"] .kwk-tier-card { background: rgba(156,125,46,.04) !important; border-color: rgba(156,125,46,.15) !important; }
[data-theme="light"] .kwk-tier-card--current { background: rgba(156,125,46,.1) !important; }
[data-theme="light"] .kwk-badge-item--earned { background: rgba(156,125,46,.06) !important; border-color: rgba(156,125,46,.3) !important; }
[data-theme="light"] .kwk-badge-item--locked { background: rgba(22,32,58,.04) !important; }
[data-theme="light"] .kwk-badge-label { color: #16203a; }
[data-theme="light"] .kwk-badge-desc { color: rgba(22,32,58,.6); }
[data-theme="light"] .kwk-cert-box { background: rgba(156,125,46,.05); border-color: rgba(156,125,46,.2); }
[data-theme="light"] .kwk-bonus-bar { background: rgba(156,125,46,.08); border-color: rgba(156,125,46,.25); }
[data-theme="light"] .kwk-progress-bar-wrap { background: rgba(22,32,58,.1); }
[data-theme="light"] .kwk-progress-label { color: rgba(22,32,58,.6); }

/* ── KUNDEN WERBEN KUNDEN (kwk-sys) ────────────────────────── */
/* → wird von kwk-system.css abgedeckt via CSS custom properties */

/* ── BLOG SEITE ─────────────────────────────────────────────── */
[data-theme="light"] .page-blog-wrap,
[data-theme="light"] .blog-hero,
[data-theme="light"] .msd-blog-hero,
[data-theme="light"] .blog-listing,
[data-theme="light"] .blog-archive-wrap { background: #f7f4ee !important; color: #16203a !important; }
[data-theme="light"] .blog-card,
[data-theme="light"] .msd-blog-card,
[data-theme="light"] .post-card {
	background: #ffffff !important;
	border-color: rgba(156,125,46,.2) !important;
	color: #16203a !important;
}
[data-theme="light"] .blog-card__title,
[data-theme="light"] .msd-blog-card__title,
[data-theme="light"] .post-card__title { color: #16203a !important; }
[data-theme="light"] .blog-card__excerpt,
[data-theme="light"] .msd-blog-card__excerpt,
[data-theme="light"] .post-card__excerpt { color: rgba(22,32,58,.7) !important; }
[data-theme="light"] .blog-card:hover,
[data-theme="light"] .msd-blog-card:hover { border-color: rgba(156,125,46,.4) !important; }
[data-theme="light"] .blog-tag,
[data-theme="light"] .msd-tag { background: rgba(156,125,46,.1); color: #9c7d2e; border-color: rgba(156,125,46,.25); }
/* Pagination */
[data-theme="light"] .blog-pagination a,
[data-theme="light"] .msd-pagination a { color: #16203a; border-color: rgba(156,125,46,.25); }
[data-theme="light"] .blog-pagination .current,
[data-theme="light"] .msd-pagination .current { background: #9c7d2e; color: #ffffff; border-color: #9c7d2e; }

/* ── FRONTPAGE BLOG-SEKTION ─────────────────────────────────── */
[data-theme="light"] .blog-section,
[data-theme="light"] .opt-blog-section,
[data-theme="light"] .recent-posts-section,
[data-theme="light"] .frontpage-blog,
[data-theme="light"] [class*="blog-section"] { background: #f7f4ee !important; }
[data-theme="light"] .blog-section__card,
[data-theme="light"] .opt-blog-section__card,
[data-theme="light"] .recent-post-card,
[data-theme="light"] .frontpage-blog__card {
	background: #ffffff !important;
	border-color: rgba(156,125,46,.18) !important;
	color: #16203a !important;
}
[data-theme="light"] .blog-section__card-title,
[data-theme="light"] .recent-post-card__title { color: #16203a !important; }
[data-theme="light"] .blog-section__card-excerpt,
[data-theme="light"] .recent-post-card__excerpt { color: rgba(22,32,58,.7) !important; }

/* ── INPUT & FORMULARE ──────────────────────────────────────── */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="password"],
[data-theme="light"] textarea,
[data-theme="light"] select {
	background: #ffffff;
	border-color: rgba(156,125,46,.35);
	color: #16203a;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: rgba(22,32,58,.4); }
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
	border-color: #9c7d2e;
	outline: 2px solid rgba(156,125,46,.25);
	outline-offset: 0;
	background: #ffffff;
}

/* ── TABELLEN ───────────────────────────────────────────────── */
[data-theme="light"] table { background: #ffffff; color: #16203a; }
[data-theme="light"] table thead { background: #16203a; color: #f7f4ee; }
[data-theme="light"] table tbody tr { border-color: rgba(156,125,46,.15); }
[data-theme="light"] table tbody tr:nth-child(even) { background: rgba(156,125,46,.04); }
[data-theme="light"] th, [data-theme="light"] td { color: #16203a; }

/* ── BADGES & CHIPS ─────────────────────────────────────────── */
[data-theme="light"] .opt-badge,
[data-theme="light"] .msd-badge,
[data-theme="light"] .chip {
	background: rgba(156,125,46,.1);
	color: #9c7d2e;
	border-color: rgba(156,125,46,.25);
}

/* ── SINGLE POST ────────────────────────────────────────────── */
[data-theme="light"] .single-post,
[data-theme="light"] .article-wrap,
[data-theme="light"] .entry-content { background: #f7f4ee; color: #16203a; }
[data-theme="light"] .entry-content h1,
[data-theme="light"] .entry-content h2,
[data-theme="light"] .entry-content h3,
[data-theme="light"] .entry-content h4 { color: #16203a; }
[data-theme="light"] .entry-content p,
[data-theme="light"] .entry-content li { color: rgba(22,32,58,.82); }
[data-theme="light"] .entry-content a { color: #9c7d2e; }
[data-theme="light"] .entry-content a:hover { color: #b8923a; }
[data-theme="light"] .entry-content blockquote { border-color: #9c7d2e; background: rgba(156,125,46,.06); }
[data-theme="light"] .entry-content code,
[data-theme="light"] .entry-content pre {
	background: rgba(22,32,58,.06);
	color: #1e3a5f;
	border: 1px solid rgba(22,32,58,.12);
}

/* ── SIDEBAR & WIDGETS ──────────────────────────────────────── */
[data-theme="light"] .sidebar,
[data-theme="light"] .widget { background: #ffffff; color: #16203a; }
[data-theme="light"] .widget-title { color: #16203a; border-color: rgba(156,125,46,.3); }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
[data-theme="light"] .breadcrumb,
[data-theme="light"] .breadcrumbs { color: rgba(22,32,58,.6); }
[data-theme="light"] .breadcrumb a,
[data-theme="light"] .breadcrumbs a { color: #9c7d2e; }

/* ── SCROLLBAR (Webkit) ─────────────────────────────────────── */
[data-theme="light"] ::-webkit-scrollbar-track { background: #efe9dd; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(156,125,46,.4); border-radius: 4px; }

/* ── Focus-Visible global ───────────────────────────────────── */
[data-theme="light"] :focus-visible {
	outline: 3px solid #9c7d2e;
	outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   GEO CHECK — Hardcodierte Dunkel-Hintergründe → Light Mode
   ════════════════════════════════════════════════════════════ */
[data-theme="light"] #msd-geo-wrap { color: #16203a; }
[data-theme="light"] .msd-geo-hero {
	background: linear-gradient(160deg, #f0eae0 0%, #e8e0d0 100%) !important;
}
[data-theme="light"] .msd-geo-title { color: #16203a !important; }
[data-theme="light"] .msd-geo-title em { color: #9c7d2e !important; }
[data-theme="light"] .msd-geo-sub { color: rgba(22,32,58,.65) !important; }
[data-theme="light"] .msd-geo-hint { color: rgba(22,32,58,.45) !important; }
[data-theme="light"] #msd-geo-url {
	background: #ffffff !important;
	border: 1px solid rgba(156,125,46,.4) !important;
	color: #16203a !important;
}
[data-theme="light"] #msd-geo-url::placeholder { color: rgba(22,32,58,.35) !important; }
[data-theme="light"] #msd-geo-loading { background: #f0eae0 !important; }
[data-theme="light"] #msd-geo-loading h3 { color: #16203a !important; }
[data-theme="light"] .msd-step { color: rgba(22,32,58,.3) !important; }
[data-theme="light"] .msd-step-active { color: #9c7d2e !important; }
[data-theme="light"] #msd-geo-results { background: #f7f4ee !important; }
[data-theme="light"] .msd-geo-score-header {
	background: linear-gradient(180deg, #f0eae0, #e8e0d0) !important;
}
[data-theme="light"] .msd-score-num { color: #16203a !important; }
[data-theme="light"] .msd-score-grade { color: #16203a !important; }
[data-theme="light"] .msd-score-summary { color: rgba(22,32,58,.65) !important; }
[data-theme="light"] .msd-score-lbl { color: rgba(22,32,58,.45) !important; }
[data-theme="light"] .msd-result-url { color: #9c7d2e !important; }
[data-theme="light"] .msd-geo-stat { background: rgba(22,32,58,.04) !important; }
[data-theme="light"] .msd-geo-tabs { background: #e8e0d0 !important; border-color: rgba(156,125,46,.2) !important; }
[data-theme="light"] .msd-geo-tab { color: rgba(22,32,58,.65) !important; }
[data-theme="light"] .msd-geo-tab.active { background: #9c7d2e !important; color: #fff !important; }
[data-theme="light"] .msd-geo-item { background: #ffffff !important; border-color: rgba(156,125,46,.15) !important; color: #16203a !important; }
[data-theme="light"] .msd-geo-item-label { color: #16203a !important; }
[data-theme="light"] .msd-geo-item-detail { color: rgba(22,32,58,.6) !important; }
[data-theme="light"] .msd-geo-gate { background: #f0eae0 !important; border-color: rgba(156,125,46,.25) !important; }
[data-theme="light"] .msd-geo-gate h3,
[data-theme="light"] .msd-geo-gate-inner h3 { color: #16203a !important; }
[data-theme="light"] .msd-geo-gate p { color: rgba(22,32,58,.65) !important; }

/* ═══════════════════════════════════════════════════════════════
   BLOG SINGLE POST — msd-blog.css hardcodierte Farben
   ════════════════════════════════════════════════════════════ */
[data-theme="light"] .msd-single-post { background: #f7f4ee !important; color: #16203a !important; }
[data-theme="light"] .msd-single-post__hero { background: linear-gradient(160deg, #f0eae0, #e8e0d0) !important; }
[data-theme="light"] .msd-single-post__title { color: #16203a !important; }
[data-theme="light"] .msd-single-post__meta { color: rgba(22,32,58,.55) !important; }
[data-theme="light"] .msd-single-post__cat-badge { background: rgba(156,125,46,.12); color: #9c7d2e; border-color: rgba(156,125,46,.25); }
[data-theme="light"] .msd-single-post__content { background: #f7f4ee; color: rgba(22,32,58,.82); }
[data-theme="light"] .msd-single-post__content h2,
[data-theme="light"] .msd-single-post__content h3 { color: #16203a; }
[data-theme="light"] .msd-single-post__content a { color: #9c7d2e; }
[data-theme="light"] .msd-single-post__related { background: #efe9dd !important; border-color: rgba(156,125,46,.15) !important; }
[data-theme="light"] .msd-single-post__related-title { color: #16203a !important; }

/* Blog Archive */
[data-theme="light"] .msd-blog-archive { background: #f7f4ee !important; }
[data-theme="light"] .msd-blog-archive__hero { background: linear-gradient(160deg, #f0eae0, #e8e0d0) !important; }
[data-theme="light"] .msd-blog-archive__title { color: #16203a !important; }
[data-theme="light"] .msd-blog-card { background: #ffffff !important; border-color: rgba(156,125,46,.2) !important; color: #16203a !important; }
[data-theme="light"] .msd-blog-card__title { color: #16203a !important; }
[data-theme="light"] .msd-blog-card__excerpt { color: rgba(22,32,58,.7) !important; }
[data-theme="light"] .msd-blog-card__cat { color: #9c7d2e !important; }
[data-theme="light"] .msd-blog-card:hover { border-color: rgba(156,125,46,.4) !important; }

/* ═══════════════════════════════════════════════════════════════
   BLOG SEKTION (Frontpage)
   ════════════════════════════════════════════════════════════ */
[data-theme="light"] .blog-section,
[data-theme="light"] .msd-frontpage-blog { background: #f7f4ee !important; }
[data-theme="light"] .blog-section__card { background: #ffffff !important; border-color: rgba(156,125,46,.18) !important; }
[data-theme="light"] .blog-section__card h3,
[data-theme="light"] .blog-section__card-title { color: #16203a !important; }
[data-theme="light"] .blog-section__card p,
[data-theme="light"] .blog-section__card-excerpt { color: rgba(22,32,58,.7) !important; }

/* ═══════════════════════════════════════════════════════════════
   HEADER: Einheitliche Font-Größen (override falls Plugin-CSS
   größere Fonts setzt)
   ════════════════════════════════════════════════════════════ */
.site-header .msd-menu__link,
.msd-header .msd-menu__link {
	font-size: clamp(.74rem, .82vw, .86rem) !important;
}
@media (max-width: 1100px) {
	.site-header .msd-menu__link,
	.msd-header .msd-menu__link { font-size: .95rem !important; }
}
/* Light mode Header fix: stärkere Spezifität */
[data-theme="light"] .site-header.msd-header {
	background: linear-gradient(180deg, #f7f4ee 0%, #ffffff 100%) !important;
	border-bottom-color: rgba(156,125,46,.25) !important;
}
[data-theme="light"] .site-header.msd-header .msd-menu__link { color: rgba(26,36,56,.7) !important; }
[data-theme="light"] .site-header.msd-header .msd-menu__link:hover { color: #b8923a !important; }
