@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --ink: #13231d;
  --muted: #5a6b64;
  --forest: #0d6845;
  --forest-dark: #08462f;
  --lime: #b7d938;
  --sun: #f4b63e;
  --paper: #f8faf7;
  --white: #ffffff;
  --line: #d9e2dc;
  --danger: #a32626;
  --shadow: 0 18px 50px rgba(21, 58, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-shell, .section-inner, .hero-inner, .footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest-dark);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--forest-dark);
  background: var(--lime);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest); }
.nav-links .button-primary,
.nav-links .button-primary:hover,
.nav-links .button-primary:focus-visible { color: var(--white); }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: var(--white); background: var(--forest); }
.button-primary:hover { color: var(--white); background: var(--forest-dark); }
.button-secondary { color: var(--forest-dark); background: var(--white); border-color: var(--line); }
.button-secondary:hover { border-color: var(--forest); }

.hero {
  min-height: 610px;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 52, 36, 0.96) 0%, rgba(8, 52, 36, 0.86) 48%, rgba(8, 52, 36, 0.36) 100%),
    url('/media/energy_community_logos/eeegwinklarn.png') center right 7% / min(720px, 58vw) auto no-repeat,
    #0a5a3d;
}
.hero-inner { padding: 86px 0 104px; }
.hero-copy { max-width: 690px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #e5f5ae;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; font-family: "Manrope", sans-serif; line-height: 1.12; letter-spacing: 0; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(42px, 6vw, 72px); }
h2 { margin-bottom: 18px; font-size: clamp(30px, 4vw, 46px); }
h3 { margin-bottom: 10px; font-size: 21px; }
.hero p { max-width: 650px; margin: 0 0 30px; color: #e2eee8; font-size: 21px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button-primary { color: var(--forest-dark); background: var(--lime); }
.hero .button-secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,.5); }

.band { padding: 78px 0; }
.band-white { background: var(--white); }
.band-dark { color: var(--white); background: var(--forest-dark); }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 19px; }
.band-dark .section-heading p { color: #cbded5; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature, .price-card, .process-step {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.feature-icon, .step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 6px;
  color: var(--forest-dark);
  background: #e9f3c9;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}
.feature p, .process-step p, .price-card p { color: var(--muted); }
.reference-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.reference-strip p { max-width: 440px; margin: 0; color: var(--muted); }
.reference-logos { display: flex; align-items: center; justify-content: flex-end; gap: 34px; flex: 1; }
.reference-logos img { max-width: 180px; max-height: 76px; object-fit: contain; }
.page-hero { padding: 86px 0 68px; color: var(--white); background: var(--forest-dark); }
.page-hero p { max-width: 720px; margin: 0; color: #cbded5; font-size: 20px; }

.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--forest); box-shadow: var(--shadow); }
.price-label { margin: 6px 0 18px; color: var(--forest); font-family: "Manrope", sans-serif; font-size: 23px; font-weight: 800; }
.price-label small { display: block; margin-top: 3px; color: var(--muted); font-family: "Source Sans 3", sans-serif; font-size: 16px; font-weight: 600; }
.pricing-grid { max-width: 680px; margin: 0 auto; }
.tax-note { margin: -10px 0 20px; color: var(--muted); font-weight: 700; }
.eda-note { max-width: 680px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; margin: 28px auto 0; padding: 22px; border-left: 4px solid var(--sun); background: var(--white); }
.eda-note > svg { width: 30px; height: 30px; color: var(--forest); }
.eda-note p { margin: 5px 0 10px; color: var(--muted); }
.eda-note a { display: inline-flex; align-items: center; gap: 7px; color: var(--forest); font-weight: 700; }
.eda-note a svg { width: 16px; height: 16px; }
.check-list { margin: 0 0 25px; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 10px 0; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--forest); font-weight: 800; }
.price-card .button { margin-top: auto; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 42px; align-items: start; }
.application-form { padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.form-section { margin: 0 0 32px; padding: 0 0 28px; border: 0; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { margin-bottom: 20px; padding-bottom: 0; border: 0; }
.form-section legend { margin-bottom: 18px; font-family: "Manrope", sans-serif; font-size: 21px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 700; }
.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b9c7be;
  border-radius: 5px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}
textarea.form-control { min-height: 112px; resize: vertical; }
.form-control:focus { outline: 3px solid rgba(183,217,56,.35); border-color: var(--forest); }
.status-options { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 8px; }
.status-options label { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; }
.form-radio-input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--forest); }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; }
.form-check-input { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; accent-color: var(--forest); }
.helptext { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.errorlist { margin: 6px 0; padding: 0; color: var(--danger); list-style: none; font-weight: 600; }
.form-errors { margin-bottom: 20px; padding: 14px 16px; border-left: 4px solid var(--danger); background: #fff1f1; }
.side-note { position: sticky; top: 100px; }
.side-note h2 { font-size: 26px; }
.side-note ol { padding-left: 22px; }
.side-note li { margin: 16px 0; padding-left: 6px; }
.success-panel { max-width: 720px; margin: 0 auto; padding: 42px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.success-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; color: var(--forest-dark); background: var(--lime); }

.declaration-hero h1 { max-width: 900px; font-size: clamp(38px, 5vw, 62px); }
.declaration-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 54px; align-items: start; }
.declaration-content { max-width: 780px; }
.declaration-content h2 { margin-top: 54px; font-size: 30px; }
.declaration-content > h2:first-of-type { margin-top: 38px; }
.declaration-content a { color: var(--forest); font-weight: 700; }
.declaration-notice { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 20px; border: 2px solid var(--forest); border-radius: 8px; color: var(--forest-dark); background: #f0f7da; }
.declaration-notice svg { width: 34px; height: 34px; }
.measure-list { margin: 28px 0 0; padding: 0; counter-reset: measure; list-style: none; }
.measure-list li { position: relative; min-height: 58px; margin: 0; padding: 0 0 24px 58px; counter-increment: measure; }
.measure-list li::before { content: counter(measure, lower-alpha); position: absolute; top: 0; left: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; color: var(--white); background: var(--forest); font-family: "Manrope", sans-serif; font-weight: 800; }
.measure-list strong, .measure-list span { display: block; }
.measure-list span { margin-top: 4px; color: var(--muted); }
.declaration-sources { position: sticky; top: 100px; padding: 24px; border-left: 4px solid var(--lime); background: #eef3ef; }
.declaration-sources h2 { font-size: 24px; }
.declaration-sources p { color: var(--muted); }
.declaration-sources a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--forest-dark); font-weight: 700; text-decoration: none; }
.declaration-sources a:last-child { border-bottom: 1px solid var(--line); }
.declaration-sources svg { width: 17px; height: 17px; flex: 0 0 auto; }

.site-footer { padding: 40px 0; color: #cbded5; background: #071f16; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #e7f0eb; text-decoration: none; }

@media (max-width: 860px) {
  .nav-links a:not(.button) { display: none; }
  .hero { min-height: 560px; background-size: 620px auto; background-position: center bottom -120px; }
  .hero-inner { padding: 70px 0 90px; }
  .grid-3, .grid-2, .form-layout, .declaration-layout { grid-template-columns: 1fr; }
  .reference-strip, .footer-inner { align-items: flex-start; flex-direction: column; }
  .reference-logos { justify-content: flex-start; flex-wrap: wrap; }
  .side-note { position: static; }
  .declaration-content { max-width: none; }
  .declaration-sources { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-shell, .section-inner, .hero-inner, .footer-inner { width: min(100% - 28px, 1160px); }
  .nav-shell { min-height: 64px; }
  .brand { font-size: 17px; }
  .nav-links { gap: 10px; }
  .nav-links .button { padding: 9px 11px; font-size: 14px; }
  .hero { min-height: 590px; }
  h1 { font-size: 40px; }
  .hero p { font-size: 18px; }
  .band { padding: 58px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .application-form { padding: 20px; }
  .reference-logos img { max-width: 135px; max-height: 60px; }
}
