/* =============================================
   SM tech GmbH – Kanton Luzern Solar Landing Page
   Colors: Lake blue #0284c7, Sunset orange #ea580c, Snow white #fefefe
   Fonts: Figtree (UI), Source Serif 4 (Article)
   ============================================= */

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

:root {
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --blue-light: #e0f2fe;
  --blue-50: #f0f9ff;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-light: #fff7ed;
  --white: #fefefe;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.1), 0 12px 32px rgba(0,0,0,.08);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-ui: 'Figtree', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-ui);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 780px; }
.text-center { text-align: center; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: .5rem;
}
.section-sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn--sm { padding: .5rem 1.25rem; font-size: .9rem; }
.btn--lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn--xl { padding: 1rem 2.5rem; font-size: 1.15rem; }
.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--accent { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--accent:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254,254,254,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(254,254,254,.97);
  border-bottom-color: var(--gray-200);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar__logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar__logo:hover { color: var(--blue); }
.navbar__logo-icon { font-size: 1.5rem; }
.navbar__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}
.navbar__links a { color: var(--gray-700); font-weight: 500; font-size: .95rem; }
.navbar__links a:hover { color: var(--blue); }
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('../images/hero.png') center/cover no-repeat;
}
.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 1;
  background: linear-gradient(135deg, rgba(2,132,199,0.75) 0%, rgba(0,0,0,0.6) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 6rem;
  max-width: 720px;
}
.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__badges { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__badge {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: .35rem .85rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
}
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}
.hero__wave svg { display: block; width: 100%; height: 80px; }

/* --- FACTS --- */
.facts { padding: 5rem 0; background: var(--white); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.facts__card {
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--blue-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.facts__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.facts__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.facts__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: .25rem;
}
.facts__unit { font-weight: 600; color: var(--gray-700); margin-bottom: .75rem; font-size: .95rem; }
.facts__desc { color: var(--gray-500); font-size: .9rem; line-height: 1.5; }

/* --- FÖRDERUNG --- */
.foerderung { padding: 5rem 0; background: var(--gray-50); }
.foerderung__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.foerderung__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.foerderung__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.foerderung__card-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.foerderung__card-header h3 { font-size: 1.1rem; font-weight: 700; }
.foerderung__card-icon { font-size: 1.5rem; }
.foerderung__card-body { padding: 1.5rem; }
.foerderung__highlight {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.foerderung__highlight:last-of-type { border-bottom: none; margin-bottom: .75rem; }
.foerderung__amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}
.foerderung__label { color: var(--gray-600); font-size: .9rem; }
.foerderung__card-body > p { color: var(--gray-500); font-size: .9rem; line-height: 1.6; }

/* Table */
.foerderung__table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}
.foerderung__table-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--gray-900);
}
.table-scroll { overflow-x: auto; }
.foerderung__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.foerderung__table th {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: .85rem 1rem;
  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: .75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.foerderung__table tbody tr:hover { background: var(--blue-50); }
.foerderung__table-note {
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--gray-500);
}

/* --- ARTIKEL --- */
.artikel {
  padding: 5rem 0;
  background: var(--white);
}
.artikel__meta {
  color: var(--gray-500);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .75rem;
}
.artikel__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.artikel__lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-100);
}
.artikel__section {
  margin-bottom: 2.5rem;
}
.artikel__section h3 {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.artikel__section p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1rem;
}
.artikel__factbox {
  background: var(--blue-50);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--font-ui);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--gray-700);
}
.artikel__factbox strong {
  color: var(--blue-dark);
  display: block;
  margin-bottom: .25rem;
}

/* --- VORTEILE --- */
.vorteile { padding: 5rem 0; background: var(--gray-50); }
.vorteile__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vorteile__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.vorteile__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vorteile__card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.vorteile__card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .75rem;
}
.vorteile__card p { color: var(--gray-600); font-size: .95rem; line-height: 1.6; }

/* --- KOSTEN --- */
.kosten { padding: 5rem 0; background: var(--white); }
.kosten__card {
  max-width: 700px;
  margin: 0 auto 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.kosten__row {
  display: flex;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: .95rem;
}
.kosten__row:last-of-type { border-bottom: none; }
.kosten__row--header {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-bottom: none;
}
.kosten__row--total {
  background: var(--gray-50);
  font-weight: 700;
  border-top: 2px solid var(--gray-200);
}
.kosten__row--green {
  color: #16a34a;
  font-weight: 500;
}
.kosten__row--result {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-bottom: none;
}
.kosten__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-200);
}
.kosten__summary-item {
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--gray-100);
}
.kosten__summary-item:last-child { border-right: none; }
.kosten__summary-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: .25rem;
}
.kosten__summary-label {
  font-size: .78rem;
  color: var(--gray-500);
  line-height: 1.3;
}
.kosten__note {
  text-align: center;
  font-size: .85rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- FAQ --- */
.faq { padding: 5rem 0; background: var(--gray-50); }
.faq__list { display: flex; flex-direction: column; gap: .75rem; }
.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq__question:hover { color: var(--blue); }
.faq__icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue);
  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 cubic-bezier(.4,0,.2,1), padding .3s;
}
.faq__item.active .faq__answer { max-height: 400px; }
.faq__answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-600);
  font-size: .95rem;
  line-height: 1.7;
}

/* --- CTA --- */
.cta { padding: 5rem 0; background: var(--white); }
.cta__inner {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
}
.cta__inner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta__inner > p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta__note {
  margin-top: 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* --- FOOTER --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3.5rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.footer p { font-size: .9rem; line-height: 1.6; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .4rem; }
.footer ul a { color: var(--gray-300); font-size: .9rem; }
.footer ul a:hover { color: #fff; }
.footer__bottom { padding-top: 1.5rem; text-align: center; }
.footer__bottom p { font-size: .82rem; color: var(--gray-500); }

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE: 1024px --- */
@media (max-width: 1024px) {
  .foerderung__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__content { max-width: 600px; }
}

/* --- RESPONSIVE: 768px --- */
@media (max-width: 768px) {
  .navbar__toggle { display: flex; }
  .navbar__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(254,254,254,.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-110%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .navbar__links.open { transform: translateY(0); }

  .hero { min-height: 80vh; }
  .hero__content { padding: 7rem 0 5rem; }
  .hero__title { font-size: clamp(2rem, 7vw, 3rem); }

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

  .kosten__summary { grid-template-columns: 1fr; }
  .kosten__summary-item { border-right: none; border-bottom: 1px solid var(--gray-100); padding: 1rem; }
  .kosten__summary-item:last-child { border-bottom: none; }

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

  .foerderung__table { font-size: .82rem; }
  .foerderung__table th, .foerderung__table td { padding: .6rem .65rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__badges { flex-direction: column; align-items: flex-start; }
  .kosten__row { font-size: .85rem; padding: .75rem 1rem; }
}

/* === 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; }
}