/* =========================================================
   NRW Energieberatung — Landingpage
   Visuelle Richtung 1: „Zertifizierte Substanz"
   Bestandsmarke (Grün, Gelb, Barlow) beibehalten und vertieft.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:      #F7F5F0;
  --paper-2:    #EFEBE1;
  --paper-3:    #E7E2D6;
  --card:       #FFFDF9;
  --ink:        #23272A;
  --ink-soft:   #3A4045;
  --muted:      #5F656A;
  --line:       #DDD7CA;
  --line-soft:  #E8E3D8;
  --green:      #3E7A2B;   /* Flaechen, Rahmen, Buttons */
  --green-text: #397125;   /* Text-Variante: >=4.5:1 auch auf --paper-2 */
  --green-dark: #2C5A1E;
  --green-tint: #E9EFE1;
  --signal:     #F8E111;
  --dark:       #1E2321;

  --scale-gradient: linear-gradient(90deg,
      #2C5A1E 0%, #3E7A2B 16%, #6F9A29 38%,
      #B7B324 60%, #E3C81C 78%, #B5AE9E 100%);

  --ff-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --ff-body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-util:    'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;

  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 8vw, 8rem);
  --radius: 4px;
  --header-h: 84px;

  --shadow-1: 0 1px 2px rgba(35, 39, 42, .04), 0 6px 20px rgba(35, 39, 42, .05);
  --shadow-2: 0 2px 6px rgba(35, 39, 42, .06), 0 18px 44px rgba(35, 39, 42, .09);
}

/* ---------- Reset ---------- */
*, *::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(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: .75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tinted { background: var(--paper-2); border-block: 1px solid var(--line-soft); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 4.5vw, 4rem); }
.section__intro { color: var(--muted); font-size: 1.125rem; margin-top: 1rem; }

/* ---------- Typografie ---------- */
h1, h2, .quote p, .fact__value {
  font-family: var(--ff-display);
  font-weight: 600;
  font-variation-settings: 'SOFT' 24, 'WONK' 1, 'opsz' 96;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 {
  font-family: var(--ff-body);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--ff-util);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: .9rem;
}
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 2.25rem; height: 1px;
  background: currentColor;
  margin-left: .75rem;
  vertical-align: .3em;
  opacity: .55;
}

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-soft); line-height: 1.62; }

.link { color: var(--green-dark); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.link:hover { color: var(--green); text-decoration-thickness: 2px; }

.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--sm { padding: .6rem 1.05rem; font-size: .9375rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 240, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 14px rgba(35,39,42,.05); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Beim Scrollen wird das Logo per transform verkleinert, nicht per Breite:
   das vermeidet Layout-Neuberechnung bei jedem Scroll-Frame. */
.brand img {
  width: clamp(180px, 20vw, 232px); height: auto;
  transform-origin: left center;
  transition: transform .22s ease;
}
.site-header.is-scrolled .brand img { transform: scale(.86); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.site-nav__list { display: flex; align-items: center; gap: clamp(.9rem, 1.9vw, 1.75rem); }
.site-nav__list a {
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: .35rem;
  position: relative;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: .55rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .8rem; cursor: pointer;
  font-family: var(--ff-util); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8125rem;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i { display: block; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% 40% 40% -10%;
  background: radial-gradient(closest-side, rgba(62,122,43,.09), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
  line-height: .99;
  margin-bottom: 1.4rem;
}
.hero__text .lede { max-width: 34rem; }

/* Randnotiz im Duktus eines Gutachtens: Haarlinie oben, Kapitälchen-Marginalie
   links, kein farbiger Balken. */
.principle {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .35rem 1.25rem;
  margin-top: 1.75rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .9875rem;
  color: var(--muted);
  max-width: 34rem;
}
.principle__mark {
  font-family: var(--ff-util); font-weight: 600; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-text);
  padding-top: .18rem;
}
.principle strong { color: var(--ink); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.credentials {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 2.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.credentials dt {
  font-family: var(--ff-util); font-weight: 600; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .3rem;
}
.credentials dd { font-size: .9375rem; font-weight: 500; line-height: 1.4; }

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(86vh, 860px);
  object-fit: cover;
  object-position: center 42%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.hero__figure figcaption,
.hero__figure figcaption + * { margin-top: .9rem; }
.hero__figure figcaption {
  display: flex; align-items: baseline; gap: .7rem;
  font-size: .875rem; color: var(--muted);
}
.fig-no {
  font-family: var(--ff-util); font-weight: 600; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-text); white-space: nowrap;
}

/* ---------- Signature: Effizienzhaus-Skala ---------- */
.skala {
  background: var(--dark);
  color: #EFEDE6;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.skala .eyebrow { color: #9DC47F; }
.skala h2 { color: #FBFAF6; }
.skala__head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.skala__intro { margin-top: 1rem; color: #BDBFB7; font-size: 1.125rem; }
.skala__intro strong { color: #FBFAF6; font-weight: 600; }

.scale { margin: 0; }
.scale__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.scale__fill {
  position: absolute; inset: 0;
  background: var(--scale-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.22, .8, .28, 1);
}
.scale.is-in .scale__fill { transform: scaleX(1); }

.scale__ticks { position: relative; height: 138px; margin-top: 0; }
.scale__tick {
  position: absolute; top: 0;
  left: var(--x);
  width: min(150px, 30vw);
  transform: translateX(-50%);
  padding-top: 1.5rem;
  text-align: center;
  opacity: 0;
  translate: 0 8px;
  transition: opacity .5s ease, translate .5s ease;
  transition-delay: calc(.45s + var(--i) * .09s);
}
.scale.is-in .scale__tick { opacity: 1; translate: 0 0; }
.scale__tick:first-child { transform: translateX(-14%); text-align: left; }
.scale__tick:last-child  { transform: translateX(-86%); text-align: right; }

.scale__tick::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 1px; height: 1.1rem;
  background: rgba(255, 255, 255, .3);
}
.scale__tick:first-child::before { left: 14%; }
.scale__tick:last-child::before  { left: 86%; }

.scale__tick.is-marked::before { width: 2px; height: 1.5rem; background: var(--signal); }

.scale__val {
  display: block;
  font-family: var(--ff-util); font-weight: 600;
  font-size: 1.0625rem; letter-spacing: .06em;
  color: #FBFAF6;
}
.scale__note { display: block; margin-top: .3rem; font-size: .8125rem; line-height: 1.35; color: #9A9C95; }
.scale__note--light { color: #FBFAF6; }
.scale__badge {
  display: inline-block; margin-top: .5rem;
  padding: .2rem .55rem;
  border: 1px solid rgba(248, 225, 17, .45);
  border-radius: 999px;
  font-family: var(--ff-util); font-weight: 600;
  font-size: .75rem; letter-spacing: .06em;
  color: var(--signal);
}
.scale figcaption {
  margin-top: .5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .9375rem; color: #9A9C95;
  max-width: 40rem;
}

/* ---------- Leistungen ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.9rem;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(62,122,43,.5); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.card__icon { width: 54px; height: auto; margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .65rem; }
.card > p { color: var(--muted); font-size: .9875rem; }
.card__list {
  margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: .5rem;
}
.card__list li {
  position: relative; padding-left: 1.15rem;
  font-size: .875rem; line-height: 1.5; color: var(--ink-soft);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; background: var(--green); transform: rotate(45deg);
}

/* ---------- Recht & Förderung ---------- */
.recht__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.recht__text h3 { margin-top: 2rem; margin-bottom: .5rem; color: var(--green-dark); }
.recht__text p { color: var(--ink-soft); }
.recht__text > p:first-of-type { margin-top: 1.25rem; }

.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--paper); padding: 1.5rem 1.5rem 1.6rem; }
.fact__value {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: .5rem;
}
.fact__label { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.facts__note {
  background: var(--paper-3); padding: 1.25rem 1.5rem;
  font-size: .875rem; line-height: 1.55; color: var(--ink-soft);
}

/* ---------- Ablauf ---------- */
.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.phase { background: var(--paper); padding: 1.9rem 1.6rem 2.1rem; }
.phase__no {
  font-family: var(--ff-util); font-weight: 600; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-text); margin-bottom: 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--line-soft);
}
.phase h3 { margin-bottom: .6rem; }
.phase p:last-child { font-size: .9375rem; color: var(--muted); }

/* ---------- Referenzen ---------- */
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.ref figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.ref--featured { grid-column: 1 / -1; }
.ref--featured img { aspect-ratio: 21 / 9; }
.ref img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(.92) contrast(1.02);
  transition: filter .3s ease, transform .3s ease;
}
.ref figure:hover img { filter: saturate(1) contrast(1.04); transform: scale(1.012); }
.ref figcaption { padding-top: 1rem; }
.ref figcaption .fig-no { display: block; margin-bottom: .4rem; }
.ref h3 { margin-bottom: .35rem; }
.ref__spec {
  font-family: var(--ff-util);
  font-size: .9375rem; line-height: 1.45; color: var(--muted);
  letter-spacing: .01em;
}

/* ---------- Person ---------- */
.person__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
/* Pull-Quote: hängende Interpunktion statt Akzentbalken. */
.quote { margin: 2.25rem 0 0; }
.quote p {
  text-indent: -.42em;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.32;
  color: var(--ink);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 72;
}
.person__byline { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.75rem; }
.person__byline img {
  width: 84px; height: 112px; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.person__byline p { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.person__byline strong { color: var(--ink); }

.quali__title {
  font-family: var(--ff-util); font-weight: 600; font-size: .8125rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding-bottom: .75rem; border-bottom: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.quali { display: grid; gap: .8rem; }
.quali li {
  position: relative; padding-left: 1.65rem;
  font-size: .9875rem; line-height: 1.5;
}
.quali li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px;
  border: 2px solid var(--green);
  border-radius: 2px;
}
.person__listings { grid-column: 1 / -1; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 46rem;
}
.logos img {
  width: 100%; max-width: 108px; height: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(.95);
  opacity: .7;
  transition: filter .25s ease, opacity .25s ease;
}
.logos img:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 620px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: color .18s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--green-dark); }
.qa summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: .45em;
  width: 10px; height: 10px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa__body { padding: 0 2.5rem 1.5rem 0; animation: qa-in .28s ease both; }
.qa__body p + p { margin-top: .85rem; }
.qa__body p { color: var(--muted); font-size: .9875rem; }
@keyframes qa-in { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Kontakt ---------- */
.kontakt__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.kontakt__intro .lede { margin-top: 1rem; }
.nap { font-style: normal; margin-top: 2rem; display: grid; gap: 1rem; }
.nap__name { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.nap__name span { font-family: var(--ff-body); font-size: 1rem; font-weight: 500; color: var(--muted); }
.nap p { font-size: 1rem; line-height: 1.6; }
.kontakt__note {
  margin-top: 1.75rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--muted);
}
.kontakt__note b {
  display: block;
  font-family: var(--ff-util); font-weight: 600; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-text);
  margin-bottom: .3rem;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field { grid-column: 1 / -1; display: grid; gap: .4rem; }
.field--half { grid-column: span 1; }
.field label {
  font-family: var(--ff-util); font-weight: 600; font-size: .8125rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea {
  font: inherit;
  padding: .7rem .85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .18s ease, background-color .18s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--green); background: #fff; }
.field textarea { resize: vertical; min-height: 8rem; }

.field--check {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr; gap: .7rem;
  align-items: start;
}
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--green); }
.field--check label {
  font-family: var(--ff-body); text-transform: none; letter-spacing: 0;
  font-size: .875rem; font-weight: 400; line-height: 1.5; color: var(--muted);
}
.form__error {
  grid-column: 1 / -1; margin: 0;
  padding: .7rem .9rem;
  background: #FBECEA;
  border: 1px solid #E0B4AD;
  border-radius: var(--radius);
  color: #8C2C22; font-size: .9375rem;
}
.form .btn { grid-column: 1 / -1; }
.form__hint { grid-column: 1 / -1; font-size: .8125rem; line-height: 1.5; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #C3C6BF; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.site-footer__brand img { width: 220px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1.1rem; }
.site-footer__brand p { font-size: .9375rem; line-height: 1.6; color: #9A9C95; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.site-footer__nav ul { display: grid; gap: .6rem; align-content: start; }
.site-footer__nav a, .site-footer__nav .linkbtn {
  font-size: .9375rem; color: #C3C6BF; text-decoration: none;
  transition: color .18s ease;
}
.site-footer__nav a:hover, .site-footer__nav .linkbtn:hover { color: #fff; }
.site-footer__nav .linkbtn { text-decoration: underline; text-underline-offset: .2em; }
.site-footer__legal {
  grid-column: 1 / -1;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8125rem; color: #94978F;
}
.site-footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.site-footer__legal a:hover { color: #fff; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: var(--gutter);
  animation: cookie-in .3s ease both;
}
@keyframes cookie-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.cookie__inner {
  width: min(var(--shell), 100%); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 1.25rem 1.4rem;
}
.cookie__title { font-weight: 600; margin-bottom: .25rem; }
.cookie__text { font-size: .875rem; line-height: 1.55; color: var(--muted); max-width: 52rem; }
.cookie__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Scroll-Reveal ---------- */
.js-reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .6s ease, translate .6s ease;
  transition-delay: calc(var(--i, 0) * .07s);
}
.js-reveal.is-in { opacity: 1; translate: 0 0; }
.no-js .js-reveal { opacity: 1; translate: 0 0; }
.no-js .scale__tick { opacity: 1; translate: 0 0; }
.no-js .scale__fill { transform: scaleX(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { max-width: 40rem; }
  .hero__figure img { max-height: 58vh; }
  .recht__grid,
  .person__grid,
  .faq__grid,
  .kontakt__grid,
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.0625rem; }
  .site-nav__list a::after { display: none; }
  .site-nav__cta { margin-top: 1.1rem; }

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

  /* Skala: von der Achse auf eine vertikale Leiste umstellen */
  .scale__track { display: none; }
  .scale__ticks {
    position: relative;
    height: auto;
    display: grid; gap: 0;
    padding-left: 1.1rem;
  }
  .scale__ticks::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
      #2C5A1E 0%, #3E7A2B 16%, #6F9A29 38%,
      #B7B324 60%, #E3C81C 78%, #B5AE9E 100%);
  }
  .scale__tick {
    position: static;
    width: auto;
    transform: none;
    text-align: left;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .scale__tick:first-child,
  .scale__tick:last-child { transform: none; text-align: left; }
  .scale__tick::before { display: none; }
  .scale__tick:first-child::before,
  .scale__tick:last-child::before { display: none; }
  .scale__tick.is-marked .scale__val { color: var(--signal); }
  .scale figcaption { padding-top: 1.25rem; }
}

@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .cookie__inner { padding: 1.1rem; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-reveal { opacity: 1; translate: none; }
  .scale__tick { opacity: 1; translate: none; }
  .scale__fill { transform: scaleX(1); }
}

/* ---------- Page-Hero (Unterseiten) ---------- */
.breadcrumb { font-family: var(--ff-util); font-size: .8125rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--green-dark); text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 .5rem; opacity: .6; }

.page-hero { padding-block: clamp(2.75rem, 5.5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero__title { font-size: clamp(2.25rem, 4.6vw, 3.6rem); margin-bottom: 1.1rem; }
.page-hero .lede { max-width: 44rem; }
.page-hero__meta { margin-top: 1.5rem; font-size: .875rem; color: var(--muted); }

/* ---------- Prose (Leistungen-Detail, Impressum, Datenschutz) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: clamp(3rem, 5vw, 4rem); margin-bottom: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--green-dark); margin-top: 2rem; margin-bottom: .6rem; }
.prose p { color: var(--ink-soft); margin-top: 1rem; }
.prose p:first-of-type { margin-top: 0; }
.prose ul, .prose ol { margin-top: 1rem; display: grid; gap: .6rem; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.15rem; color: var(--ink-soft); font-size: .9875rem; line-height: 1.55; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--green); transform: rotate(45deg); }
.prose ol { counter-reset: prose-ol; }
.prose ol li { padding-left: 1.5rem; }
.prose ol li::before { content: counter(prose-ol) "."; counter-increment: prose-ol; position: absolute; left: 0; top: 0; width: auto; height: auto; background: none; transform: none; font-family: var(--ff-util); font-weight: 600; color: var(--green-text); font-size: .875rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .link { font-size: inherit; }

.law-note {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .35rem 1.25rem;
  margin-top: 2rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem; line-height: 1.6; color: var(--ink-soft);
}
.law-note__mark {
  font-family: var(--ff-util); font-weight: 600; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-text); padding-top: .18rem;
}
.law-note strong { color: var(--ink); }

.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.sources p + p { margin-top: .4rem; }

.table-wrap { margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.funding { width: 100%; min-width: 34rem; table-layout: fixed; border-collapse: collapse; font-size: .875rem; background: var(--card); }
table.funding th, table.funding td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; overflow-wrap: break-word; }
table.funding th { font-family: var(--ff-util); font-weight: 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
table.funding tr:last-child td { border-bottom: 0; }
table.funding th:first-child, table.funding td:first-child { width: 27%; font-weight: 600; }
table.funding th:nth-child(2), table.funding td:nth-child(2) { width: 27%; }

@media (max-width: 640px) {
  /* Fixed-layout table with sideways scroll reads as broken on a phone;
     stack each row into a labelled card instead. */
  .table-wrap { overflow-x: visible; border: none; }
  table.funding { min-width: 0; width: 100%; table-layout: auto; border: 1px solid var(--line); border-radius: var(--radius); }
  table.funding thead { display: none; }
  table.funding, table.funding tbody, table.funding tr, table.funding th, table.funding td { display: block; width: auto; }
  table.funding tr { border-bottom: 1px solid var(--line); }
  table.funding tr:last-child { border-bottom: 0; }
  table.funding td { border-bottom: 0; padding: .4rem 1rem; }
  table.funding td:first-child { padding-top: 1rem; }
  table.funding td:last-child { padding-bottom: 1rem; }
  table.funding td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--ff-util); font-weight: 600; font-size: .7rem;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
    margin-bottom: .2rem;
  }
}

.more-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.5rem; font-family: var(--ff-util); font-weight: 600; font-size: .875rem; letter-spacing: .03em; color: var(--green-dark); text-decoration: none; }
.more-link:hover { color: var(--green); }
.more-link::after { content: "→"; transition: transform .18s ease; }
.more-link:hover::after { transform: translateX(3px); }

.toc { display: grid; gap: .6rem; margin-top: 1.5rem; padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.toc a { font-weight: 500; text-decoration: none; color: var(--ink-soft); font-size: .9375rem; }
.toc a:hover { color: var(--green-dark); text-decoration: underline; }

.service-anchor { scroll-margin-top: calc(var(--header-h) + 24px); }

.service-head {
  display: flex; align-items: center; gap: 1rem;
  margin-top: clamp(3rem, 5vw, 4rem);
}
.service-head:first-child { margin-top: 0; }
.service-head .service-anchor { margin: 0; }
.service-head__icon { width: 40px; height: auto; flex: none; }

/* .phases wiederverwendet innerhalb von .prose (Leistungen-Detail): die
   generischen Prose-Regeln fuer ol/li/p wuerden sonst Zaehler, Abstaende und
   Farbe der Kartenoptik ueberschreiben (hoehere Spezifitaet durch .prose). */
.prose .phases { gap: 1px; }
.prose .phases li { padding: 1.9rem 1.6rem 2.1rem; }
.prose .phases li::before { content: none; }
.prose .phase__no { color: var(--green-text); margin-top: 0; }
.prose .phase h3 { color: var(--ink); margin-top: 0; }
.prose .phase p:last-child { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .cookie, .hero__actions, .form { display: none; }
  body { background: #fff; }
}
