html:has(body.waldgruen) { scroll-padding-top: 0; }

body.waldgruen {
  --ink: #17392e;
  --muted: #4c6055;
  --line: #c7cfc0;
  --dark: #17392e;
  --paper: #f0ede5;
  --stone: #f4f2ec;
}

.waldgruen .site-header {
  display: grid;
  grid-template-areas: "navigation logo";
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: clip;
  gap: 12px clamp(16px, 2vw, 35px);
  min-height: 0;
  background: var(--dark);
  padding-block: 16px;
}
.waldgruen .site-header .brand {
  grid-area: logo;
  justify-self: end;
  width: clamp(208px, 32.5vw, 468px);
  max-width: 100%;
}
.waldgruen .site-header .brand img {
  width: 100%;
  height: auto;
  margin-block: clamp(-20px, -1.36vw, -8px);
  filter: none;
  mix-blend-mode: lighten;
  transform: translateX(11%);
}
.waldgruen .site-header > nav {
  grid-area: navigation;
  align-self: start;
  margin-left: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px clamp(14px, 2vw, 28px);
  font-size: clamp(16px, 1.3vw, 18px);
}
.waldgruen .site-header .nav-contact {
  border: 1px solid #80968b;
  padding: 6px 15px;
}
.waldgruen .site-header .nav-contact:hover { border-color: #fff; }
.waldgruen :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.waldgruen .hero {
  height: clamp(620px, calc(100svh - 176px), 890px);
  background: var(--dark);
}
.waldgruen .hero-media { left: 22%; }
.waldgruen .hero-media img { object-position: 61% 58%; }
.waldgruen .hero-media::after {
  background: linear-gradient(90deg, var(--dark) 2%, rgba(23,57,46,.94) 12%, rgba(23,57,46,.45) 36%, transparent 62%);
}
.waldgruen .hero-copy {
  width: 58%;
  justify-content: flex-start;
  padding-block: 0 32px;
}
.waldgruen .hero h1 {
  font-size: clamp(68px, 7.5vw, 109px);
  letter-spacing: -.042em;
  line-height: 1.04;
}
.waldgruen .hero .term { display: block; white-space: nowrap; }
.waldgruen .hero .identity, .waldgruen .hero-intro { max-width: 380px; }
.waldgruen .hero .identity { font-size: 15px; }
.waldgruen .hero .button { margin-top: 32px; }

.waldgruen .services-section > .section-intro { margin-left: 0; }
.waldgruen .waldgruen-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .53fr);
  align-items: start;
  column-gap: clamp(28px, 5vw, 70px);
}
.waldgruen .waldgruen-service > h3 {
  grid-column: 1 / -1;
  font-size: clamp(29px, 2.45vw, 35px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.waldgruen .waldgruen-service + .waldgruen-service {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 80px);
  margin-top: clamp(40px, 6vw, 80px);
}
.waldgruen .service:first-child { border-top: 0; }
.waldgruen .service h4 {
  margin: 0;
  padding: 18px 0 7px;
  font: 500 17px/1.5 var(--sans);
  letter-spacing: normal;
}
.waldgruen .service-copy { padding-left: 0; }
.waldgruen .service-images { display: grid; gap: 14px; }
.waldgruen .service-images img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.12;
  object-fit: cover;
  object-position: center 62%;
}
.waldgruen .service-images img[src$="gewerbe-parken.jpg"] { object-position: center 80%; }

.waldgruen .reasons-section .section-heading h2 { max-width: none; }
.waldgruen .reasons-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px clamp(35px, 5vw, 62px);
  margin-left: 0;
}
.waldgruen .value-column { display: grid; gap: 22px; }
.waldgruen .value-column p + p { margin-top: 0; }
.waldgruen .statement { margin-inline: auto; text-align: center; }
.waldgruen .value-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(30px, 5vw, 68px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  margin: 30px 0 0;
}
.waldgruen .value-images img {
  width: 100%;
  height: auto;
}
.waldgruen .person-intro .portrait { width: 80%; }
.waldgruen .person-intro > div {
  width: fit-content;
  max-width: 100%;
}
/* Let the heading set the shared width of the bio and emblem. */
.waldgruen .person-bio { contain: inline-size; }
.waldgruen .person-bio p {
  max-width: none;
  text-wrap: pretty;
}
.waldgruen .person-bio img {
  display: block;
  width: clamp(90px, 12vw, 156px);
  height: auto;
  margin: 22px auto 0;
}
.waldgruen .qualification-grid { margin-left: 0; }
.waldgruen .career-columns { align-items: start; }
.waldgruen .career-columns h3 { max-width: 610px; }
.waldgruen .career-period {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font: 500 14px/1.5 var(--sans);
  letter-spacing: normal;
}
.waldgruen .career-training { margin-bottom: 14px; }
.waldgruen .qualification-grid h3 { font-size: 23px; }
.waldgruen .qualification-grid p { font-size: 16px; line-height: 1.75; }
.waldgruen .qualification-photo { display: block; width: min(100%, 440px); height: auto; margin: 30px auto 0; }
.waldgruen .contact-section {
  background: var(--dark);
  grid-template-columns: minmax(0, 28fr) minmax(0, 37fr) minmax(0, 35fr);
  gap: 20px clamp(24px, 3.2vw, 46px);
  align-items: center;
}
.waldgruen .contact-section h2 { font-size: clamp(54px, 6.1vw, 86px); margin-top: 0; }
.waldgruen #kontakt:target { min-height: 100svh; align-content: start; }
.waldgruen .contact-logo {
  width: min(100%, 425px);
  justify-self: end;
}
.waldgruen .contact-logo img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
}
.waldgruen .contact-section address { font-style: normal; overflow-wrap: anywhere; }
.waldgruen .contact-section address a { text-decoration: underline; text-underline-offset: .18em; }
.waldgruen .site-footer { font-size: 13px; justify-content: space-between; flex-wrap: wrap; }
.waldgruen .site-footer nav { display: flex; flex-wrap: wrap; gap: 5px 22px; }
.waldgruen .site-footer nav a { padding-block: 5px; }
.waldgruen .site-footer nav a:hover, .waldgruen .site-footer nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: .24em;
}

.waldgruen .waldgruen-legal { min-height: 52vh; background: var(--stone); }
.waldgruen-legal h1 {
  font-size: clamp(38px, 5vw, 69px);
  line-height: 1.08;
  letter-spacing: -.042em;
  overflow-wrap: anywhere;
}
.waldgruen-legal .legal-copy {
  max-width: 800px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.waldgruen-legal .legal-copy h3 { margin: 28px 0 10px; }
.waldgruen-legal .legal-copy h4 { font-size: 16px; }
.waldgruen-legal .legal-copy > :first-child { margin-top: 0; }
.waldgruen-legal .legal-copy p + p { margin-top: 12px; }
.waldgruen-legal .legal-copy .button { margin: 0; max-width: 100%; }

@media (min-width: 851px) {
  .waldgruen :is(.person-intro, .career-columns) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Keep the portrait's size with the equal-width columns. */
  .waldgruen .person-intro .portrait { width: 85.6%; }
  .waldgruen .career-columns { row-gap: 0; }
  .waldgruen .career-columns > article {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    align-self: stretch;
  }
  .waldgruen .career-columns h3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: clamp(22px, calc(1.7vw + 4px), 26px);
    overflow-wrap: anywhere;
  }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .waldgruen .site-header > nav { column-gap: 12px; }
}
@media (min-width: 851px) {
  .waldgruen .contact-section > div { align-self: start; }
  .waldgruen .contact-section :is(h2, p[data-source="17"]) {
    text-box: trim-start cap alphabetic;
  }
  .waldgruen .contact-logo {
    position: relative;
    display: grid;
    align-self: stretch;
    container-type: inline-size;
  }
  .waldgruen .contact-logo::before {
    content: "";
    width: 100%;
    aspect-ratio: 3 / 2;
    align-self: start;
  }
  .waldgruen .contact-logo img {
    position: absolute;
    inset: 1px 0 auto auto;
    width: auto;
    max-width: none;
    /* Remove the empty space above the crown while retaining the painted lower edge. */
    height: calc(59.81% + 34.11cqw);
    max-height: calc(80cqw + 22px);
    transform: translateY(-9.18%);
  }
}
@media (max-width: 850px) {
  .waldgruen .site-header {
    grid-template-areas: "navigation" "logo";
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 6px;
  }
  .waldgruen .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0;
  }
  .waldgruen .hero-copy {
    order: 0;
    width: auto;
    height: auto;
    padding: 32px var(--gutter);
  }
  .waldgruen .hero h1 { font-size: clamp(45px, 11.6vw, 68px); }
  .waldgruen .hero-media {
    position: relative;
    order: 1;
    inset: auto;
    height: clamp(250px, 75vw, 380px);
    overflow: hidden;
  }
  .waldgruen .hero-media::after { display: none; }
  .waldgruen .waldgruen-service { grid-template-columns: minmax(0, 1fr); }
  .waldgruen .waldgruen-service > h3 { font-size: 26px; }
  .waldgruen .service h4 { font-size: 15px; }
  .waldgruen :is(.service-group, .qualification-grid h3) { overflow-wrap: anywhere; }
  .waldgruen .service-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
  .waldgruen .service-images img { aspect-ratio: .82; }
  .waldgruen .reasons-copy { grid-template-columns: minmax(0, 1fr); }
  .waldgruen :is(.person-intro, .career-columns) { grid-template-columns: minmax(0, 1fr); }
  .waldgruen .person-intro { gap: 34px; }
  .waldgruen .person-intro .portrait { max-width: 520px; }
  .waldgruen .career-columns { gap: 42px; margin-top: 40px; }
  .waldgruen .career-columns h3 { font-size: 23px; }
  .waldgruen .qualification-grid { display: block; }
  .waldgruen .qualification-grid h3 { font-size: 24px; }
  .waldgruen .qualification-grid p { font-size: 15px; line-height: 1.9; }
  .waldgruen .qualification-note {
    margin-top: 35px;
    padding-left: 23px;
    border-width: 2px;
  }
  .waldgruen .contact-section { grid-template-columns: minmax(0, 1fr); }
  .waldgruen .contact-logo { width: min(100%, 275px); }
}
