/* MINIMOG – helle Übersichtsseite
   Hell, weil es um Übersicht geht: echte Tageslichtfotos von Heiko, klare Abschnitte,
   keine gepinnten Scroll-Bühnen. Anton bleibt die Display-Schrift (Zeilenabstand ≥ 1.14
   wegen der Umlautpunkte), Überschriften höchstens zwei Zeilen, je Zeile ein <span>. */

:root {
  --bg: #f4f3ee;
  --surface: #ffffff;
  --surface-2: #ecebe4;
  --ink: #16191a;
  --muted: #555b57;
  --line: #d9d7ce;
  --brand: #3a4830;        /* Minimog-Grün der VMENG-Maschinen */
  --brand-strong: #2b3624;
  --brand-soft: #e3ede6;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(22, 25, 26, .06), 0 8px 24px rgba(22, 25, 26, .06);
  --radius: 3px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --display: 'Anton', 'Impact', sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--text);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-block; margin: 0 0 14px; color: var(--brand);
  font: 700 13px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-weight: 400; }
.display {
  font-family: var(--display); text-transform: uppercase; line-height: 1.14;
  letter-spacing: .005em;
}
.display span { display: block; white-space: nowrap; }
h1.display { font-size: clamp(40px, 4.9vw, 74px); }
h2.display { font-size: clamp(34px, 4.4vw, 58px); margin-bottom: 18px; }
h3 { font: 700 20px/1.3 var(--text); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 62ch; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 3px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn::after { content: '\2197 '; font-weight: 400; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); box-shadow: 0 8px 20px rgba(58, 72, 48, .28); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo b { font: 400 30px/1 var(--display); letter-spacing: .04em; color: var(--brand); }
.logo small { font: 600 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a, .btn, .logo small { white-space: nowrap; }
.nav a { font: 600 15px/1 var(--text); text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--brand); }
.head-cta { display: flex; align-items: center; gap: 16px; }
.head-tel { font: 700 15px/1 var(--text); text-decoration: none; white-space: nowrap; }
.nav-cta, .nav-tel, .swipe-hint { display: none !important; }
.swipe-hint { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .lead { margin: 22px 0 30px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 32px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.facts li { display: flex; flex-direction: column; }
.facts b { font: 400 28px/1.14 var(--display); color: var(--brand); }
.facts span { font-size: 14px; color: var(--muted); }
.hero-pic { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-pic figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 6px;
  background: rgba(255, 255, 255, .92); font: 600 13px/1.3 var(--text);
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--surface); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin: 0; }
.section-head.single { grid-template-columns: 1fr; }

/* Karten allgemein */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.alt .card { background: var(--bg); }
.card .pic { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .pic img { transform: scale(1.03); }
.card .pic.contain img { object-fit: contain; }
.card .body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.card .body p { color: var(--muted); font-size: 15.5px; }
.card .body .btn, .card .body .more { align-self: flex-start; }
.card .body .more { margin-top: auto; }
.machine .specs { margin-top: auto; }
.tag { display: inline-block; margin-bottom: 8px; font: 700 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }

/* Einsatzwelten */
.einsatz .card .body h3 { font: 400 30px/1.14 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips li { padding: 5px 10px; border-radius: 3px; background: var(--brand-soft); color: var(--brand-strong); font: 600 13px/1.2 var(--text); }
.more { font: 700 15px/1 var(--text); color: var(--brand); text-decoration: none; }
.more::after { content: ' \2192 '; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Maschinenkarten mit Kennzahlen */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 4px 0 18px; }
.specs div { border-top: 1px solid var(--line); padding-top: 8px; }
.specs dt { font: 600 11.5px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 3px 0 0; font: 700 15px/1.3 var(--text); }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.price b { font: 400 26px/1.14 var(--display); color: var(--ink); }
.price small { color: var(--muted); font-size: 13px; }
.machine h3 { margin-bottom: 6px; }
.machine .brand { font: 700 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vmeng .card { border-color: #dadccf; }
.vmeng .card .pic { aspect-ratio: 4 / 3; }

.family { margin-top: clamp(48px, 6vw, 72px); }
.family-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.family-head h3 { font: 400 clamp(26px, 2.8vw, 36px)/1.14 var(--display); text-transform: uppercase; }
.family-head p { margin: 0; max-width: 58ch; color: var(--muted); font-size: 15.5px; }
.compact .body { padding: 16px 16px 18px; }
.compact h3 { font-size: 18px; }
.compact .specs { grid-template-columns: 1fr 1fr; }
.compact .price b { font-size: 22px; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
caption { text-align: left; padding: 16px 18px; font: 700 16px/1.3 var(--text); border-bottom: 1px solid var(--line); }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font: 600 12px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--brand-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { font-weight: 700; color: var(--brand); text-decoration: none; }
tr.vm td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.table-note { margin: 12px 2px 0; font-size: 14px; color: var(--muted); }
.tables { display: grid; gap: 28px; }

/* Anbaugeräte */
.anbau .card .body h3 { margin-bottom: 6px; }
.anbau .list { font-size: 14.5px; color: var(--ink); margin-bottom: 8px; }

/* Vorführung */
.demo { position: relative; color: #fff; background: var(--brand-strong); overflow: hidden; }
.demo-grid { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; }
.demo-text { padding: clamp(48px, 7vw, 88px) clamp(8px, 4vw, 56px) clamp(48px, 7vw, 88px) 0; }
.demo .eyebrow { color: #d9e5b0; }
.demo .lead { color: #e7e9db; }
.demo .btn-primary { background: #fff; color: var(--brand-strong); }
.demo .btn-primary:hover { background: #e9f2ec; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.demo .btn-ghost { border-color: #fff; color: #fff; }
.demo .btn-ghost:hover { background: #fff; color: var(--brand-strong); }
.demo-pic { position: relative; aspect-ratio: 1600 / 728; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.demo-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Service */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-item { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.service-item .num { font: 400 22px/1.14 var(--display); color: var(--brand); }
.service-item h3 { margin: 8px 0 8px; }
.service-item p { margin: 0; color: var(--muted); font-size: 15.5px; }
.parts { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--brand-soft); }
.parts h3 { font: 400 clamp(26px, 2.8vw, 36px)/1.14 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.parts ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.parts li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 15.5px; }
.parts li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 14px/1 var(--text); }

/* Über uns */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.about-pic img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.values li { padding-left: 18px; border-left: 3px solid var(--brand); font-weight: 600; }
.partners { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; padding: 0; list-style: none; }
.partners li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font: 600 13.5px/1 var(--text); color: var(--muted); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); }
.contact-ways { display: grid; gap: 14px; margin-top: 26px; }
.way { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); text-decoration: none; }
.way small { font: 600 12px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.way b { font-size: 19px; }
a.way:hover { border-color: var(--brand); }
form.anfrage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font: 600 14px/1.2 var(--text); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c9c7bd; border-radius: 8px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--text);
}
textarea { min-height: 120px; resize: vertical; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); }
form.anfrage .btn { grid-column: 1 / -1; justify-self: start; align-self: start; min-height: 52px; height: 52px; }

/* Fuß */
.site-footer { background: var(--ink); color: #c9ccca; padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .logo b { color: #fff; }
.site-footer .logo small { color: #9aa09c; }
.site-footer h4 { margin: 0 0 12px; font: 700 13px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2d3231; font-size: 13.5px; color: #8d928f; }
.draft-note { color: #d6b25e; }

/* ---------- Responsiv ---------- */
@media (max-width: 1320px) {
  .head-tel { display: none; }
}
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .menu-btn { display: block; }
  .nav, .head-cta { display: none; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
    padding: 8px var(--gut) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-header.open .nav .nav-cta { display: inline-flex !important; margin-top: 18px; border-bottom: 0; color: #fff; }
  .site-header.open .nav .nav-tel { display: block !important; border-bottom: 0; text-align: center; font-weight: 700; }

  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .section-head, .about-grid, .contact-grid, .parts, .demo-grid { grid-template-columns: 1fr; }
  .hero-pic { order: -1; }
  .g3 { grid-template-columns: 1fr; }
  .anbau { grid-template-columns: 1fr 1fr; }
  .einsatz .card { display: grid; grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .demo-text { padding: 48px 0 32px; }
  .demo-pic { margin: 0 0 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .family-head { flex-direction: column; align-items: start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .g4, .service-grid, form.anfrage, .foot-grid { grid-template-columns: 1fr; }
  .vmeng {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut) 10px 0; scrollbar-width: thin;
  }
  .vmeng .card { scroll-snap-align: start; }
  .vmeng .card:hover { transform: none; }
  .swipe-hint { display: block !important; }
  .anbau { gap: 12px; }
  .anbau .card .body { padding: 12px 12px 14px; }
  .anbau .list { display: none; }
  .anbau .card .body h3 { font-size: 15.5px; margin-bottom: 8px; }
  .service-item { padding: 20px 18px 22px; }
  .compact { grid-template-columns: 1fr 1fr; gap: 12px; }
  .compact .body { padding: 12px 12px 14px; }
  .compact .body p:not(.price) { display: none; }
  .compact h3 { font-size: 15.5px; margin-bottom: 8px; }
  .compact .specs { grid-template-columns: 1fr; gap: 6px; margin-bottom: 10px; }
  .compact .specs dd { font-size: 14px; }
  .compact .price { flex-direction: column; align-items: start; gap: 0; margin-bottom: 10px; }
  .compact .price b { font-size: 20px; }
  .btn-row .btn, form.anfrage .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; gap: 14px 22px; }
  .facts b { font-size: 24px; }
  .logo b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Lenis übernimmt das Gleiten – natives smooth-scroll aus, sonst ruckelt es doppelt */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
