/* ============================================
   solarsicher.de — Stylesheet
   Brand: Photovoltaik & Waermepumpe Versicherung
   Palette: Solar Green + Sky Blue + Warm Yellow + Dark Navy
   Font: Space Grotesk (Headings) + Nunito Sans (Body)
   Design: "Clean Energy, Clean Design"
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Nunito+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  --primary: #22c55e;
  --primary-hover: #16a34a;
  --primary-light: rgba(34, 197, 94, 0.1);
  --secondary: #eab308;
  --secondary-hover: #ca8a04;
  --accent: #0ea5e9;
  --sky: #0ea5e9;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --solar-green: #22c55e;
  --solar-yellow: #eab308;
  --bg-dark: #0f172a;
  --bg-footer: #0a0f1a;
  --bg-white: #ffffff;
  --bg-light: #f0fdf4;
  --bg-sky-light: #f0f9ff;
  --text: #334155;
  --text-heading: #0f172a;
  --text-light: #64748b;
  --text-dark: #0f172a;
  --border: #e2e8f0;
  --success: #22c55e;
  --error: #ef4444;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --content-width: 1200px;
  --section-padding: 80px;
  --radius: 12px;
}

/* === KEYFRAME ANIMATIONS === */
@keyframes heroTextReveal {
  0% { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(234, 179, 8, 0.3), 0 0 80px rgba(234, 179, 8, 0.1); }
  50% { box-shadow: 0 0 60px rgba(234, 179, 8, 0.5), 0 0 120px rgba(234, 179, 8, 0.15); }
}

@keyframes sunRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Scroll reveal */
.ss-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ss-reveal.ss-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 { font-size: 3.2rem; margin-bottom: 1.2rem; }
h2 { font-size: 2.3rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; font-weight: 600; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* === LAYOUT === */
.container { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }
.section { padding: var(--section-padding) 0; }
.section--alt { background: var(--bg-light); }
.section--dark { background: var(--bg-dark); color: #ffffff; }
.section--dark h2, .section--dark h3 { color: #ffffff; }

/* === HEADER / NAVIGATION === */
.header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.header__logo:hover { text-decoration: none; }
.logo__solar { color: var(--solar-green); }
.logo__sicher { color: #ffffff; }

.nav { display: flex; align-items: center; gap: 8px; }

.nav__list {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav__link {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--solar-green);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left;
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link:hover { background: rgba(255,255,255,0.06); color: #ffffff; text-decoration: none; }
.nav__link--active { color: var(--primary); }

.nav__cta {
  background: var(--solar-green);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-body);
  margin-left: 8px;
  transition: background 0.2s, box-shadow 0.3s;
  text-decoration: none;
}

.nav__cta:hover {
  background: var(--primary-hover);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* === DROPDOWN NAVIGATION === */
.nav__dropdown { position: relative; }

.nav__dropdown-trigger {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown-trigger::after {
  content: '\25BE';
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.nav__dropdown:hover .nav__dropdown-trigger,
.nav__dropdown-trigger:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

.nav__dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 24px;
  min-width: 280px;
  z-index: 200;
  border: 1px solid var(--border);
  border-top: 3px solid var(--solar-green);
}

.nav__dropdown:hover .nav__dropdown-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.nav__dropdown-column { min-width: 180px; }

.nav__dropdown-link {
  display: block;
  padding: 6px 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
  text-decoration: none;
}

.nav__dropdown-link:hover { color: var(--solar-green); text-decoration: none; padding-left: 4px; }

.nav__dropdown-footer {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.nav__dropdown-footer a { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0c2340 35%, #0a3520 70%, #0f2918 100%);
  color: #ffffff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

/* Grid pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 6s ease-in-out infinite;
}

/* Green ambient glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  color: #ffffff;
  font-size: 3.4rem;
  max-width: 720px;
  line-height: 1.08;
  animation: heroTextReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero h1 .text-green { color: var(--solar-green); }
.hero h1 .text-yellow { color: var(--solar-yellow); }

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.8);
  animation: heroTextReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero__bullets { list-style: none; padding: 0; margin: 0 0 2rem; animation: heroTextReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }

.hero__bullets li {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  padding-left: 1.8em;
  position: relative;
  color: rgba(255,255,255,0.9);
}

.hero__bullets li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--solar-green);
  font-weight: 700;
  font-size: 1.1em;
}

.hero .btn { animation: heroTextReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }

.hero__trust {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  animation: heroTextReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.hero__trust strong { color: var(--solar-green); }

/* Hero visual panel with sun animation */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, #0c2340 50%, #0a1f35 100%);
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

/* Grid lines inside visual */
.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero__sun {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fbbf24, #eab308, #ca8a04);
  animation: sunPulse 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

/* Sun rays */
.hero__sun::after {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg, rgba(234, 179, 8, 0.15) 10deg, transparent 20deg,
    transparent 30deg, rgba(234, 179, 8, 0.15) 40deg, transparent 50deg,
    transparent 60deg, rgba(234, 179, 8, 0.15) 70deg, transparent 80deg,
    transparent 90deg, rgba(234, 179, 8, 0.15) 100deg, transparent 110deg,
    transparent 120deg, rgba(234, 179, 8, 0.15) 130deg, transparent 140deg,
    transparent 150deg, rgba(234, 179, 8, 0.15) 160deg, transparent 170deg,
    transparent 180deg, rgba(234, 179, 8, 0.15) 190deg, transparent 200deg,
    transparent 210deg, rgba(234, 179, 8, 0.15) 220deg, transparent 230deg,
    transparent 240deg, rgba(234, 179, 8, 0.15) 250deg, transparent 260deg,
    transparent 270deg, rgba(234, 179, 8, 0.15) 280deg, transparent 290deg,
    transparent 300deg, rgba(234, 179, 8, 0.15) 310deg, transparent 320deg,
    transparent 330deg, rgba(234, 179, 8, 0.15) 340deg, transparent 350deg
  );
  animation: sunRotate 30s linear infinite;
}

/* Solar panel shapes */
.hero__panels {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 1;
}
.hero__panel-cell {
  width: 40px;
  height: 28px;
  background: linear-gradient(135deg, #1e3a5f, #2d4a6f);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.hero__panel-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: glowLine 4s ease-in-out infinite;
}
.hero__panel-cell:nth-child(2)::before { animation-delay: 0.5s; }
.hero__panel-cell:nth-child(3)::before { animation-delay: 1s; }
.hero__panel-cell:nth-child(4)::before { animation-delay: 1.5s; }
.hero__panel-cell:nth-child(5)::before { animation-delay: 2s; }

/* === STAT COUNTER BAR === */
.stats-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-bar__item { position: relative; }
.stats-bar__item + .stats-bar__item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}
.stats-bar__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--solar-green);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.stats-bar__label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-body);
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.3s;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: var(--solar-green);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
}
.btn--secondary { background: var(--secondary); color: #0f172a; }
.btn--secondary:hover { background: var(--secondary-hover); color: #0f172a; }
.btn--outline { background: transparent; color: var(--solar-green); border: 2px solid var(--solar-green); }
.btn--outline:hover { background: var(--solar-green); color: #ffffff; }
.btn--white { background: #ffffff; color: var(--bg-dark); }
.btn--white:hover { background: #f0f0f0; color: var(--bg-dark); }
.btn--large, .btn--lg { padding: 18px 44px; font-size: 18px; }

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--solar-green), var(--sky));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.1);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

.card__icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }
.card--highlight { border-left: 4px solid var(--solar-green); }
.card--highlight::before { display: none; }
.card__price { font-size: 1.1rem; font-weight: 700; color: var(--solar-green); margin: 0.8rem 0; }

/* Card glow effect on hover */
.card--glow:hover {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.15), 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* === GRID HELPERS === */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* === TABLES === */
.table-wrapper, .table-responsive { overflow-x: auto; margin: 1.5rem 0; }
table, .table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
thead { background: var(--bg-light); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 700; color: var(--text-heading); white-space: nowrap; font-family: var(--font-heading); }
tbody tr:hover { background: rgba(34, 197, 94, 0.04); }

/* === STEPS / PROCESS === */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { text-align: center; padding: 24px; position: relative; }

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--solar-green), #16a34a);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.step h3 { margin-bottom: 0.5rem; }

/* === FAQ / ACCORDION === */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-heading);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--solar-green); }

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--solar-green);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after { content: '\2212'; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 20px; }
.faq-answer p { color: var(--text); line-height: 1.7; }

/* === RECHNER === */
.rechner-section { width: 100%; max-width: 100%; padding: 0; margin: 0; }
.rechner-section #ensurance_view_root { width: 100%; min-height: 600px; }
.rechner-wrapper { width: 100vw; margin-left: calc(-50vw + 50%); padding: 0; }

/* === CTA BANNER === */
.cta-banner, .cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0c2340 50%, #0a3520 100%);
  color: #ffffff;
  text-align: center;
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before, .cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2, .cta-section h2 { color: #ffffff; margin-bottom: 0.8rem; position: relative; }
.cta-banner p, .cta-section p { max-width: 600px; margin: 0 auto 1.5rem; opacity: 0.85; position: relative; }

/* === BREADCRUMB === */
.breadcrumb { padding: 16px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }
.section .breadcrumb { color: var(--text); padding: 0 0 16px; }
.section .breadcrumb a { color: var(--text); }
.section .breadcrumb a:hover { color: var(--primary); }

/* === ARTICLE CONTENT === */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.article h2:first-of-type { border-top: none; padding-top: 0; }
.article h3 { margin-top: 1.5rem; }
.article ul, .article ol { margin-bottom: 1rem; }
.article li { margin-bottom: 0.4rem; }

.article blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 1.5rem 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.key-facts {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.key-facts h3 { margin-top: 0; }
.key-facts ul { margin-bottom: 0; }

.tip-box {
  background: rgba(34, 197, 94, 0.08);
  border-left: 4px solid var(--success);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.tip-box strong { color: var(--text-heading); }

.warning-box {
  background: rgba(239, 68, 68, 0.06);
  border-left: 4px solid var(--error);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.toc {
  background: var(--bg-light);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

.toc h3 { margin-top: 0; font-size: 1rem; }
.toc ol { margin-bottom: 0; }
.toc li { margin-bottom: 0.3rem; }
.toc a { color: var(--text); font-size: 0.95rem; }
.toc a:hover { color: var(--primary); }

.related-links {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 2rem 0;
}

.related-links h3 { margin-top: 0; font-size: 1rem; color: var(--text-heading); }
.related-links ul { list-style: none; padding: 0; margin: 0; }
.related-links li { margin-bottom: 0.4rem; }
.related-links a { font-size: 0.95rem; }

/* === FOOTER === */
.footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--solar-green), var(--sky), var(--solar-yellow));
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__brand { padding-right: 16px; }
.footer__brand .header__logo { font-size: 1.3rem; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.85rem; line-height: 1.6; }

.footer h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer__links { list-style: none; padding: 0; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s, padding-left 0.2s; }
.footer__links a:hover { color: var(--solar-green); text-decoration: none; padding-left: 3px; }
.footer__contact a { color: var(--solar-green); }
.footer__contact .btn { color: #ffffff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
}

/* === TRUST BAR === */
.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.trust-bar__item { text-align: center; }
.trust-bar__stars { font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 4px; color: var(--primary); }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.lead { font-size: 1.15rem; line-height: 1.7; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-bar__item + .stats-bar__item::before { display: none; }
}

@media (max-width: 768px) {
  :root { --section-padding: 48px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2.2rem; }
  .hero__visual { display: none; }

  .nav__list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .nav__list.active { display: flex; }
  .nav__link, .nav__dropdown-trigger { padding: 12px 0; display: block; width: 100%; text-align: left; }
  .nav__cta { margin-left: 0; margin-top: 8px; display: inline-block; }
  .nav__toggle { display: block; }

  .nav__dropdown-panel {
    position: static; transform: none; box-shadow: none; border: none;
    background: rgba(255,255,255,0.05); border-radius: var(--radius);
    padding: 8px 16px; margin-bottom: 8px; border-top: none;
  }

  .nav__dropdown:hover .nav__dropdown-panel { display: none; }
  .nav__dropdown.active .nav__dropdown-panel { display: block; }
  .nav__dropdown-link { color: rgba(255,255,255,0.8); font-size: 0.85rem; padding: 6px 0; }
  .nav__dropdown-footer { border-top-color: rgba(255,255,255,0.1); }
  .nav__dropdown-footer a { color: var(--primary); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  th, td { padding: 8px 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.85rem; }
  .btn--large, .btn--lg { padding: 14px 28px; font-size: 16px; }
  .trust-bar { flex-direction: column; gap: 16px; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .hero__grid { grid-template-columns: 55fr 45fr; gap: 3rem; }
}
