/* =========================================================
   solar-foerderung.ch — palette overrides + descam + legal-safe
   Minimal-invasive: swaps purple/cyan/orange palette for
   navy/cream/gold, hides floating scam CTAs, calms gradients.
   ========================================================= */

:root {
  /* swap the brand purple to swiss navy + gold */
  --primary: #0f2942;
  --primary-dark: #0a1f33;
  --accent: #d4a838;
  --accent-dark: #b58e2a;
  --bg: #faf7f0;
  --bg2: #f3ede0;
}

/* --- Hide scam patterns: floating CTAs, back-to-top, urgency --- */
.back-to-top,
#pvf-quick-trigger,
#pvf-quick-popup {
  display: none !important;
}

/* --- Force calm body background instead of light-purple --- */
body { background: #faf7f0 !important; color: #1a2233 !important; }
h1, h2, h3, h4, h5, h6 { color: #0f2942 !important; }
a { color: #0f2942; }
a:hover { color: #d4a838 !important; }

/* --- Buttons: navy + gold (was purple gradient + cyan) --- */
.btn-primary {
  background: #0f2942 !important;
  color: #fff !important;
  box-shadow: none !important;
  border: 0 !important;
}
.btn-primary:hover {
  background: #0a1f33 !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
.btn-secondary {
  background: transparent !important;
  color: #0f2942 !important;
  border: 2px solid #0f2942 !important;
}
.btn-secondary:hover {
  background: #0f2942 !important;
  color: #fff !important;
}
.btn-cyan, .btn-accent {
  background: #d4a838 !important;
  color: #0f2942 !important;
  box-shadow: none !important;
}
.btn-cyan:hover, .btn-accent:hover {
  background: #b58e2a !important;
  color: #fff !important;
}
.nav-cta {
  background: #0f2942 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* --- Tone down badges --- */
.badge-purple { background: rgba(15,41,66,.10) !important; color: #0f2942 !important; }
.badge-cyan   { background: rgba(212,168,56,.15) !important; color: #b58e2a !important; }
.badge-green  { background: rgba(47,125,50,.12) !important; color: #1b5e20 !important; }

/* --- Disable hero gradient text and inline purple pills --- */
.highlight, .gradient-text {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #d4a838 !important;
  -webkit-text-fill-color: #d4a838 !important;
}
.nav-links a[style*="#7c3aed"],
a[style*="#7c3aed"],
[style*="#7c3aed"] {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}

/* --- Card icon backgrounds toned down --- */
.card-icon, .card-icon-purple, .card-icon-cyan, .card-icon-green {
  background: rgba(15,41,66,.08) !important;
  color: #0f2942 !important;
}

/* --- CTA section: no purple gradient + ensure white text on dark bg --- */
.cta-section {
  background: linear-gradient(135deg, #0f2942 0%, #0a1f33 100%) !important;
}
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section p {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.cta-section .btn-secondary {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,.5) !important;
  color: #fff !important;
}
.cta-section .btn-secondary:hover {
  background: #fff !important;
  color: #0f2942 !important;
}

/* --- Footer: calm navy --- */
.site-footer { background: #0f2942 !important; color: rgba(255,255,255,.75) !important; }
.site-footer h4 { color: #fff !important; }
.site-footer a { color: rgba(255,255,255,.75) !important; }
.site-footer a:hover { color: #d4a838 !important; }

/* --- Canton cards (when revealed): readable & calm --- */
.canton-card {
  background: #fff !important;
  border: 1px solid rgba(15,41,66,.08) !important;
}
.canton-card .canton-name { color: #0f2942 !important; }
.canton-card .canton-amount { color: #b58e2a !important; }
.canton-card .canton-note { color: #5a6478 !important; }

/* --- Hero: clean navy gradient (no chaotic chalet/coins bg-image), solar accent --- */
.hero {
  position: relative;
  min-height: 480px;
  padding: 90px 0 100px !important;
  background:
    radial-gradient(circle at 85% 25%, rgba(212,168,56,.18) 0%, transparent 45%),
    linear-gradient(135deg, #0a1f33 0%, #0f2942 50%, #14365a 100%) !important;
  background-image:
    radial-gradient(circle at 85% 25%, rgba(212,168,56,.18) 0%, transparent 45%),
    linear-gradient(135deg, #0a1f33 0%, #0f2942 50%, #14365a 100%) !important;
  overflow: hidden;
}
/* Subtle sun accent in upper-right for thematic touch (no photo needed) */
.hero::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,56,.22) 0%, rgba(212,168,56,0) 70%);
  z-index: 0;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(2rem, 4.2vw, 3rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  margin-bottom: 18px;
}
.hero h1 .highlight {
  color: #d4a838 !important;
  -webkit-text-fill-color: #d4a838 !important;
}
.hero p {
  color: rgba(255,255,255,.94) !important;
  -webkit-text-fill-color: rgba(255,255,255,.94) !important;
  font-size: 1.08rem;
  max-width: 680px;
  line-height: 1.65;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
  margin-bottom: 28px;
}
.hero-buttons { gap: 14px; margin-bottom: 40px; }
/* Primary CTA in hero — gold, high-contrast, not navy-on-dark */
.hero .btn-primary {
  background: #d4a838 !important;
  color: #0f2942 !important;
  -webkit-text-fill-color: #0f2942 !important;
  border: 0 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.25) !important;
}
.hero .btn-primary:hover {
  background: #e0b647 !important;
  color: #0f2942 !important;
  transform: translateY(-1px);
}
/* Secondary CTA in hero — white outline, readable on dark overlay */
.hero .btn-secondary {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,.7) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 600 !important;
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: #fff !important;
  color: #fff !important;
}

/* Hide hero stats — visual noise that doesn't fit clean design */
.hero-stats { display: none !important; }
.hero-stats-disabled-old {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px !important;
  max-width: 880px;
  margin-top: 0 !important;
}
.hero-stat {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 14px 16px !important;
  border-radius: 10px !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  box-shadow: none !important;
}
.hero-stat .stat-value {
  color: #d4a838 !important;
  -webkit-text-fill-color: #d4a838 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  line-height: 1.2;
}
.hero-stat .stat-label {
  color: rgba(255,255,255,.85) !important;
  -webkit-text-fill-color: rgba(255,255,255,.85) !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
/* Override universal "section[bg-image] [class*=stat]" rule that turns stats into white blocks */
section[style*="background-image"] .hero-stat,
section[style*="background-image"] [class*="hero-stat"] {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}
section[style*="background-image"] .hero-stat .stat-value,
section[style*="background-image"] .hero-stat .stat-label,
section[style*="background-image"] [class*="hero-stat"] * {
  color: inherit !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.4) !important;
}
section[style*="background-image"] .hero-stat .stat-value {
  color: #d4a838 !important;
  -webkit-text-fill-color: #d4a838 !important;
}
section[style*="background-image"] .hero-stat .stat-label {
  color: rgba(255,255,255,.85) !important;
  -webkit-text-fill-color: rgba(255,255,255,.85) !important;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 70px !important; min-height: auto; }
  .hero p { font-size: 1rem; }
}

/* --- Source disclaimer styling --- */
.source-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(15,41,66,.04);
  border-left: 3px solid #d4a838;
  border-radius: 4px;
  font-size: .88rem;
  color: #5a6478;
  line-height: 1.55;
}
.source-note strong { color: #0f2942; }
.source-note a { color: #b58e2a !important; text-decoration: underline; }
.source-note a:hover { color: #0f2942 !important; }
