/* ==========================================================================
   EcoVista — Stylesheet
   Design-Plan: B_Web/02_Design/design-plan.md (07.10.2026)
   Aufbau: Tokens → Basis → Kopf → Hero → Sektionen → Formular → Fuss → Bewegung
   ========================================================================== */

@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/albert-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* Farben «Weitblick» */
  --paper: #FFFFFF;
  --mist: #EEF1F1;
  --mist-deep: #E2E7E8;
  --ink: #1F2A30;
  --ink-hover: #2E3D45;
  --slate: #56636B;
  --straw: #CBB991;
  --loam: #6A5844;
  --far: #8D9EA7;
  --line: rgba(31, 42, 48, .12);
  --line-strong: rgba(31, 42, 48, .28);
  --on-ink: #FFFFFF;
  --on-ink-muted: #B9C4CA;
  --error: #A3342A;
  --ok: #2F6B4A;

  /* Planebenen */
  --layer-anbau: #EFE2B4;
  --layer-wasser: #A6D4E6;
  --layer-energie: #F4BC4C;
  --layer-wege: #FFFFFF;

  /* Aliase für die generierten Rechtsseiten */
  --paper-2: #FFFFFF;
  --text: var(--ink);
  --text-muted: var(--slate);
  --accent: var(--ink);
  --accent-dk: var(--loam);
  --on-ink-mut: var(--on-ink-muted);
  --f-head: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-sans: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1240px;

  /* Masse */
  --container: 1240px;
  --container-wide: 1600px;
  --gutter-wide: clamp(1rem, 2.4vw, 3rem);
  --gutter: clamp(1rem, 3.2vw, 2rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --radius-hero: clamp(20px, 2.4vw, 30px);
  --radius-card: 18px;
  --header-h: 76px;

  /* Bewegung */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.95rem, 1.3rem + 2.2vw, 3.1rem); }
h3 { font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Ziel des Skip-Links: Fokus ja, Rahmen um den ganzen Inhalt nein */
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 300;
  background: var(--ink);
  color: var(--on-ink);
  padding: .75rem 1.2rem;
  border-radius: 999px;
  font-weight: 560;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Breiter Rahmen für Kopf und Hero (Entscheid 07.10.: Hero deutlich breiter, nicht randlos) */
.container--wide {
  max-width: calc(var(--container-wide) + 2 * var(--gutter-wide));
  padding-inline: var(--gutter-wide);
}

.section { padding-block: var(--section); }

.section-lead {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--slate);
  font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem);
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .9rem 1.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 560;
  font-size: .98rem;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--dark { background: var(--ink); color: var(--on-ink); }
.btn--dark:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--on-ink); }
.btn:active { transform: scale(.985); }
.btn--lg { min-height: 3.6rem; padding-inline: 2.3rem; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Kopf und Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  font-size: 1.24rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand svg { width: 30px; height: 30px; flex: none; }

.nav__menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.4rem);
  list-style: none;
}
.nav__menu a {
  position: relative;
  display: inline-block;
  padding: .45rem 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .1rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__menu a:hover::after,
.nav__menu a[aria-current="true"]::after { transform: scaleX(1); }

.nav__actions {
  position: relative;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  list-style: none;
}
.lang a {
  display: block;
  padding: .34rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--slate);
  text-decoration: none;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }

.nav__burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav { gap: 1rem; }
  .nav__actions { margin-left: auto; }
  .nav__burger { display: block; }
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    z-index: 105;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    margin: 0;
    padding: 2rem var(--gutter) 3rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav__menu.is-open {
    transform: none;
    visibility: visible;
    transition: transform .45s var(--ease-out), visibility 0s;
  }
  .nav__menu a { font-size: 1.6rem; font-weight: 520; letter-spacing: -.015em; padding: .5rem 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(10px, 1.4vw, 18px);
}
.hero__container { flex: 1; display: flex; }

.hero__frame {
  position: relative;
  flex: 1;
  min-height: 520px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  isolation: isolate;
  background: #34413F;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 22, 26, .66) 0%, rgba(15, 22, 26, .28) 34%, rgba(15, 22, 26, 0) 62%),
    linear-gradient(to right, rgba(15, 22, 26, .38) 0%, rgba(15, 22, 26, 0) 58%);
}

.hero__content {
  position: absolute;
  left: clamp(1.25rem, 3.4vw, 3rem);
  right: clamp(1.25rem, 3.4vw, 3rem);
  bottom: clamp(6.6rem, 8vw, 7.6rem);
  color: #fff;
}

.hero__title {
  max-width: 15ch;
  font-size: clamp(2.35rem, 1.15rem + 4vw, 4.85rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -.032em;
}

.hero__lead {
  max-width: 36rem;
  margin-top: clamp(.9rem, 1.4vw, 1.3rem);
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

/* Aussparung für den Button — die Bildfläche fliesst um ihn herum */
.hero__notch,
.finale__notch {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 12px 0 0;
  background: var(--paper);
  border-top-right-radius: var(--radius-hero);
}
.hero__notch::before,
.hero__notch::after,
.finale__notch::before,
.finale__notch::after {
  content: "";
  position: absolute;
  width: var(--radius-hero);
  height: var(--radius-hero);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--radius-hero) - .5px), var(--paper) var(--radius-hero));
  pointer-events: none;
}
.hero__notch::before,
.finale__notch::before { left: 0; top: calc(var(--radius-hero) * -1); }
.hero__notch::after,
.finale__notch::after { right: calc(var(--radius-hero) * -1); bottom: 0; }

.hero__toggle {
  position: absolute;
  right: clamp(.9rem, 2vw, 1.5rem);
  bottom: clamp(.9rem, 2vw, 1.5rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(15, 22, 26, .32);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.hero__toggle:hover { background: rgba(15, 22, 26, .55); }
.hero__toggle:focus-visible { outline-color: #fff; }
.hero__toggle svg { width: 18px; height: 18px; }
.hero__toggle .i-play,
.hero__toggle .i-replay { display: none; }
.hero__toggle[data-state="play"] .i-pause,
.hero__toggle[data-state="replay"] .i-pause { display: none; }
.hero__toggle[data-state="play"] .i-play { display: block; }
.hero__toggle[data-state="replay"] .i-replay { display: block; }

@media (max-width: 700px) {
  .hero__frame { min-height: 0; }
  .hero__content { bottom: 6.2rem; }
  .hero__notch { right: 4.6rem; }
  .hero__notch .btn { width: 100%; padding-inline: 1.2rem; }
  .hero__video { object-position: 66% 50%; }
}

/* --------------------------------------------------------------------------
   Über EcoVista
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about__lead {
  margin-top: 1.5rem;
  max-width: 30rem;
  font-size: clamp(1.18rem, 1.05rem + .5vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink);
}
.about__body { margin-top: 1.1rem; max-width: 32rem; color: var(--slate); }

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  list-style: none;
  border-top: 1px solid var(--line);
}
.fields li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .97rem;
  font-weight: 540;
}
.field__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--loam);
}
.field__icon svg { width: 20px; height: 20px; }

.about__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-hero);
  background: var(--mist);
  padding: clamp(.5rem, 1.5vw, 1rem);
}
.about__contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.contour { fill: none; stroke: #FFFFFF; stroke-width: 1.4; }

/* Überschrift sagt, was die vier Zahlen sind: Zusagen an den Kunden (Entscheid 07.10.) */
.facts__title {
  padding: clamp(1.4rem, 2.8vw, 2.3rem) clamp(1.25rem, 2.6vw, 2.2rem) 0;
  font-size: clamp(1.25rem, 1.08rem + .6vw, 1.6rem);
  font-weight: 560;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  list-style: none;
}
.facts::before,
.facts::after {
  content: "";
  position: absolute;
  background: rgba(31, 42, 48, .14);
  transition: transform 1.1s var(--ease-out) .15s;
}
.facts::before { left: 50%; top: 1.25rem; bottom: 1.25rem; width: 1px; transform-origin: top; }
.facts::after { top: 50%; left: 1.25rem; right: 1.25rem; height: 1px; transform-origin: left; }

.fact { padding: clamp(1.4rem, 2.8vw, 2.3rem) clamp(1.25rem, 2.6vw, 2.2rem); }
.fact__head {
  --num: clamp(3rem, 2.1rem + 2.7vw, 4.6rem);
  display: grid;
  justify-items: start;
  gap: .45rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.005em;
}
.odo {
  display: inline-block;
  height: 1.16em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  font-size: var(--num);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.odo__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--n) * -1.16em)); }
.odo__strip span { display: block; height: 1.16em; line-height: 1.16; }
.odo__strip span::before { content: attr(data-d); }
.fact__title { font-size: clamp(1.02rem, .96rem + .25vw, 1.15rem); color: var(--ink); text-wrap: balance; }
.fact__label { margin-top: .55rem; max-width: 34ch; font-size: .93rem; line-height: 1.55; color: var(--slate); }

@media (max-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .facts::before, .facts::after { display: none; }
  .facts__title { padding: 1.4rem 1.1rem .2rem; }
  .fact { padding: 1.3rem 1.1rem; }
  .fact + .fact { border-top: 1px solid rgba(31, 42, 48, .14); }
  .fact__head { --num: 2.9rem; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: .9rem; }
  .fact__title { padding-bottom: calc(var(--num) * .2 - .22em); }
}
@media (max-width: 520px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Leistungen (Raster 4 × 2)
   -------------------------------------------------------------------------- */
.services { padding-top: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.section-head .section-lead { margin-top: 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3rem) 1.25rem;
  list-style: none;
}
.svc { min-width: 0; }
.svc__media {
  position: relative;
  aspect-ratio: 1 / .86;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--mist);
}
.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.svc:hover .svc__media img { transform: scale(1.035); }
.svc__media::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 70%;
  height: 45%;
  background: radial-gradient(ellipse at 0 0, rgba(15, 22, 26, .45), rgba(15, 22, 26, 0) 70%);
  z-index: 1;
  pointer-events: none;
}
.svc__num {
  position: absolute;
  top: .85rem;
  left: 1rem;
  z-index: 2;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.svc__title { margin-top: 1rem; }
.svc__text { margin-top: .4rem; font-size: .93rem; line-height: 1.5; color: var(--slate); }

@media (max-width: 1100px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services__grid { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Der Plan (das Memorable)
   -------------------------------------------------------------------------- */
.plan { background: var(--mist); }

.plan__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.plan__head .section-lead { margin-top: 0; }

.plan__canvas {
  position: relative;
  aspect-ratio: 1400 / 781;
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: #7d8a6c;
}
.plan__canvas > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plan__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 1.5px rgba(10, 16, 18, .7));
}

.ly { transition: opacity .5s var(--ease); }
.ly .area { stroke: none; }
.ly--anbau .line { stroke: var(--layer-anbau); }
.ly--anbau .area { fill: rgba(239, 226, 180, .26); }
.ly--wasser .line { stroke: var(--layer-wasser); }
.ly--wasser .area { fill: rgba(166, 212, 230, .32); }
.ly--energie .line { stroke: var(--layer-energie); }
.ly--energie .area { fill: rgba(244, 188, 76, .3); }
.ly--wege .line { stroke: var(--layer-wege); }
.ly--wege .area { fill: rgba(255, 255, 255, .16); }
.ly .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ly .line--thin { stroke-width: 2.2; }
.ly .dash { stroke-dasharray: 9 9; }

.plan__labels { list-style: none; }
.plan__labels li {
  position: absolute;
  left: calc(var(--x) / 1400 * 100%);
  top: calc(var(--y) / 781 * 100%);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .65rem .28rem .5rem;
  border-radius: 999px;
  background: rgba(17, 25, 29, .78);
  color: #fff;
  font-size: .78rem;
  font-weight: 560;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.plan__labels li::before {
  content: "";
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--dot);
}
.plan__labels [data-layer="anbau"] { --dot: var(--layer-anbau); }
.plan__labels [data-layer="wasser"] { --dot: var(--layer-wasser); }
.plan__labels [data-layer="energie"] { --dot: var(--layer-energie); }
.plan__labels [data-layer="wege"] { --dot: var(--layer-wege); }
.plan__labels [data-layer="haus"] { background: rgba(17, 25, 29, .88); font-weight: 600; padding-left: .65rem; }
.plan__labels [data-layer="haus"]::before { display: none; }

/* Eine Ebene hervorheben */
[data-focus="anbau"] .ly:not(.ly--anbau),
[data-focus="wasser"] .ly:not(.ly--wasser),
[data-focus="energie"] .ly:not(.ly--energie),
[data-focus="wege"] .ly:not(.ly--wege) { opacity: .1; }
[data-focus="anbau"] .plan__labels li:not([data-layer="anbau"]),
[data-focus="wasser"] .plan__labels li:not([data-layer="wasser"]),
[data-focus="energie"] .plan__labels li:not([data-layer="energie"]),
[data-focus="wege"] .plan__labels li:not([data-layer="wege"]) { opacity: 0; }

.plan__legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.layer-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "chip switch" "title title" "text text";
  align-items: start;
  align-content: start;
  gap: .3rem 1rem;
  padding: 1.25rem 1.3rem 1.4rem;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .35s var(--ease), color .35s var(--ease);
}
.layer-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(31, 42, 48, .55); }
.layer-btn:active { transform: translateY(-1px); }
.layer-btn__chip {
  grid-area: chip;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: .9rem;
  border-radius: 14px;
  background: var(--ink);
  transition: box-shadow .35s var(--ease);
}
.layer-btn__chip svg { width: 36px; height: 36px; }
.layer-btn__switch {
  grid-area: switch;
  position: relative;
  width: 36px; height: 21px;
  margin-top: .2rem;
  border-radius: 999px;
  background: var(--mist-deep);
  box-shadow: inset 0 0 0 1px rgba(31, 42, 48, .12);
  transition: background-color .35s var(--ease);
}
.layer-btn__switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(15, 22, 26, .3);
  transition: transform .4s var(--ease-out);
}
.layer-btn__title { grid-area: title; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.layer-btn__text { grid-area: text; font-size: .9rem; line-height: 1.5; color: var(--slate); transition: color .35s var(--ease); }
.layer-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.layer-btn[aria-pressed="true"] .layer-btn__text { color: var(--on-ink-muted); }
.layer-btn[aria-pressed="true"] .layer-btn__chip { box-shadow: 0 0 0 1.5px var(--sw); }
.layer-btn[aria-pressed="true"] .layer-btn__switch { background: var(--sw); box-shadow: none; }
.layer-btn[aria-pressed="true"] .layer-btn__switch::after { transform: translateX(15px); }
.layer-btn:focus-visible { outline-offset: 3px; }
.layer-btn[data-layer="anbau"] { --sw: #E3CF8E; }
.layer-btn[data-layer="wasser"] { --sw: var(--layer-wasser); }
.layer-btn[data-layer="energie"] { --sw: var(--layer-energie); }
.layer-btn[data-layer="wege"] { --sw: #FFFFFF; }

.plan__note { margin-top: 1rem; font-size: .86rem; color: var(--slate); max-width: 46rem; }

@media (max-width: 960px) {
  .plan__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .plan__head { grid-template-columns: minmax(0, 1fr); }
  .plan__labels { display: none; }
  .ly .line { stroke-width: 6; }
  .ly .line--thin { stroke-width: 4.5; }
  .ly .dash { stroke-dasharray: 16 14; }
  .plan__canvas { border-radius: var(--radius-card); }
}
@media (max-width: 420px) {
  .plan__legend { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Vorgehen
   -------------------------------------------------------------------------- */
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.process__media {
  border-radius: var(--radius-hero);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.process__media img { width: 100%; height: 100%; object-fit: cover; }

.steps { list-style: none; margin-top: clamp(2rem, 4vw, 2.75rem); counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: .3rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--loam);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.steps p { color: var(--slate); }

@media (max-width: 860px) {
  .process__grid { grid-template-columns: minmax(0, 1fr); }
  .process__media { aspect-ratio: 16 / 11; }
}

/* --------------------------------------------------------------------------
   Typische Vorhaben (Galerie wie Vorlage)
   -------------------------------------------------------------------------- */
.projects { padding-top: 0; }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
.projects__col { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.projects__intro { padding: .5rem 1.5rem 1.5rem 0; }
.projects__intro p { margin-top: 1rem; color: var(--slate); max-width: 26rem; }

.pcard {
  position: relative;
  flex: 1 1 auto;
  min-height: 15rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--mist);
}
.pcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.pcard:hover img { transform: scale(1.03); }
.pcard::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(15, 22, 26, .6), rgba(15, 22, 26, 0));
  pointer-events: none;
}
.pcard figcaption {
  position: absolute;
  left: 1.15rem;
  bottom: 1rem;
  right: 1.15rem;
  z-index: 1;
  color: #fff;
  font-weight: 560;
  font-size: .98rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.pcard--tall { aspect-ratio: 3 / 4; flex: none; }
.pcard--square { aspect-ratio: 4 / 3; flex: none; }
.projects__cta { width: 100%; }

@media (max-width: 960px) {
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects__col--first { grid-column: 1 / -1; }
  .projects__col--first .pcard { aspect-ratio: 16 / 9; flex: none; }
}
@media (max-width: 620px) {
  .projects__grid { grid-template-columns: minmax(0, 1fr); }
  .pcard--tall { aspect-ratio: 4 / 4.4; }
}

/* --------------------------------------------------------------------------
   Netzwerk
   -------------------------------------------------------------------------- */
.network { background: var(--mist); }
.network__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.network__body > p { margin-top: 1.25rem; color: var(--slate); max-width: 34rem; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); }
.network__media { border-radius: var(--radius-hero); overflow: hidden; aspect-ratio: 4 / 5; }
.network__media img { width: 100%; height: 100%; object-fit: cover; }

.ticks { list-style: none; margin-top: 2rem; }
.ticks li {
  position: relative;
  padding: .85rem 0 .85rem 2rem;
  border-top: 1px solid var(--line-strong);
}
.ticks li:last-child { border-bottom: 1px solid var(--line-strong); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 1.1rem;
  height: 1.5px;
  background: var(--loam);
}

@media (max-width: 860px) {
  .network__grid { grid-template-columns: minmax(0, 1fr); }
  .network__media { aspect-ratio: 16 / 11; order: -1; }
}

/* --------------------------------------------------------------------------
   Fragen und Grenzen
   -------------------------------------------------------------------------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.limits {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: 1.5rem 1.6rem 1.6rem;
  border-radius: var(--radius-card);
  background: var(--mist);
}
.limits p { margin-top: .6rem; color: var(--slate); }

.qa { border-top: 1px solid var(--line-strong); }
.qa:last-child { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 560;
  font-size: clamp(1.02rem, .98rem + .25vw, 1.14rem);
  line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: 2px; }
.qa__icon {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), background-color .3s var(--ease);
}
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__icon { background: var(--ink); border-color: var(--ink); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: #fff; }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__a { padding: 0 3.5rem 1.4rem 0; color: var(--slate); }

@media (max-width: 860px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .qa__a { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   Kontakt (Formular vor Hintergrundbild)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Ausblick: Blick vom Turm über das fertige Dorf, tiefe Sonne am blauen Himmel (Entscheid 08.10.)
   -------------------------------------------------------------------------- */
.finale h2 { font-size: clamp(2.2rem, 1.35rem + 3.1vw, 4.4rem); letter-spacing: -.03em; }
.finale__stage { position: relative; }
.finale__frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-hero);
  background: var(--mist);
}
.finale__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Kartenzeichen der Planebenen auf dem fertigen Hof */
.finale__pins { position: absolute; inset: 0; z-index: 1; list-style: none; pointer-events: none; }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .9rem .3rem .3rem;
  border-radius: 999px;
  background: rgba(31, 42, 48, .84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .86rem;
  font-weight: 560;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 22px rgba(15, 22, 26, .2);
}
.pin__chip {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--c);
}
.pin__chip svg { width: 16px; height: 16px; }
.finale__note {
  position: absolute;
  top: clamp(.8rem, 1.6vw, 1.25rem);
  right: clamp(.8rem, 1.6vw, 1.25rem);
  z-index: 1;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(31, 42, 48, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
}
@media (max-width: 900px) {
  .pin { font-size: .78rem; padding-right: .7rem; }
  .pin__chip { width: 24px; height: 24px; }
}
@media (max-width: 700px) {
  .finale__img { aspect-ratio: 4 / 3; object-position: 52% 50%; }
  .finale__pins { display: none; }
  .finale__notch { position: static; padding: 1rem 0 0; background: none; }
  .finale__notch::before, .finale__notch::after { display: none; }
  .finale__notch .btn { width: 100%; }
}

.contact { padding-top: 0; }
.contact__stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-hero);
  /* Nachtschiefer mit warmem Abendschein oben rechts, Höhenlinien in Stoppelfeld (Entscheid 07.10.) */
  background:
    radial-gradient(85% 115% at 100% 0%, rgba(203, 185, 145, .17) 0%, rgba(203, 185, 145, 0) 58%),
    radial-gradient(70% 90% at 0% 100%, rgba(141, 158, 167, .1) 0%, rgba(141, 158, 167, 0) 60%),
    var(--ink);
  padding: clamp(1.5rem, 5vw, 5rem) clamp(1.25rem, 4vw, 4.5rem);
}
.contact__contours {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.contact__contours .contour { stroke: rgba(203, 185, 145, .2); stroke-width: 1.1; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}
.contact__intro { color: #fff; }
.contact__intro > p { margin-top: 1.25rem; max-width: 30rem; color: rgba(255, 255, 255, .9); font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); }
.contact__mail { font-size: .98rem; }
.contact__mail a { color: #fff; font-weight: 560; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact__intro :focus-visible { outline-color: #fff; }
.contact__steps-title {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 1rem;
  color: var(--straw);
}
.steps-next {
  position: relative;
  display: grid;
  gap: 1.05rem;
  margin: 1rem 0 clamp(1.5rem, 3vw, 2.25rem);
  list-style: none;
}
.steps-next::before {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: rgba(203, 185, 145, .35);
}
.steps-next li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: .9rem; align-items: start; }
.steps-next__num {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(203, 185, 145, .6);
  border-radius: 50%;
  background: var(--ink);
  color: var(--straw);
  font-size: .85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps-next p { max-width: 28rem; padding-top: .22rem; color: var(--on-ink-muted); line-height: 1.5; }
.steps-next strong { color: #fff; font-weight: 600; }

.contact__panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 24px;
  background: var(--paper);
}

.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 560; font-size: .95rem; }
.field input,
.field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  transition: border-color .25s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6E7B82; }
.field input:hover,
.field textarea:hover { border-color: var(--slate); }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field--hp { display: none !important; }
.form__submit { justify-self: start; }
.form__status { font-weight: 560; font-size: .95rem; }
.form__status:empty { margin-top: -1.2rem; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--error); }
.form__status.is-ok::before { content: "✓ "; }
.form__status.is-err::before { content: "! "; }
.form__note { font-size: .85rem; line-height: 1.5; color: var(--slate); }
.form__note a { text-underline-offset: 3px; }

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .form__submit { justify-self: stretch; }
}

/* --------------------------------------------------------------------------
   Fusszeile
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
}
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--straw); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
.footer__brand .brand { color: var(--on-ink); }
.footer__brand p { margin-top: 1rem; max-width: 22rem; }
/* Kurzer SEO-Text unter dem Claim (Entscheid 08.10.): kleiner, gleiche ruhige Farbe */
.footer__brand .footer__seo { margin-top: .85rem; font-size: .86rem; line-height: 1.65; }
.footer__title { font-size: .85rem; font-weight: 600; color: var(--straw); margin-bottom: .9rem; }
.footer__list { list-style: none; display: grid; gap: .55rem; font-size: .95rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .88rem;
}

@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }

/* Rechtsseiten (generiert): Marke wie auf der Startseite */
.lp-brand svg { width: 30px; height: 30px; }

/* --------------------------------------------------------------------------
   Bewegung — nur mit JavaScript und ohne «Bewegung reduzieren»
   -------------------------------------------------------------------------- */
@keyframes word-in { to { transform: none; opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveal-fallback { to { opacity: 1; } }

.js:not(.rm) .hero__title:not(.is-split) { opacity: 0; animation: reveal-fallback 0s linear 2.5s forwards; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title.is-split .w > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%);
  animation: word-in 1s var(--ease-out) forwards;
  animation-delay: calc(.3s + var(--i) * 75ms);
}
.js:not(.rm) .hero__lead { opacity: 0; animation: fade-up 1s var(--ease-out) 1.05s forwards; }
.js:not(.rm) .hero__notch .btn { opacity: 0; animation: fade-up 1s var(--ease-out) 1.25s forwards; }

/* Planebenen zeichnen sich */
.js .plan__svg .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .plan__svg .area { opacity: 0; }
.js .plan__svg .mask-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .plan__labels li { opacity: 0; }
.is-drawn .plan__svg .draw,
.is-drawn .plan__svg .mask-draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.7s var(--ease) calc(var(--i) * .6s);
}
.is-drawn .plan__svg .area { opacity: 1; transition: opacity 1s var(--ease) calc(var(--i) * .6s + 1s); }
.is-drawn .plan__labels li { opacity: 1; transition: opacity .7s var(--ease) calc(var(--i) * .6s + 1.2s); }
.is-drawn[data-focus] .plan__labels li { transition-delay: 0s; }

/* Über EcoVista: Höhenlinien, Trennlinien und Zählwerk (ein Moment beim Hereinscrollen) */
.js:not(.rm) [data-about]:not(.is-in) .contour { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js:not(.rm) [data-about] .contour { stroke-dasharray: 1; transition: stroke-dashoffset 2.6s var(--ease) calc(var(--k) * .11s); }
.js:not(.rm) [data-about]:not(.is-in) .facts::before { transform: scaleY(0); }
.js:not(.rm) [data-about]:not(.is-in) .facts::after { transform: scaleX(0); }
.js:not(.rm) [data-about]:not(.is-in) .odo__strip { transform: translateY(0); }
/* Texte stehen von Anfang an (Klarheit vor Effekt, Entscheid 07.10.), nur Zahlen und Linien bewegen sich */
.js:not(.rm) [data-about] .odo__strip { transition: transform 2.2s cubic-bezier(.22, 1, .36, 1) calc(var(--d) * .12s); }

/* Ausblick und Kontakt: einmal beim Hereinscrollen ([data-reveal], Entscheid 07.10.) */
.js:not(.rm) .finale__stage:not(.is-in) .finale__img { transform: scale(1.06); }
.js:not(.rm) .finale__img { transition: transform 2.8s cubic-bezier(.22, 1, .36, 1); }
.js:not(.rm) .finale__stage:not(.is-in) .pin { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); }
.js:not(.rm) .pin { transition: opacity .8s var(--ease) calc(1s + var(--i) * .14s), transform .9s var(--ease-out) calc(1s + var(--i) * .14s); }
.js:not(.rm) .contact__stage:not(.is-in) .contour { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js:not(.rm) .contact__stage .contour { stroke-dasharray: 1; transition: stroke-dashoffset 2.8s var(--ease) calc(var(--k) * .1s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .plan__svg .draw, .js .plan__svg .mask-draw { stroke-dashoffset: 0; }
  .js .plan__svg .area, .js .plan__labels li { opacity: 1; }
  .odo__strip { transform: translateY(calc(var(--n) * -1.16em)) !important; }
  .contour { stroke-dashoffset: 0 !important; }
}

/* Moontech-Hinweis «Built by Moontech Labs» mit dem Mond von heute — Vorlage nach ARDOS (Standard §3.2, Regel 08.10.2026).
   Gebaut für dunkle Fusszeilen. Farben nur über die Variablen am .mt-credit anpassen; die Mondphase setzt moon.js.
   Beim Zeigen leuchtet der Mond, und die Phase erscheint als kleines Etikett darüber, ohne dass sich die Zeile verschiebt. */
.mt-credit {
  --mt-text: #B9C0C8;                    /* Ruhe: gedämpft wie der übrige Fusstext */
  --mt-text-hover: #EEF0F2;              /* Zeigen und Fokus */
  --mt-line: rgba(238, 240, 242, .16);   /* Trennlinie links */
  --mt-label-bg: #EEF0F2;                /* Etikett mit der Phase */
  --mt-label-text: #10161D;
  --mt-lit: #F4F6F8;                     /* beleuchteter Teil des Monds */
  --mt-dark: rgba(238, 240, 242, .13);   /* Schattenseite */
  --mt-rim: rgba(238, 240, 242, .5);     /* Rand */
  --mt-glow: rgba(238, 240, 242, .65);
  --mt-ease: cubic-bezier(.25, 1, .5, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--mt-line);
  color: var(--mt-text);
  text-decoration: none;
  transition: color .3s;
}
.mt-credit:hover, .mt-credit:focus-visible { color: var(--mt-text-hover); }
/* Unterstreichung aus den Linkregeln der Seite gilt hier nicht (a.mt-credit schlägt «.footer a:hover») */
a.mt-credit, a.mt-credit:hover, a.mt-credit:focus-visible { text-decoration: none; }
.mt-credit__moon { width: 1.35rem; height: 1.35rem; flex: none; overflow: visible; transition: filter .4s; }
.mt-credit__disc { fill: var(--mt-dark); stroke: var(--mt-rim); stroke-width: .8; }
.mt-credit__lit { fill: var(--mt-lit); }
.mt-credit:hover .mt-credit__moon, .mt-credit:focus-visible .mt-credit__moon { filter: drop-shadow(0 0 6px var(--mt-glow)); }
.mt-credit__phase {
  position: absolute; right: 0; bottom: calc(100% + .6rem);
  padding: .32rem .62rem .3rem; border-radius: 3px;
  background: var(--mt-label-bg); color: var(--mt-label-text);
  font-size: .8rem; line-height: 1.3; white-space: nowrap;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .3s, transform .35s var(--mt-ease);
}
.mt-credit:hover .mt-credit__phase, .mt-credit:focus-visible .mt-credit__phase { opacity: 1; transform: none; }
/* Schmal: keine Trennlinie, Etikett nach rechts öffnen, damit es nicht über den linken Rand ragt */
@media (max-width: 640px) {
  .mt-credit { border-left: 0; padding-left: 0; }
  .mt-credit__phase { right: auto; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-credit, .mt-credit__moon, .mt-credit__phase { transition: none; }
}
/* EcoVista: Farben der Fusszeile (Nachtschiefer) */
.site-footer .mt-credit { --mt-text: var(--on-ink-muted); --mt-text-hover: var(--on-ink); --mt-line: rgba(255, 255, 255, .14); --mt-label-bg: var(--on-ink); --mt-label-text: var(--ink); }
