:root {
  --bg: #f7f5f0;
  --paper: #fffdfa;
  --ink: #202326;
  --muted: #646b70;
  --line: #ded8cf;
  --green: #2f6f5e;
  --blue: #244f73;
  --rose: #a85f55;
  --focus: #0b6bcb;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(247, 245, 240, 0.92);
  border-bottom: 1px solid rgba(222, 216, 207, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 0;
  text-decoration: none;
}

.brand span {
  font-size: 18px;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--ink);
}

.hero {
  background: var(--paper);
  position: relative;
}

.hero picture,
.hero img {
  display: block;
  width: 100%;
}

.hero img {
  height: auto;
}

.hero-menu-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.hero-menu-trigger:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -8px;
}

.hero-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  justify-items: end;
  background: rgba(32, 35, 38, 0);
  pointer-events: none;
  transition: background 200ms ease;
}

.hero-menu.is-open {
  background: rgba(32, 35, 38, 0.36);
  pointer-events: auto;
}

.hero-menu-panel {
  display: grid;
  align-content: start;
  gap: 6px;
  width: min(420px, calc(100vw - 28px));
  min-height: 100%;
  padding: 26px;
  background: rgba(255, 253, 250, 0.96);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(32, 35, 38, 0.18);
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.hero-menu.is-open .hero-menu-panel {
  transform: translateX(0);
}

.hero-menu-close {
  justify-self: end;
  width: 44px;
  min-height: 44px;
  margin-bottom: 18px;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.hero-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
}

.hero-menu-panel a:hover {
  color: var(--green);
}

.section {
  padding: clamp(68px, 9vw, 120px) clamp(18px, 4vw, 52px);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.muted {
  background: var(--paper);
}

.intro-grid,
.offer-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 5vw, 60px);
}

h2 + p {
  margin-top: 22px;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.intro-copy,
.text-stack {
  color: var(--muted);
  font-size: 20px;
}

.lead {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.18;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 10px;
  padding: 0 20px;
  background: var(--ink);
  border-radius: 6px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button-link:hover {
  background: #111315;
  transform: translateY(-2px);
}

.intro-copy p:last-child,
.text-stack p:last-child,
.offer-grid p:last-child {
  margin-bottom: 0;
}

.offer-grid p {
  color: var(--muted);
  font-size: 20px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.usp-list,
.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usp-list li,
.why-list li {
  min-height: 58px;
  padding: 15px 16px 15px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
}

.usp-list li::before,
.why-list li::before {
  position: absolute;
  left: 16px;
  top: 17px;
  color: var(--green);
  content: "✓";
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.service-grid article {
  min-height: 230px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-grid article:hover {
  border-color: rgba(47, 111, 94, 0.42);
  box-shadow: 0 18px 50px rgba(32, 35, 38, 0.08);
  transform: translateY(-4px);
}

.service-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.standard {
  background: #eef2ed;
}

.standard h2 {
  margin-bottom: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  min-height: 230px;
  padding: 28px;
  background: var(--paper);
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  padding: 10px 14px;
  background: #eef2ed;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #2d3634;
  font-size: 15px;
}

.trade-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.trade-cloud span {
  padding: 11px 15px;
  background: #eef2ed;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #2d3634;
  font-size: 15px;
  font-weight: 650;
}

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

.reference-card {
  display: grid;
  align-content: space-between;
  min-height: 205px;
  padding: 20px;
  background: linear-gradient(145deg, #202326, #2f3a37);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#referenzen {
  padding-top: clamp(56px, 7vw, 86px);
  padding-bottom: clamp(56px, 7vw, 86px);
}

#referenzen h2 {
  max-width: 820px;
  font-size: clamp(30px, 4.3vw, 52px);
}

.reference-card::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  z-index: -1;
  transition: transform 220ms ease, border-color 220ms ease;
}

.reference-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(185, 211, 107, 0.12) 42%, transparent 70%);
  content: "";
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 180ms ease, transform 500ms ease;
  z-index: -1;
}

.reference-card:hover {
  background: linear-gradient(145deg, #1f2f2b, #27455a);
  box-shadow: 0 18px 44px rgba(32, 35, 38, 0.16);
  transform: translateY(-3px);
}

.reference-card:hover::before {
  opacity: 1;
  transform: translateX(30%);
}

.reference-card:hover::after {
  border-color: rgba(185, 211, 107, 0.42);
  transform: scale(1.08);
}

.reference-card span {
  color: #b9d36b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-card strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 1.12;
}

.reference-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.reveal.is-visible .reference-card {
  animation: card-rise 560ms ease both;
}

.reveal.is-visible .reference-card:nth-child(2) {
  animation-delay: 80ms;
}

.reveal.is-visible .reference-card:nth-child(3) {
  animation-delay: 160ms;
}

.reveal.is-visible .reference-card:nth-child(4) {
  animation-delay: 240ms;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

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

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

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

.contact-section {
  background: var(--bg);
}

.content-page {
  min-height: 70vh;
}

.legal-content {
  max-width: 860px;
}

.legal-content h1 {
  margin-bottom: 44px;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

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

.legal-content a {
  color: var(--green);
  font-weight: 700;
}

address {
  margin-top: 32px;
  color: var(--muted);
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #3b4145;
  font-size: 15px;
  font-weight: 650;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfc8bd;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

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

.website-field {
  position: absolute;
  left: -9999px;
}

button {
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-note,
.form-foot {
  margin: 0;
  font-size: 14px;
}

.form-note {
  padding: 12px 14px;
  border-radius: 6px;
}

.form-note.success {
  background: #e6f2ec;
  color: #245c4c;
}

.form-note.error {
  background: #f7e7e3;
  color: #8a4037;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  padding: 30px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 12;
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  padding: 0;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 16px 42px rgba(32, 35, 38, 0.18);
  color: #fff;
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green);
}

@media (max-width: 920px) {
  .feature-grid,
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
  }

  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

  .intro-grid,
  .offer-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    font-size: 38px;
  }

  .intro-copy,
  .text-stack,
  .offer-grid p {
    font-size: 18px;
  }

  .feature-grid,
  .service-grid,
  .usp-list,
  .why-list {
    grid-template-columns: 1fr;
  }

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

  .reference-card {
    min-height: 180px;
    padding: 16px;
  }

  .reference-card strong {
    font-size: 18px;
  }

  .reference-card p {
    font-size: 13px;
  }

  .feature-grid article {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    display: grid;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  h1,
  h2 {
    font-size: 34px;
  }

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