/* ============================================
   SM tech GmbH – Solar Kanton Aargau
   Color: #22c55e (electric green), #1f2937 (charcoal), #f3f4f6 (light gray)
   Fonts: Poppins (headings), Nunito Sans (body)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --charcoal: #1f2937;
  --charcoal-light: #374151;
  --gray-bg: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --white: #ffffff;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,197,94,.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--charcoal);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--nav {
  padding: .5rem 1.25rem;
  font-size: .85rem;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
}
.btn--nav:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(31,41,55,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(31,41,55,.98);
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar__logo:hover { color: var(--green); }
.logo-icon { font-size: 1.4rem; }

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.navbar__menu a {
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
}
.navbar__menu a:hover { color: var(--green); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.png') center/cover no-repeat;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.7) 0%, rgba(0,0,0,0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero__badge {
  display: inline-block;
  background: rgba(34,197,94,.15);
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  padding: .4rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(34,197,94,.3);
  margin-bottom: 1.5rem;
  letter-spacing: .03em;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--green);
}

.hero__stat-unit {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--green);
}

.hero__stat-label {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-top: .25rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-arrow {
  display: inline-block;
  color: rgba(255,255,255,.4);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: .75rem;
}

.section__subtitle {
  text-align: center;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* --- Facts --- */
.facts {
  background: var(--gray-bg);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.fact-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.fact-card__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--green);
  margin-bottom: .5rem;
}

.fact-card__title {
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.fact-card__text {
  font-size: .93rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Förderung --- */
.foerderung {
  background: var(--white);
}

.foerderung__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.foerderung-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.foerderung-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.foerderung-card__header {
  background: var(--charcoal);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.foerderung-card__header h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}

.foerderung-card__tag {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.tag--kanton { background: #3b82f6; }
.tag--aew { background: #f59e0b; color: var(--charcoal); }
.tag--steuer { background: #8b5cf6; }

.foerderung-card__body {
  padding: 1.5rem;
}

.foerderung-card__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: .5rem;
}

.foerderung-card__amount span {
  display: block;
  font-size: .82rem;
  color: var(--gray-600);
  font-weight: 400;
  font-family: var(--font-body);
}

.foerderung-card__plus {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gray-400);
  margin-bottom: .5rem;
}

.foerderung-card__body p {
  font-size: .92rem;
  color: var(--gray-600);
  margin-top: .75rem;
  line-height: 1.7;
}

/* Table */
.foerderung__table-wrap {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
}

.foerderung__table-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.table-responsive {
  overflow-x: auto;
}

.foerderung__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.foerderung__table th {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 1rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.foerderung__table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.foerderung__table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.foerderung__table td {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

.foerderung__table tbody tr:hover {
  background: var(--green-light);
}

.foerderung__table-note {
  font-size: .82rem;
  color: var(--gray-400);
  margin-top: 1rem;
  text-align: center;
}

/* --- Artikel --- */
.artikel {
  background: var(--gray-bg);
}

.artikel__header {
  text-align: center;
  margin-bottom: 3rem;
}

.artikel__badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .75rem;
  padding: .3rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

.artikel__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 700px;
  margin: 0 auto .75rem;
}

.artikel__meta {
  color: var(--gray-400);
  font-size: .88rem;
}

.artikel__content {
  max-width: 780px;
  margin: 0 auto;
}

.artikel__intro {
  font-size: 1.08rem;
  color: var(--charcoal-light);
  margin-bottom: 2.5rem;
  line-height: 1.9;
  border-left: 4px solid var(--green);
  padding-left: 1.5rem;
}

.artikel__section {
  margin-bottom: 2.5rem;
}

.artikel__section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.artikel__section p {
  margin-bottom: 1rem;
  color: var(--charcoal-light);
  line-height: 1.85;
}

/* Fact Box */
.fact-box {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--green);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  align-items: flex-start;
}

.fact-box__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.fact-box__content {
  font-size: .93rem;
  line-height: 1.7;
  color: var(--charcoal-light);
}

.fact-box__content strong {
  color: var(--charcoal);
}

/* Pull Quote */
.pull-quote {
  border: none;
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  border-radius: var(--radius);
  position: relative;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--white) !important;
  line-height: 1.7;
  margin: 0;
}

.pull-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
  border-radius: var(--radius) 0 0 var(--radius);
}

.artikel__cta {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--green);
  margin-top: 2.5rem;
}

.artikel__cta p {
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

.artikel__cta .btn {
  margin-top: .5rem;
}

/* --- Vorteile --- */
.vorteile {
  background: var(--white);
}

.vorteile__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.vorteil-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 2.25rem;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.vorteil-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.vorteil-card__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--green);
  opacity: .3;
  margin-bottom: .5rem;
}

.vorteil-card h3 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
}

.vorteil-card p {
  font-size: .93rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Kosten --- */
.kosten {
  background: var(--gray-bg);
}

.kosten__box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.kosten__row {
  margin-bottom: 1.5rem;
}

.kosten__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.kosten__item--minus .kosten__value {
  color: var(--green);
}

.kosten__label {
  font-size: .95rem;
  color: var(--charcoal-light);
}

.kosten__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.kosten__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: var(--charcoal);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
}

.kosten__total .kosten__label {
  color: rgba(255,255,255,.8);
  font-weight: 600;
}

.kosten__total .kosten__value {
  color: var(--green);
  font-size: 1.3rem;
}

.kosten__savings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.kosten__saving-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: .25rem;
}

.kosten__saving-label {
  font-size: .8rem;
  color: var(--gray-600);
}

.kosten__note {
  font-size: .8rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.6;
}

/* --- FAQ --- */
.faq {
  background: var(--white);
}

.faq__list {
  max-width: 740px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq__item.active {
  box-shadow: var(--shadow-sm);
  border-color: var(--green);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: left;
  gap: 1rem;
  transition: background var(--transition);
}

.faq__question:hover {
  background: var(--gray-bg);
}

.faq__icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

.faq__answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-600);
  font-size: .95rem;
  line-height: 1.8;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 50%, #064e3b 100%);
  padding: 5rem 0;
}

.cta-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-box h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.cta-box p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-box__note {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  margin-top: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand {
  font-size: .93rem;
  line-height: 1.7;
}

.footer__brand strong {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.footer__brand .logo-icon {
  color: var(--green);
}

.footer__brand p {
  margin-top: .75rem;
  color: rgba(255,255,255,.5);
}

.footer__links h4 {
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.footer__links ul {
  list-style: none;
}

.footer__links li {
  margin-bottom: .5rem;
}

.footer__links a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--green);
}

.footer__bottom {
  padding: 1.25rem 0;
  text-align: center;
}

.footer__bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive: 1024px --- */
@media (max-width: 1024px) {
  .facts__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .foerderung__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .vorteile__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* --- Responsive: 768px --- */
@media (max-width: 768px) {
  .navbar__menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(31,41,55,.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,.06);
  }

  .navbar__menu.open {
    display: flex;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .navbar__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .hero__stat-value {
    font-size: 1.3rem;
  }

  .facts__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .foerderung__cards {
    grid-template-columns: 1fr;
  }

  .foerderung__table-wrap {
    padding: 1.5rem 1rem;
  }

  .vorteile__grid {
    grid-template-columns: 1fr;
  }

  .kosten__savings {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .kosten__box {
    padding: 1.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .artikel__intro {
    padding-left: 1rem;
  }

  .fact-box {
    flex-direction: column;
  }

  .pull-quote {
    padding: 1.25rem 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}


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