:root {
  color-scheme: dark;
  --paper: #07100e;
  --surface: #0e1a17;
  --surface-strong: #14231f;
  --ink: #f4f7f1;
  --muted: #adbbb3;
  --line: rgba(210, 223, 215, 0.14);
  --line-strong: rgba(210, 223, 215, 0.26);
  --green: #28a476;
  --green-deep: #08231e;
  /* Darker variants for white text on colored fills (WCAG AA >= 4.5:1) */
  --green-contrast: #1e8158;
  --green-contrast-deep: #175f49;
  --red-deep: #c63324;
  --aqua: #5db9ad;
  --amber: #d28b25;
  --clay: #ff4b3e;
  --red: #ff4b3e;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --max: 1240px;
  /* Form fields need opaque colours so Windows browsers cannot composite them
     against a white system background. See the input/select rules below. */
  --field: #12201c;
  --field-ink: #f4f7f1;
}

* {
  box-sizing: border-box;
}

/* The UA rule [hidden]{display:none} loses to any class that sets display —
   .form-field{display:grid} kept conditionally hidden fields on screen.
   Same guard normalize.css ships. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(40, 164, 118, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(255, 75, 62, 0.12), transparent 26rem),
    linear-gradient(180deg, #07100e 0%, #0a1512 38%, #08100e 100%);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: #71d7af;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

/* Interaction feedback stays in the green family; red is reserved for static accents */
a:hover {
  color: #9fe9c9;
}

/* Glossary cross-references get their own blue so they read as distinct from navigation links */
.glossary-link {
  color: #5b9dff;
  text-decoration: underline;
}

.glossary-link:hover {
  color: #8cc0ff;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 96px;
}

p,
ul,
ol {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 13ch;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

::selection {
  background: rgba(255, 75, 62, 0.36);
}

.skip-link {
  left: 1rem;
  position: absolute;
  top: -5rem;
  z-index: 200;
  background: var(--green-deep);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 16, 14, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
}

.nav-shell {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 76px;
  padding: 0 1rem;
}

.brand {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  gap: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  background: #ffffff;
  border-radius: 9px;
  padding: 5px 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.nav-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--white);
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.nav-toggle svg {
  height: 22px;
  width: 22px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 4px;
  color: rgba(244, 247, 241, 0.8);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 0.45rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(244, 247, 241, 0.1);
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  background: rgba(255, 75, 62, 0.12);
  color: var(--white);
}

.button,
button.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  gap: 0.45rem;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--green-contrast), var(--green-contrast-deep));
  color: var(--white);
  box-shadow: 0 14px 34px rgba(40, 164, 118, 0.22);
}

.button-primary:hover {
  background: linear-gradient(135deg, #1a6f4c, #14523d);
  box-shadow: 0 16px 38px rgba(40, 164, 118, 0.3);
  color: var(--white);
}

.button-secondary {
  background: rgba(244, 247, 241, 0.08);
  border-color: var(--line-strong);
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(40, 164, 118, 0.16);
  border-color: rgba(40, 164, 118, 0.55);
}

.button-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero {
  isolation: isolate;
  min-height: min(580px, calc(100svh - 130px));
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(5, 15, 13, 0.92), rgba(5, 15, 13, 0.62) 44%, rgba(5, 15, 13, 0.12) 76%),
    linear-gradient(180deg, rgba(255, 75, 62, 0.16), transparent 34%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.hero-content {
  align-items: flex-start;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--max);
  min-height: inherit;
  padding: clamp(2rem, 5vw, 3.8rem) 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  max-width: 21ch;
  text-transform: none;
}

.hero .eyebrow {
  color: #ff746b;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 42rem;
}

.hero .button-secondary {
  background: rgba(244, 247, 241, 0.92);
  color: #07100e;
}

.hero-note {
  border-left: 3px solid var(--amber);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  margin-top: 1rem;
  max-width: 42rem;
  padding-left: 1rem;
}

.page-hero {
  /* Layer order: left-weighted readability scrim, bottom darken, photo, dark base */
  background:
    linear-gradient(95deg, rgba(6, 16, 14, 0.94) 0%, rgba(6, 16, 14, 0.82) 42%, rgba(6, 16, 14, 0.5) 74%, rgba(6, 16, 14, 0.34) 100%) center / cover,
    linear-gradient(0deg, rgba(6, 16, 14, 0.62) 0%, rgba(6, 16, 14, 0.08) 44%) center / cover,
    var(--hero-art, none) center / cover no-repeat,
    linear-gradient(135deg, #061310, #0c3127) center / cover;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  padding: clamp(4.5rem, 10vw, 8rem) 1.5rem clamp(3.4rem, 8vw, 6.2rem);
}

.page-hero--energiezellen { --hero-art: url("../assets/hero-energiezellen.jpg"); }
.page-hero--privatpersonen { --hero-art: url("../assets/hero-privatpersonen.jpg"); }
.page-hero--unternehmen { --hero-art: url("../assets/hero-unternehmen-kommunen.jpg"); }
.page-hero--mitgliedschaft { --hero-art: url("../assets/hero-mitgliedschaft.jpg"); }
.page-hero--investoren { --hero-art: url("../assets/hero-investoren.jpg"); }
.page-hero--wissen { --hero-art: url("../assets/hero-wissen.jpg"); }
.page-hero--kontakt { --hero-art: url("../assets/hero-kontakt.jpg"); }
.page-hero--legal {
  --hero-art: url("../assets/hero-legal.jpg");
  background:
    linear-gradient(95deg, rgba(6, 16, 14, 0.95) 0%, rgba(6, 16, 14, 0.9) 48%, rgba(6, 16, 14, 0.74) 100%) center / cover,
    linear-gradient(0deg, rgba(6, 16, 14, 0.66) 0%, rgba(6, 16, 14, 0.3) 56%) center / cover,
    var(--hero-art) center / cover no-repeat,
    linear-gradient(135deg, #061310, #0c3127) center / cover;
}

.page-hero-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  max-width: 52rem;
}

.section {
  padding: clamp(3.2rem, 7vw, 6.5rem) 1.5rem;
}

.section-tight {
  padding: clamp(2.3rem, 5vw, 4rem) 1.5rem;
}

.section-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-strong {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 75, 62, 0.14), transparent 24rem),
    linear-gradient(135deg, var(--green-deep), #061512);
  color: var(--white);
}

.section-strong p,
.section-strong .muted {
  color: rgba(255, 255, 255, 0.78);
}

.container {
  margin: 0 auto;
  max-width: var(--max);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1fr);
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.eyebrow {
  color: var(--red);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  max-width: 66rem;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
  padding: clamp(1.2rem, 2vw, 1.6rem);
}

.card-accent {
  border-top: 4px solid var(--red);
}

.card-green {
  background:
    linear-gradient(135deg, rgba(40, 164, 118, 0.13), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
  border-color: var(--line-strong);
}

.card h3 {
  max-width: 20ch;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.icon-chip {
  align-items: center;
  background: rgba(255, 75, 62, 0.14);
  color: #ff9b94;
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 34px;
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(1.8rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.88fr);
}

.feature-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-panel img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.metric-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
}

.metric-list li {
  align-items: start;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 2.2rem 1fr;
}

.metric-list strong {
  color: var(--white);
}

.number {
  align-items: center;
  background: linear-gradient(145deg, var(--green-contrast), var(--red-deep));
  color: var(--white);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.process {
  counter-reset: step;
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.process-step {
  background: var(--surface);
  border-left: 4px solid var(--red);
  counter-increment: step;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 3.2rem 1fr;
  padding: 1.1rem;
}

.process-step::before {
  align-items: center;
  background: var(--red-deep);
  color: var(--white);
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  font-weight: 900;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.process-step h3 {
  margin-bottom: 0.25rem;
}

.process-step p {
  margin-bottom: 0;
}

.process-flow {
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  position: relative;
}

.process-flow::before {
  background: var(--line-strong);
  content: "";
  height: 2px;
  left: 7%;
  position: absolute;
  right: 7%;
  top: 2.35rem;
}

.process-flow .process-step {
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-left: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  min-height: 100%;
  padding: 1.25rem;
  position: relative;
}

.process-flow .process-step::before {
  border: 4px solid var(--paper);
  border-radius: 999px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.process-flow .process-step h3 {
  font-size: 1.08rem;
}

.work-section {
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 75, 62, 0.12), transparent 24rem),
    linear-gradient(90deg, rgba(40, 164, 118, 0.08), transparent 38%),
    var(--paper);
}

.work-method {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
}

.work-method-intro {
  position: sticky;
  top: 104px;
}

.work-method-intro h2 {
  max-width: 11ch;
}

.work-method-intro p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.work-method-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 14rem;
  padding: 1.35rem;
  position: relative;
}

.work-card::after {
  background: linear-gradient(90deg, var(--red), var(--green));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.work-card-number {
  align-items: center;
  background: var(--red-deep);
  border: 4px solid var(--paper);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 2.8rem;
  justify-content: center;
  margin-bottom: 1.1rem;
  width: 2.8rem;
}

.work-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.work-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.six-stage-section {
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 75, 62, 0.12), transparent 24rem),
    linear-gradient(90deg, rgba(40, 164, 118, 0.08), transparent 42%),
    var(--paper);
}

.six-stage {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(18rem, 0.62fr) minmax(0, 1.38fr);
}

.six-stage-intro {
  position: sticky;
  top: 104px;
}

.six-stage-intro h2 {
  max-width: 12ch;
}

.six-stage-intro p {
  color: var(--muted);
  font-size: 1.08rem;
}

.six-stage-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.six-stage-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  grid-template-columns: 3.1rem 1fr;
  min-height: 13.5rem;
  padding: 1.3rem;
  position: relative;
}

.six-stage-card::after {
  background: linear-gradient(90deg, var(--red), var(--green));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.six-stage-number {
  align-items: center;
  background: var(--red-deep);
  border: 4px solid var(--paper);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 2.8rem;
  justify-content: center;
  width: 2.8rem;
}

.six-stage-card h3 {
  font-size: 1.16rem;
  margin-bottom: 0.45rem;
}

.six-stage-card p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.six-stage-tag {
  color: #ff8f87;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-band {
  border-left: 5px solid var(--red);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.32;
  margin: 0;
  max-width: 52rem;
  padding-left: clamp(1rem, 3vw, 1.6rem);
}

.sr-only {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.eec-assistant {
  bottom: 1.25rem;
  position: fixed;
  right: 1.25rem;
  z-index: 300;
}

.eec-assistant-toggle {
  align-items: center;
  background: linear-gradient(135deg, #10231f, #0a1815);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 75, 62, 0.16);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
}

.eec-assistant-toggle-icon {
  align-items: center;
  background: var(--red-deep);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 1.1rem;
  height: 2.2rem;
  justify-content: center;
  width: 2.2rem;
}

.eec-assistant-panel {
  background:
    radial-gradient(circle at 94% 0%, rgba(255, 75, 62, 0.13), transparent 14rem),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  bottom: 4.4rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  max-height: min(680px, calc(100svh - 7rem));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(390px, calc(100vw - 2.5rem));
}

.eec-assistant-header {
  align-items: center;
  background: linear-gradient(135deg, #061512, #10231f);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.eec-assistant-header strong,
.eec-assistant-header span {
  display: block;
}

.eec-assistant-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.eec-assistant-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  height: 2.1rem;
  justify-content: center;
  line-height: 1;
  width: 2.1rem;
}

.eec-assistant-messages {
  display: grid;
  gap: 0.75rem;
  max-height: min(360px, calc(100svh - 23rem));
  overflow-y: auto;
  padding: 1rem;
}

.eec-message {
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
}

.eec-message p {
  margin-bottom: 0;
}

.eec-message-assistant {
  background: rgba(244, 247, 241, 0.06);
  border: 1px solid var(--line);
}

.eec-message-user {
  background: linear-gradient(135deg, var(--green-contrast), var(--green-contrast-deep));
  color: var(--white);
  justify-self: end;
  max-width: 88%;
}

.eec-message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.eec-message-links a {
  background: rgba(244, 247, 241, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 750;
  padding: 0.32rem 0.58rem;
  text-decoration: none;
}

.eec-assistant-suggestions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
}

.eec-assistant-suggestions button {
  background: rgba(244, 247, 241, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  padding: 0.42rem 0.65rem;
}

.eec-assistant-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr auto;
  padding: 1rem;
}

.eec-assistant-form input {
  min-height: 42px;
}

.eec-assistant-form button {
  background: linear-gradient(135deg, var(--green), #1d765b);
  border: 0;
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 0.8rem;
}

.eec-assistant-disclaimer {
  color: var(--muted);
  font-size: 0.78rem;
  margin: -0.35rem 1rem 1rem;
}

.download-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.download-list a {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  text-decoration: none;
}

.download-list a:hover {
  border-color: rgba(93, 185, 173, 0.6);
  color: var(--white);
}

.download-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Glossary tiles.
   The markup used to be <dl> as the grid container with <div> wrappers around
   each dt/dd pair. Firefox collapsed that back to running text, so the tiles
   only appeared in Chrome. Plain <div> + <article> is laid out identically by
   every engine, so the grid is now structural rather than a styling override
   on a definition list. */
.glossary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.glossary-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.2rem, 2vw, 1.6rem);
}

.glossary-card:target {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 164, 118, 0.28);
}

.glossary-card h2,
.glossary-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  max-width: none;
}

.glossary-card p {
  color: var(--muted);
  margin: 0;
}

.glossary-tag {
  align-self: flex-start;
  background: rgba(40, 164, 118, 0.16);
  border: 1px solid rgba(40, 164, 118, 0.42);
  border-radius: 999px;
  color: #9fe9c9;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.62rem;
  text-transform: uppercase;
}

.glossary-why {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.94rem;
  margin-top: auto;
  padding-top: 0.7rem;
}

.glossary-why strong {
  color: #9fe9c9;
}

.terms-table {
  border-collapse: collapse;
  width: 100%;
}

.terms-table th,
.terms-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.5rem;
  text-align: left;
}

.terms-table th {
  color: var(--muted);
  font-weight: 700;
  width: 44%;
}

.terms-table tr:last-child th,
.terms-table tr:last-child td {
  border-bottom: 0;
}

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

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  /* Opaque hex, not rgba: Edge/Chrome on Windows composite the native control
     against the system field colour, which turned a translucent fill into a
     white box with near-white text. */
  background-color: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--field-ink);
  font: inherit;
  min-height: 46px;
  padding: 0.72rem 0.78rem;
  width: 100%;
}

/* The native select widget is the one control whose look Edge, Chrome and
   Firefox each resolve differently. Drawing it ourselves is what makes the
   three browsers match. */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f7f1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  padding-right: 2.6rem;
  text-overflow: ellipsis;
}

/* Without this the dropdown list itself inherits the light page text colour
   on a system-white popup in Edge, i.e. white on white. */
select option,
select optgroup {
  background-color: var(--field);
  color: var(--field-ink);
}

/* Windows high-contrast mode: hand every colour back to the OS. */
@media (forced-colors: active) {
  select {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none;
    padding-right: 0.78rem;
  }

  select option {
    background-color: Canvas;
    color: CanvasText;
  }
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(173, 187, 179, 0.75);
  opacity: 1; /* Firefox dims placeholders by default */
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 164, 118, 0.2);
  outline: 0;
}

input:invalid:not(:placeholder-shown),
select:invalid:not([data-pristine]),
textarea:invalid:not(:placeholder-shown),
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #ff8b7f;
}

/* Firefox draws its own red glow on :invalid; ours is enough. */
input:invalid,
select:invalid,
textarea:invalid {
  box-shadow: none;
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}

.site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(40, 164, 118, 0.12), transparent 24rem),
    #050b0a;
  color: rgba(255, 255, 255, 0.84);
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1rem;
}

.legal-text {
  max-width: 76ch;
}

.legal-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 2.4rem;
  max-width: 24ch;
}

.legal-text h3 {
  margin-top: 1.6rem;
}

.contact-lines {
  display: grid;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
}

.reveal {
  opacity: 0.78;
  transform: translateY(14px);
  transition: opacity 380ms ease, transform 380ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .nav-shell {
    align-items: center;
    flex-wrap: wrap;
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    flex: 1 1 13rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  /* Smaller hero art on narrow viewports (saves 60-75% image weight) */
  .page-hero--energiezellen { --hero-art: url("../assets/hero-energiezellen-800.jpg"); }
  .page-hero--privatpersonen { --hero-art: url("../assets/hero-privatpersonen-800.jpg"); }
  .page-hero--unternehmen { --hero-art: url("../assets/hero-unternehmen-kommunen-800.jpg"); }
  .page-hero--mitgliedschaft { --hero-art: url("../assets/hero-mitgliedschaft-800.jpg"); }
  .page-hero--investoren { --hero-art: url("../assets/hero-investoren-800.jpg"); }
  .page-hero--wissen { --hero-art: url("../assets/hero-wissen-800.jpg"); }
  .page-hero--kontakt { --hero-art: url("../assets/hero-kontakt-800.jpg"); }
  .page-hero--legal { --hero-art: url("../assets/hero-legal-800.jpg"); }

  .hero {
    min-height: 70svh;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(11, 33, 28, 0.78), rgba(11, 33, 28, 0.42));
  }

  .hero-content {
    justify-content: end;
    padding-bottom: 3rem;
  }

  .section-heading,
  .split,
  .work-method,
  .six-stage,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .terms-table th {
    width: auto;
  }

  .section-heading {
    align-items: start;
  }

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

  .work-method-intro {
    position: static;
  }

  .work-method-intro h2 {
    max-width: 13ch;
  }

  .work-method-grid {
    grid-template-columns: 1fr;
  }

  .six-stage-intro {
    position: static;
  }

  .six-stage-intro h2 {
    max-width: 13ch;
  }

  .six-stage-grid {
    grid-template-columns: 1fr;
  }

  .six-stage-card {
    min-height: auto;
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-flow::before {
    display: none;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .brand-logo {
    height: 40px;
  }

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

  .button-row,
  .button {
    width: 100%;
  }

  .download-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .process-step {
    grid-template-columns: 1fr;
  }

  .eec-assistant {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .eec-assistant-toggle-text {
    display: none;
  }

  .eec-assistant-toggle {
    min-height: 3.2rem;
    padding: 0.5rem;
  }

  .eec-assistant-panel {
    bottom: 4rem;
    right: 0;
    width: calc(100vw - 1.5rem);
  }
}

/* ==========================================================================
   Membership & community components
   Added for the 2026 conversion rework. Everything below is additive: no
   existing selector is redefined, so the original page styling is untouched.
   ========================================================================== */

/* --- Join button in the header ------------------------------------------ */

.nav-cta {
  background: linear-gradient(135deg, var(--green-contrast), var(--green-contrast-deep));
  border: 1px solid rgba(93, 185, 173, 0.5);
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(40, 164, 118, 0.26);
  color: var(--white);
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 800;
  margin-left: 0.85rem;
  padding: 0.62rem 1.05rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: nowrap;
}

/* Beats .site-nav a:hover, which would otherwise wash the fill out. */
.site-nav .nav-cta:hover,
.nav-cta:hover {
  background: linear-gradient(135deg, #1a6f4c, #14523d);
  box-shadow: 0 14px 32px rgba(40, 164, 118, 0.36);
  color: var(--white);
  transform: translateY(-1px);
}

.site-nav .nav-cta[aria-current="page"] {
  background: linear-gradient(135deg, #1a6f4c, #14523d);
}

/* --- Hero trust line ----------------------------------------------------- */

.hero-trust {
  color: rgba(244, 247, 241, 0.86);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 0.5rem 1.15rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.hero-trust li {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.hero-trust li::before {
  color: #9fe9c9;
  content: "✓";
  font-weight: 800;
}

/* --- "Where do I fit in?" orientation tiles ------------------------------ */

.audience-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.audience-card {
  align-items: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem 1.3rem 1.2rem;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.audience-card:hover {
  border-color: rgba(40, 164, 118, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: inherit;
  transform: translateY(-3px);
}

.audience-card-icon {
  align-items: center;
  color: #9fe9c9;
  display: inline-flex;
  height: 2rem;
  justify-content: flex-start;
  line-height: 1;
  width: 2rem;
}

.audience-card-icon svg {
  height: 100%;
  width: 100%;
}

.audience-card strong {
  color: var(--white);
  font-size: 1.08rem;
}

.audience-card span:last-child {
  color: var(--muted);
  font-size: 0.94rem;
}

.audience-card::after {
  color: #9fe9c9;
  content: "Ansehen →";
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

/* --- Numbered "how to join" steps ---------------------------------------- */

.steps-grid {
  counter-reset: joinstep;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.35rem 1.35rem;
  position: relative;
}

.step-card::before {
  align-items: center;
  background: linear-gradient(135deg, var(--green-contrast), var(--green-contrast-deep));
  border-radius: 50%;
  color: var(--white);
  counter-increment: joinstep;
  content: counter(joinstep);
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  height: 2.4rem;
  justify-content: center;
  margin-bottom: 0.85rem;
  width: 2.4rem;
}

.step-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step-card p {
  color: var(--muted);
  margin: 0;
}

/* --- Benefit list with check marks --------------------------------------- */

.benefit-list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-list li {
  display: grid;
  gap: 0.15rem 0.85rem;
  grid-template-columns: 1.6rem 1fr;
}

.benefit-list li::before {
  align-items: center;
  background: rgba(40, 164, 118, 0.18);
  border: 1px solid rgba(40, 164, 118, 0.5);
  border-radius: 50%;
  color: #9fe9c9;
  content: "✓";
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  grid-row: span 2;
  height: 1.6rem;
  justify-content: center;
  width: 1.6rem;
}

.benefit-list strong {
  color: var(--white);
}

.benefit-list span {
  color: var(--muted);
}

/* --- Trust facts strip ---------------------------------------------------- */

.trust-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-strip li {
  background: rgba(244, 247, 241, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.15rem;
}

.trust-strip strong {
  color: var(--white);
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Membership fee cards ------------------------------------------------- */

.fee-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.fee-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.6rem 1.45rem;
}

.fee-card.is-highlight {
  border-color: rgba(40, 164, 118, 0.55);
  box-shadow: 0 18px 44px rgba(40, 164, 118, 0.16);
}

.fee-card h3 {
  color: var(--white);
  margin: 0;
}

.fee-price {
  color: var(--white);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
}

.fee-price small {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.fee-card ul {
  color: var(--muted);
  margin: 0;
  padding-left: 1.15rem;
}

.fee-card ul li {
  margin-bottom: 0.3rem;
}

.fee-card .button {
  margin-top: auto;
}

/* --- FAQ ------------------------------------------------------------------ */

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 1.25rem;
}

.faq-item[open] {
  border-color: rgba(40, 164, 118, 0.45);
}

.faq-item summary {
  color: var(--white);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
}

/* Safari still paints the default disclosure triangle without this. */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: #9fe9c9;
  content: "+";
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

.faq-item > p,
.faq-item > ul {
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.faq-item > ul {
  padding-left: 1.2rem;
}

/* --- Closing call to action ---------------------------------------------- */

.cta-band {
  background:
    radial-gradient(circle at 12% 20%, rgba(40, 164, 118, 0.3), transparent 26rem),
    linear-gradient(135deg, #0d2b22, #0a1a16);
  border: 1px solid rgba(40, 164, 118, 0.42);
  border-radius: 14px;
  padding: clamp(1.9rem, 5vw, 3.2rem);
  text-align: center;
}

.cta-band h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 18ch;
}

.cta-band p {
  color: rgba(244, 247, 241, 0.88);
  margin: 0 auto 1.6rem;
  max-width: 56ch;
}

.cta-band .button-row {
  justify-content: center;
}

.cta-band .button-primary {
  font-size: 1.05rem;
  min-height: 54px;
  padding: 0.85rem 1.9rem;
}

.cta-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.15rem 0 0;
}

/* --- Sticky join bar (small screens only) -------------------------------- */

.sticky-cta {
  display: none;
}

/* --- Form: person/company choice ----------------------------------------- */

.choice-group {
  border: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  margin: 0;
  padding: 0;
}

.choice-legend {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.55rem;
  padding: 0;
}

.choice {
  align-items: flex-start;
  background-color: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.choice:hover {
  border-color: rgba(40, 164, 118, 0.55);
}

/* accent-color keeps the radio itself on-brand in Chrome, Edge and Firefox
   without replacing the native control, so keyboard behaviour stays intact. */
.choice input[type="radio"],
.checkbox-field input[type="checkbox"] {
  accent-color: var(--green);
  flex: 0 0 auto;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  min-height: 0;
  width: 1.15rem;
}

.choice-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.choice-text strong {
  color: var(--white);
  font-weight: 700;
}

.choice-text span {
  color: var(--muted);
  font-size: 0.88rem;
}

.choice:has(input:checked) {
  background-color: rgba(40, 164, 118, 0.14);
  border-color: rgba(40, 164, 118, 0.7);
}

/* :has() is unsupported in older Firefox/Safari; the JS mirror class keeps the
   selected state visible there too. */
.choice.is-selected {
  background-color: rgba(40, 164, 118, 0.14);
  border-color: rgba(40, 164, 118, 0.7);
}

.choice:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 164, 118, 0.2);
}

/* --- Form: consent checkbox, errors, success ------------------------------ */

.checkbox-field {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
}

.checkbox-field label {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}

.field-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.field-error {
  color: #ff9c92;
  font-size: 0.87rem;
  font-weight: 600;
  margin: 0;
}

.field-error:empty {
  display: none;
}

.form-success {
  background: linear-gradient(135deg, rgba(40, 164, 118, 0.2), rgba(40, 164, 118, 0.06));
  border: 1px solid rgba(40, 164, 118, 0.55);
  border-radius: 10px;
  padding: 1.5rem 1.4rem;
}

.form-success h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: rgba(244, 247, 241, 0.9);
}

.form-success p:last-child {
  margin-bottom: 0;
}

.form-required-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.req {
  color: #ff9c92;
}

/* --- Small-screen behaviour ---------------------------------------------- */

@media (max-width: 1120px) {
  .nav-cta {
    margin-left: 0.5rem;
    padding: 0.58rem 0.85rem;
  }
}

@media (max-width: 820px) {
  /* The mobile drawer stacks its links, so the CTA becomes a full-width
     button at the end of the list instead of a chip in the bar. */
  .site-nav .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
    width: 100%;
  }

  .sticky-cta {
    align-items: center;
    background: rgba(7, 16, 14, 0.94);
    border-top: 1px solid rgba(40, 164, 118, 0.4);
    bottom: 0;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    left: 0;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: 0;
    z-index: 95;
  }

  .sticky-cta-text {
    color: var(--ink);
    flex: 1 1 auto;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    min-width: 0;
  }

  .sticky-cta .button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
  }

  /* Keep the page and the chat bubble clear of the fixed bar.
     A body class rather than body:has(.sticky-cta): :has() only landed in
     Firefox 121, and this offset must not break in older builds. */
  body.has-sticky-cta {
    padding-bottom: 4.6rem;
  }

  body.has-sticky-cta .eec-assistant {
    bottom: 5.2rem;
  }
}

@media (max-width: 520px) {
  .cta-band .button-row .button {
    width: 100%;
  }

  .sticky-cta-text {
    font-size: 0.8rem;
  }
}

/* Below ~420px the label and the button cannot share a row without the label
   wrapping to four or more lines. The button alone is the clearer bar. */
@media (max-width: 420px) {
  .sticky-cta-text {
    display: none;
  }

  .sticky-cta .button {
    width: 100%;
  }
}

@media print {
  .sticky-cta,
  .nav-cta {
    display: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle,
  .eec-assistant,
  .button-row,
  .button {
    display: none !important;
  }

  .page-hero {
    background: none !important;
    border: 0;
    padding: 0 0 1rem;
  }

  h1, h2, h3, h4, p, li, a, blockquote,
  .page-hero p, .lead, .muted, .eyebrow {
    color: #000 !important;
  }

  a {
    text-decoration: underline;
  }

  .card {
    border-color: #bbb;
    box-shadow: none;
    background: none;
  }
}
