/* =========================================================
   DIEHL FORST – Shared Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Gantari:wght@400;800&family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@500;600;700;800&display=swap');

/* ----- Tokens ----- */
:root {
  --c-green-dark:   #3a503e;
  --c-green-lime:   #adf72e;
  --c-green-lime-h: #99e020;
  --c-green-footer: #3a5c3c;
  --c-bg:           #ffffff;
  --c-bg-subtle:    #f5f7f4;
  --c-text:         #232323;
  --c-text-muted:   #686868;
  --c-border:       #dde3da;

  --font:         'Barlow', 'Helvetica Neue', sans-serif;
  --font-cond:    'Barlow Condensed', 'Helvetica Neue', sans-serif;
  --font-heading: 'Gantari', 'Helvetica Neue', sans-serif;

  --radius-card: 14px;
  --radius-btn:  4px;
  --nav-h:       52px;
  --max-w:       1920px;
  --side-pad:    clamp(16px, 2vw, 40px);
}

/* ----- Headings: Gantari ExtraBold ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
}

/* ----- Subpage body text: Gantari Regular ----- */
.content-text p,
.content-text li {
  font-family: var(--font-heading);
  font-weight: 400;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--c-green-dark);
  padding: 7px 0;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-item {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar-item svg { flex-shrink: 0; }
.topbar-right {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  gap: 6px;
  align-items: center;
}
.topbar-right a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.topbar-right a:hover { color: #fff; }
.topbar-sep { color: rgba(255,255,255,0.35); }

/* =========================================================
   SITE HEADER (Logo area)
   ========================================================= */
.site-header {
  background: var(--c-green-dark);
  padding: 18px var(--side-pad);
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-wordmark {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 5px;
  color: var(--c-green-dark);
  text-transform: uppercase;
}

/* =========================================================
   DROPDOWN SUBMENU – Leistungen
   ========================================================= */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown > .nav-link .nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: 1px;
}
.nav-dropdown:hover > .nav-link .nav-arrow,
.nav-dropdown.open > .nav-link .nav-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #adf72e;
  border-radius: 0 0 12px 12px;
  min-width: 280px;
  padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 300;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown.open .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  color: #010101;
  text-decoration: none;
  transition: background 0.15s ease, padding-left 0.15s ease;
  white-space: nowrap;
  border-left: 3px solid transparent;
}
.nav-submenu a:hover {
  background: rgba(0,0,0,0.08);
  padding-left: 28px;
  border-left-color: #010101;
  font-weight: 700;
}
.nav-submenu a .sub-arrow {
  margin-left: auto;
  opacity: 0.4;
  font-size: 12px;
  transition: opacity 0.15s, transform 0.15s;
}
.nav-submenu a:hover .sub-arrow {
  opacity: 1;
  transform: translateX(3px);
}
.nav-submenu-divider {
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 4px 16px;
}

/* Mobile submenu accordion */
.nav-mobile .nav-submenu-mobile {
  display: none;
  flex-direction: column;
  background: rgba(173,247,46,0.12);
  border-left: 3px solid #adf72e;
  margin: 0 16px 4px;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.nav-mobile .nav-submenu-mobile.open {
  display: flex;
}
.nav-mobile .nav-submenu-mobile a {
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile .nav-submenu-mobile a:last-child {
  border-bottom: none;
}
.nav-mobile .nav-submenu-mobile a:hover {
  background: rgba(173,247,46,0.15);
  color: #adf72e;
}
.nav-mobile .nav-toggle-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.nav-mobile .nav-toggle-sub .nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nav-mobile .nav-toggle-sub.open .nav-arrow {
  transform: rotate(180deg);
}

/* =========================================================
   MAIN NAV
   ========================================================= */
.main-nav {
  background: var(--c-green-dark);
  background-color: #3a503e;
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.3s;
}
.main-nav.scrolled {
  box-shadow: none;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.nav-deco {
  flex: 1;
  align-self: center;
  height: 1px;
  border-top: 1px dashed rgba(255,255,255,0.22);
  min-width: 0;
}
.nav-link {
  padding: 0 18px;
  display: flex;
  align-items: center;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-link.active {
  color: var(--c-green-lime);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 10px;
  background: var(--c-green-lime);
  border-radius: 0;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 400;
  transition: z-index 0s;
  background: var(--c-green-dark);
  border-radius: 6px;
}
.nav-hamburger.is-open {
  z-index: 330;
}
.nav-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile overlay menu ── */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  height: 100vh;
  background: var(--c-green-dark);
  z-index: 350;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  visibility: hidden;
}
.nav-mobile.open {
  transform: translateX(0);
  box-shadow: -8px 0 40px rgba(0,0,0,0.35);
  visibility: visible;
}

/* Mobile overlay backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 340;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* Mobile menu header */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 8px;
}
.nav-mobile-logo {
  height: 48px;
  width: auto;
  display: block;
}
.nav-mobile-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 24px;
  line-height: 1;
  transition: color 0.2s;
}
.nav-mobile-close:hover { color: #fff; }

/* Mobile nav items */
.nav-mobile .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  text-decoration: none;
}
.nav-mobile .nav-link:hover,
.nav-mobile .nav-link:focus {
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding-left: 30px;
}
.nav-mobile .nav-link.active {
  color: var(--c-green-lime);
}
.nav-mobile .nav-link.active::after { display: none; }

/* Mobile submenu toggle button */
.nav-mobile .nav-toggle-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--c-green-lime);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-mobile .nav-toggle-sub:hover {
  background: rgba(255,255,255,0.06);
}
.nav-mobile .nav-toggle-sub .nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.nav-mobile .nav-toggle-sub.open .nav-arrow {
  transform: rotate(180deg);
}

/* Mobile submenu panel */
.nav-mobile .nav-submenu-mobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(173,247,46,0.07);
  border-left: 3px solid var(--c-green-lime);
  margin: 0 0 0 24px;
}
.nav-mobile .nav-submenu-mobile.open {
  max-height: 600px;
}
.nav-mobile .nav-submenu-mobile a {
  display: block;
  padding: 13px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.nav-mobile .nav-submenu-mobile a:last-child { border-bottom: none; }
.nav-mobile .nav-submenu-mobile a:hover {
  background: rgba(173,247,46,0.1);
  color: var(--c-green-lime);
  padding-left: 28px;
}
.nav-mobile .nav-submenu-divider-mob {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 2px 12px;
}

/* =========================================================
   PAGE WRAPPER
   ========================================================= */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* =========================================================
   BUTTON – MEHR ERFAHREN
   ========================================================= */
.btn-mehr {
  display: inline-block;
  background: var(--c-green-lime);
  color: #010101;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 18px 6px;
  border-radius: var(--radius-btn);
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(173,247,46,0.22);
}
.btn-mehr:hover {
  background: var(--c-green-lime-h);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(173,247,46,0.35);
}

/* =========================================================
   IMAGE PLACEHOLDER (service cards)
   ========================================================= */
.img-slot {
  width: 100%;
  background: linear-gradient(155deg, #253c26 0%, #365638 55%, #2c4a2e 100%);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 75%, rgba(80,130,60,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 20%, rgba(50,90,40,0.2) 0%, transparent 50%);
}
.img-slot-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
}
.img-slot-inner svg { opacity: 0.5; }
.img-slot-inner span { font-size: 11px; font-style: italic; }

/* =========================================================
   ▌ HOMEPAGE – SERVICE INTRO
   ========================================================= */
.services-intro {
  padding: 56px var(--side-pad) 44px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.services-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--c-green-dark);
  line-height: 1.35;
  text-wrap: pretty;
}

/* =========================================================
   ▌ HOMEPAGE – LARGE SERVICE CARDS
   ========================================================= */
.services-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad) 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.svc-card {
  border: none;
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-bg);
  transition: box-shadow 0.25s, transform 0.25s;
}
.svc-card:hover {
}
.svc-card .img-slot {
  aspect-ratio: 3/2;
  margin-bottom: 18px;
}
.svc-card h3 {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 5px;
  color: var(--c-text);
  line-height: 1.3;
}
.svc-subtitle {
  text-align: center;
  color: var(--c-text-muted);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* =========================================================
   ▌ HOMEPAGE – SECONDARY SERVICE CARDS (4 cols)
   ========================================================= */
.services-secondary {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad) 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-card-sm {
  border: none;
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-bg);
  transition: box-shadow 0.25s, transform 0.25s;
}
.svc-card-sm:hover {
}
.svc-card-sm .img-slot {
  aspect-ratio: 1/1;
  margin-bottom: 14px;
  border-radius: 10px;
}
.svc-card-sm h3 {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 12px;
  color: var(--c-text);
}

/* =========================================================
   ▌ HOMEPAGE – NATURE BANNER (Bild mit Text-Overlays)
   ========================================================= */
.banner-nature {
  max-width: var(--max-w);
  width: calc(100% - var(--side-pad) * 2);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: none;
  padding: 0;
}
.banner-bg-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
}
.banner-trees { display: none; }
.banner-content { display: none; }
.banner-text-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: clamp(20px, 5vw, 56px) var(--side-pad);
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
}
.banner-text-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(20px, 5vw, 56px) var(--side-pad);
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}
.banner-line1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(16px, 3.5vw, 52px);
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin: 0;
  text-wrap: balance;
}
.banner-line2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(16px, 3.5vw, 52px);
  color: var(--c-green-lime);
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin: 0;
  text-wrap: balance;
}
.banner-line2 em {
  font-style: normal;
  color: #c8ff60;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--c-green-footer);
  margin-top: 100px;
  padding: 44px var(--side-pad) 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-wordmark {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 4px;
  color: #fff;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 0;
  align-items: center;
  font-size: 13px;
}
.footer-links a {
  color: var(--c-green-lime);
  transition: color 0.2s;
}
.footer-links a:hover { color: #b2e060; }
.footer-links .sep { color: rgba(255,255,255,0.3); margin: 0 8px; }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* =========================================================
   ▌ INNER PAGES – Page Header
   ========================================================= */
.page-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px var(--side-pad) 36px;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--c-green-dark);
  line-height: 1.2;
  margin-bottom: 6px;
}
.page-header .page-subtitle {
  font-size: 15px;
  color: var(--c-text-muted);
}

/* =========================================================
   ▌ INNER PAGES – Content Section (image + text)
   ========================================================= */
.content-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad) 60px;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: start;
}
.content-image .img-slot {
  aspect-ratio: 3/2;
  border-radius: 12px;
}
.content-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 18px;
}
.content-text p:last-child { margin-bottom: 0; }
.content-text strong { font-weight: 700; }
.content-text .highlight-label {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   ▌ INNER PAGES – Machine Gallery (3 cols)
   ========================================================= */
.machine-gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 60px;
  padding: 0 var(--side-pad) 0;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.gallery-col .img-slot {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 12px;
  aspect-ratio: unset;
}
.gallery-col-center {
  position: relative;
}
.gallery-col-center .img-slot {
  min-height: 320px;
}
.machine-name-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 42px);
  letter-spacing: 1px;
  color: var(--c-green-lime);
  text-align: center;
  z-index: 10;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.2;
}

/* =========================================================
   GLOBAL RESPONSIVE CENTERING
   When two-column layouts stack to single-column,
   all content centers automatically.
   ========================================================= */
@media (max-width: 1100px) {
  .mm-erfahrung,
  .mm-noe {
    align-items: center;
  }
  .mm-erfahrung-img,
  .mm-noe-img {
    display: flex;
    justify-content: center;
  }
  .mm-erfahrung-text,
  .mm-noe-text,
  .mm-erfahrung-text h2,
  .mm-noe-text h2,
  .mm-erfahrung-text p,
  .mm-noe-text p {
    text-align: center;
  }
}

@media (max-width: 860px) {
  .content-section,
  .content-section .content-text p {
    text-align: center;
  }
  .mm-split {
    align-items: center;
  }
  .mm-split-text,
  .mm-split-text h2,
  .mm-split-text p {
    text-align: center;
  }
  .mm-feat {
    text-align: center;
    align-items: center;
  }
  .mm-machine-side {
    align-items: center;
  }
}

/* =========================================================
   image-slot responsive fill */
image-slot {
  width: 100% !important;
  height: 100% !important;
  min-height: inherit;
  touch-action: pan-y !important;
  -ms-touch-action: pan-y !important;
}
/* Prevent image-slot shadow DOM from blocking vertical scroll */
image-slot * {
  touch-action: pan-y;
}

/* Services secondary responsive */
.services-secondary .svc-card-sm {
  min-width: 0;
  width: 100%;
} (scroll-in)
   ========================================================= */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 860px) {
  .services-main { grid-template-columns: 1fr; gap: 24px; }
  .services-secondary { grid-template-columns: repeat(2, 1fr); }
  .content-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .machine-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .gallery-col-center {
    grid-column: 1 / -1;
    order: -1;
  }
  .gallery-col-center .img-slot { min-height: 260px; }
  .gallery-col .img-slot { min-height: 200px; }
  .machine-name-overlay { font-size: 28px; }
}

/* Mobile */
@media (max-width: 560px) {
  :root { --side-pad: 16px; }

  .topbar-left { flex-direction: column; gap: 2px; align-items: flex-start; }
  .topbar-inner { flex-direction: column; gap: 6px; align-items: flex-start; }

  .nav-deco { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { justify-content: flex-end; }
  .nav-link { display: none; }
  .nav-dropdown { display: none; }
  .nav-inner .nav-link.active { display: none; }

  .services-secondary { grid-template-columns: 1fr; gap: 80px; }
  .banner-line1 { font-size: 19px; }
  .banner-line2 { font-size: 22px; }

  .machine-gallery { grid-template-columns: 1fr; }
  .gallery-col-center { grid-column: auto; }
}

@media (max-width: 480px) {
  .services-secondary { grid-template-columns: 1fr !important; }
}

/* Banner responsive image swap */
.banner-desktop-only { display: block; width: 100%; height: auto; object-fit: cover; }
.banner-mobile-only { display: none !important; }
@media (max-width: 860px) {
  .banner-desktop-only { display: none !important; }
  .banner-mobile-only {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
  }
  .banner-nature {
    min-height: 320px !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .banner-text-top,
  .banner-text-bottom {
    background: none !important;
  }
}

@media (max-width: 560px) {
  .services-intro-h2 { font-size: 36px !important; }
}

/* Mobile logo & header */
@media (max-width: 560px) {
  .site-header {
    padding: 10px var(--side-pad) !important;
  }
  .site-header img,
  .site-header svg[id="diehl-logo-header"] {
    height: 126px !important;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .banner-nature { width: calc(100% - var(--side-pad) * 2); }
}
