/* ============================================
   Solar Ratgeber Schweiz - Complete Stylesheet
   Theme: Clean Educational/Guide Style
   Colors: Emerald #059669, Orange #f97316
   Fonts: Merriweather (headings) + Source Sans 3 (body)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #1e293b;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #0f172a;
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: #059669; text-decoration: none; transition: color 0.3s; }
a:hover { color: #047857; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-emerald { color: #059669; }
.text-orange { color: #f97316; }
.bg-light { background: #f0fdf4; }
.bg-white { background: #ffffff; }
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: #64748b; font-size: 1.15rem; max-width: 700px; margin: 0 auto 48px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary {
  background: #059669;
  color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,0.3);
}
.btn-primary:hover {
  background: #047857;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,150,105,0.4);
}
.btn-orange {
  background: #f97316;
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}
.btn-orange:hover {
  background: #ea580c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}
.btn-outline {
  background: transparent;
  color: #059669;
  border: 2px solid #059669;
}
.btn-outline:hover {
  background: #059669;
  color: #fff;
}
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }
.btn-lg { padding: 18px 40px; font-size: 1.15rem; }

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #059669;
}
.nav-logo span { color: #0f172a; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  text-decoration: none;
}
.nav-links a:hover { color: #059669; }
.nav-cta .btn { padding: 10px 24px; font-size: 0.95rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 26px;
  height: 2.5px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, rgba(240,253,244,0.85) 0%, rgba(236,253,245,0.85) 40%, rgba(255,255,255,0.85) 100%), url('../images/hero.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(5,150,105,0.1);
  color: #059669;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.hero h1 .highlight { color: #059669; }
.hero-subtitle { font-size: 1.25rem; color: #64748b; margin-bottom: 32px; max-width: 650px; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.trust-badges { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.trust-badge { text-align: center; }
.trust-badge .number { font-family: 'Merriweather', serif; font-size: 1.5rem; font-weight: 700; color: #059669; }
.trust-badge .label { font-size: 0.85rem; color: #64748b; }

/* --- Benefit Cards --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: #059669;
}
.benefit-icon {
  width: 64px;
  height: 64px;
  background: #f0fdf4;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit-card p { font-size: 0.95rem; color: #64748b; margin: 0; }

/* --- Pricing Table --- */
.pricing-table { width: 100%; border-collapse: collapse; margin: 32px 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.pricing-table thead { background: #059669; color: #fff; }
.pricing-table th { padding: 16px 20px; text-align: left; font-weight: 600; font-family: 'Source Sans 3', sans-serif; font-size: 0.95rem; }
.pricing-table td { padding: 14px 20px; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; }
.pricing-table tbody tr:hover { background: #f0fdf4; }
.pricing-table .highlight-row { background: #f0fdf4; font-weight: 600; }
.table-wrapper { overflow-x: auto; }

/* --- Process Steps --- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { text-align: center; position: relative; }
.process-step::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 40px;
  font-size: 1.5rem;
  color: #059669;
}
.process-step:last-child::after { display: none; }
.step-number {
  width: 56px;
  height: 56px;
  background: #059669;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  margin: 0 auto 16px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: #64748b; }

/* --- Fact Cards --- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fact-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
}
.fact-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.fact-emoji { font-size: 2rem; margin-bottom: 12px; }
.fact-card h4 { font-size: 1rem; margin-bottom: 8px; }
.fact-card p { font-size: 0.88rem; color: #64748b; margin: 0; line-height: 1.5; }

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.blog-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.blog-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #059669;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; gap: 16px; font-size: 0.82rem; color: #94a3b8; margin-bottom: 12px; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a { color: #0f172a; }
.blog-card h3 a:hover { color: #059669; }
.blog-card p { font-size: 0.92rem; color: #64748b; margin-bottom: 16px; }
.blog-card .read-more {
  font-weight: 600;
  font-size: 0.92rem;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-card .read-more:hover { gap: 8px; }

/* --- Blog Index Filters --- */
.blog-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: #059669;
  background: #059669;
  color: #fff;
}

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.active { border-color: #059669; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  color: #0f172a;
  transition: background 0.3s;
}
.faq-question:hover { background: #f8fafc; }
.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #059669;
  transition: transform 0.3s;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.95rem; color: #475569; line-height: 1.7; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { color: #fff; font-size: 2.2rem; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn-orange { font-size: 1.1rem; padding: 16px 36px; }

/* --- Footer --- */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.6; margin-top: 12px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: 'Source Sans 3', sans-serif; font-weight: 600; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: #059669; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: #94a3b8; }
.footer-legal a:hover { color: #059669; }

/* --- Blog Article Page --- */
.article-hero {
  padding: 120px 0 40px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}
.breadcrumb { font-size: 0.85rem; color: #94a3b8; margin-bottom: 24px; }
.breadcrumb a { color: #059669; }
.breadcrumb span { margin: 0 8px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; color: #64748b; margin-bottom: 24px; align-items: center; }
.article-meta .category-tag {
  background: #059669;
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.article-content h2 { margin-top: 48px; margin-bottom: 16px; font-size: 1.7rem; }
.article-content h3 { margin-top: 32px; margin-bottom: 12px; font-size: 1.3rem; }
.article-content p { font-size: 1.05rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; font-size: 1.02rem; line-height: 1.7; }
.article-content strong { color: #0f172a; }
.article-content blockquote {
  border-left: 4px solid #059669;
  padding: 16px 24px;
  margin: 24px 0;
  background: #f0fdf4;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}
.article-cta-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #059669;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.article-cta-box h3 { color: #059669; margin-bottom: 12px; }
.article-cta-box p { margin-bottom: 20px; color: #475569; }

/* Related Posts */
.related-posts { border-top: 2px solid #e2e8f0; padding-top: 48px; margin-top: 60px; }
.related-posts h2 { text-align: center; margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.related-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  transition: all 0.3s;
}
.related-card:hover { border-color: #059669; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.related-card h4 { font-size: 1rem; margin-bottom: 8px; }
.related-card h4 a { color: #0f172a; }
.related-card h4 a:hover { color: #059669; }
.related-card p { font-size: 0.85rem; color: #64748b; margin: 0; }

/* --- Wissen Page --- */
.wissen-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.wissen-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 16px;
  transition: all 0.3s;
}
.wissen-card:hover { border-color: #059669; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.wissen-number {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
  min-width: 40px;
}
.wissen-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.wissen-card p { font-size: 0.9rem; color: #64748b; margin: 0; }

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Counter Animation --- */
.counter { display: inline-block; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.5rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-step::after { display: none; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 110px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .section-padding { padding: 50px 0; }
  .container { padding: 0 16px; }

  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
    transform: translateY(-120%);
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.active { transform: translateY(0); }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .benefits-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .wissen-grid { grid-template-columns: 1fr; }
  .trust-badges { gap: 24px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .article-content { padding: 24px 0 40px; }
  .pricing-table th, .pricing-table td { padding: 10px 12px; font-size: 0.85rem; }
}

/* --- Print Styles --- */
@media print {
  .header, .footer, .cta-section, .hamburger, .article-cta-box, .related-posts { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .article-content { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: underline; }
  .hero { padding: 20px 0; background: none; }
  h1 { font-size: 24pt; }
  h2 { font-size: 18pt; }
}


/* === Mobile Logo Size === */
@media (max-width: 768px) {
  .logo img, .nav-logo img, .navbar-brand img, .nav-brand img, .navbar__logo img {
    height: 36px !important;
  }
}

/* === Mobile Hero Text === */
@media (max-width: 768px) {
  .hero h1, .hero-content h1, .hero__content h1 { font-size: 2rem; }
}