:root {
  --green-900: #1f432d;
  --green-800: #29573a;
  --green-700: #346a48;
  --green-100: #eef5ef;
  --earth-700: #6d5b46;
  --earth-200: #e9e1d7;
  --text: #142119;
  --muted: #5f6d63;
  --white: #ffffff;
  --border: rgba(20, 33, 25, 0.1);
  --shadow: 0 20px 40px rgba(15, 31, 21, 0.08);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: #f8fbf8;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
section[id] { scroll-margin-top: 8.5rem; }


.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 248, 243, 0.97);
  border-bottom: 1px solid rgba(20, 33, 25, 0.08);
  box-shadow: 0 10px 30px rgba(15, 31, 21, 0.04);
}
.top-bar {
  background: #101512;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 42px;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.top-bar-inner a,
.top-bar-inner span {
  color: rgba(255, 255, 255, 0.95);
}
.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
  background: rgba(240, 245, 241, 0.94);
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo-only {
  gap: 0;
}
.brand-logo {
  width: 112px;
  max-height: 70px;
  height: auto;
  object-fit: contain;
}
.brand-fallback {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  display: none;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-text { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  font-weight: 600;
  color: var(--text);
  border-radius: 14px;
  transition: background-color 180ms ease, color 180ms ease;
}
.site-nav a:not(.btn) {
  padding: 0.55rem 0.8rem;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  background: rgba(31, 67, 45, 0.06);
}
.site-nav a.btn { color: var(--white); }
.site-nav a.btn:hover,
.site-nav a.btn:focus-visible { color: var(--white); }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.26);
  box-shadow: none;
}
.btn-sm { min-height: 40px; padding: 0.7rem 1rem; }

.hero {
  position: relative;
  min-height: calc(100vh - 124px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #244a32, #13261a);
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media {
  background-image: image-set(url('assets/images/rm-pflanzenlogistik-hero-pflanzentransport-strasse-regenbogen.webp') type('image/webp'), url('assets/images/rm-pflanzenlogistik-hero-pflanzentransport-strasse-regenbogen.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(11, 22, 15, 0.82), rgba(11, 22, 15, 0.38));
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 7rem 0 5rem;
}
.eyebrow {
  margin: 0 0 0.85rem;
  color: #b8d5bf;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.98;
  margin: 0;
  max-width: 10ch;
}
.hero-text {
  max-width: 680px;
  font-size: 1.1rem;
  margin: 1.2rem 0 0;
  color: rgba(255,255,255,0.88);
}
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.hero-facts {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.hero-facts li {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-facts strong { display: block; font-size: 1.4rem; }
.hero-facts span { color: rgba(255,255,255,0.8); font-size: 0.94rem; }

.section { padding: 6rem 0; }
.section-alt { background: var(--green-100); }
.section-accent {
  background: linear-gradient(135deg, rgba(52,106,72,0.08), rgba(109,91,70,0.08));
}
.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}
.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2,
.split h2 { font-size: clamp(1.9rem, 3vw, 3.2rem); line-height: 1.1; margin: 0; }
.section-head p:last-child { color: var(--muted); }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.card-grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.card, .feature-panel, .team-card, .reference-box, .contact-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 1.6rem; }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--green-100);
  display: grid;
  place-items: center;
  color: var(--green-900);
  font-weight: 800;
  margin-bottom: 1rem;
}
.card h3 { margin: 0 0 0.4rem; }
.card p, .split p, .feature-panel li, .reference-box, .contact-list p { color: var(--muted); }
.feature-panel { padding: 1.75rem; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.9rem;
}
.check-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-700);
  font-weight: 800;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.team-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.team-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  margin-bottom: 1rem;
  border: 1px solid rgba(20, 33, 25, 0.08);
  background: #f3f4f1;
}
.team-card h3 { margin: 0; }
.team-role { margin: 0.2rem 0 1rem; color: var(--earth-700); font-weight: 700; }
.team-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.team-meta li { display: grid; gap: 0.15rem; }
.team-meta span { font-size: 0.84rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.team-meta a { color: var(--text); font-weight: 600; white-space: nowrap; }
.reference-box {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.reference-pill {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 700;
}
.contact-layout { align-items: stretch; }
.contact-head {
  max-width: 760px;
}
.contact-panel {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
.contact-panel-single {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.contact-card-inline {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(20, 33, 25, 0.08);
  border-radius: 18px;
  background: #fbfcfb;
}
.contact-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.contact-card-inline a,
.contact-card-inline span:last-child {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.contact-address-lines {
  display: grid;
  gap: 0.2rem;
}
.contact-address-lines span {
  display: block;
}
.contact-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.contact-actions-center {
  justify-content: center;
}
.btn-outline {
  background: var(--white);
  color: var(--green-900);
  border: 1px solid rgba(31, 67, 45, 0.16);
  box-shadow: none;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--green-900);
}
.contact-note {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.contact-note-center {
  text-align: center;
}
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(31, 67, 45, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-900);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(15, 31, 21, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  z-index: 1400;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--white);
}
.site-footer {
  padding: 2rem 0 3rem;
  background: #f0f5f1;
  border-top: 1px solid rgba(20, 33, 25, 0.06);
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-weight: 600; color: var(--muted); }

.legal-page { background: #f7faf7; }
.legal-main { padding: 4rem 0 5rem; }
.legal-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.legal-shell h1 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); }
.legal-shell h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-shell p, .legal-shell li { color: #2f3c33; }
.legal-shell ul { padding-left: 1.2rem; }

@media (max-width: 960px) {
  .split,
  .card-grid.three,
  .team-grid,
  .hero-facts {
    grid-template-columns: 1fr;
  }
  .site-nav {
    position: fixed;
    top: 7.25rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 30px;
    background: rgba(248, 251, 248, 0.995);
    border: 1px solid rgba(20, 33, 25, 0.1);
    box-shadow: 0 28px 60px rgba(15, 31, 21, 0.18);
    overflow-y: auto;
    z-index: 1200;
  }
  .site-nav.open { display: flex; }
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 1300;
  }
  .site-nav a {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .site-nav a:not(.btn) {
    padding: 1rem 1.1rem;
    border-radius: 18px;
  }
  .site-nav .btn {
    margin-top: 0.5rem;
    min-height: 68px;
    font-size: 1.2rem;
  }
  .brand-text small { display: block; font-size: 0.82rem; }
  .brand-logo { width: 92px; max-height: 58px; }
  .team-meta a {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  section[id] { scroll-margin-top: 6rem; }
  .section { padding: 4.5rem 0; }
  .hero-content { padding: 6rem 0 4rem; }
  .legal-shell { padding: 1.25rem; }
  .nav-wrap {
    min-height: 74px;
  }
  .site-nav {
    top: 5.7rem;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 1.6rem;
    gap: 0.9rem;
  }
  .site-nav a {
    font-size: 1.15rem;
  }
  .site-nav .btn {
    min-height: 64px;
    font-size: 1.1rem;
  }
  .team-card {
    padding: 1.4rem;
  }
  .team-meta a {
    font-size: 0.92rem;
  }
}


@media (max-width: 860px) {
  .top-bar {
    display: none;
  }
  .hero {
    min-height: calc(100vh - 74px);
  }
  .site-nav {
    top: 5.9rem;
  }
}

body.menu-open {
  overflow: hidden;
}



@media (max-width: 860px) {
  .top-bar-inner {
    gap: 0.7rem 1rem;
    font-size: 0.92rem;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0;
  }
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-panel-single {
    padding: 1.25rem;
  }
  .contact-actions {
    flex-direction: column;
  }
  .contact-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    height: 50px;
  }
}
