:root {
  --ink: #172016;
  --muted: #526156;
  --soft: #eef3ea;
  --paper: #f8faf6;
  --white: #ffffff;
  --green: #51732f;
  --green-dark: #263f1c;
  --leaf: #b8d46b;
  --teal: #2f6f66;
  --amber: #d5a33a;
  --line: #dce4d6;
  --shadow: 0 22px 60px rgba(22, 35, 18, 0.14);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.58;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 40;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 246, 0.92);
  border-bottom: 1px solid rgba(220, 228, 214, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 206px;
  height: 100px;
  object-fit: contain;
  max-height: 64px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #2f3a2e;
  font-weight: 750;
  font-size: 0.96rem;
}

.menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
}

.menu a:hover,
.menu a:focus-visible,
.menu a.is-active {
  color: var(--green-dark);
  background: #e7f1dc;
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.btn {
  padding: 0 17px;
  color: var(--white);
  background: var(--green-dark);
  box-shadow: 0 12px 26px rgba(38, 63, 28, 0.18);
}

.btn:hover,
.btn:focus-visible {
  background: var(--teal);
  outline: none;
}

.btn.secondary {
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  color: var(--white);
  background: var(--green-dark);
}

.icon-btn {
  width: 46px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  display: none;
}

.icon-btn span {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.icon-btn span::before,
.icon-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.icon-btn span::before {
  top: -7px;
}

.icon-btn span::after {
  top: 7px;
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: end;
  position: relative;
  color: var(--white);
  background: #1d2b19 url("img/baum-pflegen.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 27, 13, 0.82), rgba(15, 27, 13, 0.42) 52%, rgba(15, 27, 13, 0.18));
}

.hero .shell {
  position: relative;
  padding: 96px 0 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: 3.6rem;
  letter-spacing: 0;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 700px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 780px);
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-strip span {
  min-height: 78px;
  display: grid;
  align-content: center;
  padding: 16px;
  background: rgba(12, 24, 11, 0.48);
  font-weight: 800;
}

.section {
  padding: 86px 0;
}

.section.tight {
  padding: 58px 0;
}

.section.green {
  color: var(--white);
  background: var(--green-dark);
}

.section.green .muted,
.section.green .section-head p {
  color: rgba(255, 255, 255, 0.76);
}

.section.alt {
  background: var(--soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 0.9fr);
}

.copy {
  display: grid;
  gap: 18px;
}

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

.feature-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(20, 34, 17, 0.78);
  border-radius: var(--radius);
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 218px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(42, 55, 38, 0.08);
}

.card .mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: #e7f1dc;
  border-radius: var(--radius);
  font-weight: 900;
}

.card p,
.muted {
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.service-list li {
  display: flex;
  gap: 10px;
  min-height: 36px;
  align-items: center;
  color: #2e3d2f;
  font-weight: 730;
}

.service-list li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery a {
  min-height: 176px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dce4d6;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.035);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(12, 20, 11, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__stage {
  position: relative;
  width: min(100%, 1120px);
  max-height: calc(100vh - 56px);
  display: grid;
  gap: 12px;
}

.lightbox__image {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: var(--radius);
  background: #0d160c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.lightbox__caption {
  min-height: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-align: center;
}

.lightbox__button {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(19, 33, 17, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.lightbox__button:hover,
.lightbox__button:focus-visible {
  background: var(--teal);
  outline: none;
}

.lightbox__button--close {
  top: 0;
  right: 0;
}

.lightbox__button--prev,
.lightbox__button--next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
}

.lightbox__button--prev {
  left: 12px;
}

.lightbox__button--next {
  right: 12px;
}

.lightbox__button--close span {
  position: relative;
  width: 18px;
  height: 18px;
}

.lightbox__button--close span::before,
.lightbox__button--close span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
  background: currentColor;
}

.lightbox__button--close span::before {
  transform: rotate(45deg);
}

.lightbox__button--close span::after {
  transform: rotate(-45deg);
}

body.lightbox-open {
  overflow: hidden;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(290px, 0.54fr);
  gap: 28px;
  align-items: center;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.contact-row i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--radius);
  font-style: normal;
  font-size: 0.85rem;
}

.page-hero {
  color: var(--white);
  background: #1f301a;
}

.page-hero .shell {
  min-height: 330px;
  display: grid;
  align-content: end;
  padding: 72px 0 54px;
}

.page-hero.about {
  background: linear-gradient(90deg, rgba(14, 28, 13, 0.78), rgba(14, 28, 13, 0.32)), url("img/oliver-krampe.jpg") center / cover no-repeat;
}

.page-hero.service {
  background: linear-gradient(90deg, rgba(14, 28, 13, 0.78), rgba(14, 28, 13, 0.32)), url("img/galabau.jpg") center / cover no-repeat;
}

.page-hero.contact {
  background: linear-gradient(90deg, rgba(14, 28, 13, 0.78), rgba(14, 28, 13, 0.32)), url("img/r6.jpg") center / cover no-repeat;
}

.page-hero.legal {
  color: var(--ink);
  background: var(--soft);
}

.page-hero p {
  max-width: 680px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
}

.page-hero.legal p {
  color: var(--muted);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(310px, 0.55fr);
  gap: 34px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(42, 55, 38, 0.08);
}

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

.field {
  display: grid;
  gap: 7px;
}

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

.field label {
  font-weight: 800;
  color: #263126;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfdac8;
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdf9;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(47, 111, 102, 0.16);
}

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.94rem;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.check a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
}

.hidden-fields {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  color: var(--green-dark);
  font-weight: 800;
}

.form-status.is-error {
  color: #9a2d22;
}

.legal-content {
  display: grid;
  gap: 28px;
  max-width: 860px;
}

.legal-content section {
  display: grid;
  gap: 12px;
}

.legal-content a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
}

.footer {
  color: rgba(255, 255, 255, 0.82);
  background: #132111;
}

.footer .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}

.footer strong {
  display: block;
  color: var(--white);
}

.footer nav {
  display: flex;
  gap: 14px;
  font-weight: 800;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--leaf);
  outline: none;
}

@media (max-width: 980px) {
  .nav {
    min-height: 70px;
  }

  .brand img {
    width: 180px;
  }

  .icon-btn {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    width: 100%;
  }

  .nav-actions .btn {
    display: none;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .section-head,
  .split,
  .split.reverse,
  .contact-band,
  .form-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    min-height: 610px;
  }

  .hero .shell {
    padding: 76px 0 44px;
  }

  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .lead {
    font-size: 1.02rem;
  }

  .hero-strip,
  .form-grid,
  .service-list,
  .footer .shell {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

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

  .lightbox {
    padding: 14px;
  }

  .lightbox__stage {
    max-height: calc(100vh - 28px);
  }

  .lightbox__image {
    max-height: calc(100vh - 116px);
  }

  .lightbox__button--prev {
    left: 4px;
  }

  .lightbox__button--next {
    right: 4px;
  }

  .form {
    padding: 20px;
  }

  .footer nav {
    flex-wrap: wrap;
  }
}
