/* Chr. Willemsen – Frontend 3.0 (Orientierung: DEUTZ)
   Weiß/Schwarz-Kontrast, helles Signalgrün, kantige Buttons in Versalien,
   flache Kacheln, große Uppercase-Headlines, dezente Scroll-Effekte */

@font-face { font-family: 'Archivo'; font-weight: 700; font-display: swap; src: url('/assets/fonts/archivo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 900; font-display: swap; src: url('/assets/fonts/archivo-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url('/assets/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url('/assets/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --ink: #171a17;
  --ink-soft: #4b514b;
  --white: #ffffff;
  --smoke: #f4f5f2;
  --line: #e4e6e1;
  --primary: #61a41f;        /* helles Landtechnik-Grün */
  --primary-dark: #4c8317;
  --dark: #131512;           /* Hover-Schwarz für Buttons */
  --display: 'Archivo', 'Arial Black', sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --container: 1280px;
  --r: 3px;
  --shadow-md: 0 14px 40px rgba(19, 21, 18, .12);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.7;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Scroll-Reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #b7bdb5; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar-right { display: inline-flex; align-items: center; gap: 1.3rem; }
.lang-switch { display: inline-flex; gap: .35rem; }
.lang { padding: .1rem .55rem; letter-spacing: .08em; font-weight: 600; font-size: .76rem; border-bottom: 2px solid transparent; }
.lang.is-active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(19, 21, 18, .10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.brand-text { font-family: var(--display); font-weight: 900; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.2rem, 1vw, .9rem); }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 1.85rem .5rem; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav > ul > li > a:hover { color: var(--primary-dark); }
.main-nav > ul > li.is-active > a { border-bottom-color: var(--primary); color: var(--ink); }
.sub-toggle { display: none; }
.main-nav .sub {
  position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--white);
  box-shadow: var(--shadow-md); border-top: 3px solid var(--primary);
  flex-direction: column; padding: .5rem 0; display: none;
}
.main-nav li.has-sub:hover .sub, .main-nav li.has-sub:focus-within .sub { display: flex; }
.main-nav .sub a { padding: .6rem 1.3rem; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .95rem; border-bottom: 0; }
.main-nav .sub a:hover { background: var(--smoke); color: var(--primary-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; }

/* ---------- Buttons (DEUTZ-Stil: kantig, Versalien, Pfeil, Hover → Schwarz) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.9rem; border-radius: var(--r);
  font-family: var(--body); font-weight: 600; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn::after { content: '→'; font-size: 1.05rem; letter-spacing: 0; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(5px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--dark); color: #fff; }

/* ---------- Hero (Vollbild-Bühne) ---------- */
.hero { position: relative; min-height: clamp(560px, 88svh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero-slider, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-img, .hero-slide .img-missing { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active .hero-img { animation: kenburns 10s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(8deg, rgba(10, 13, 9, .86) 0%, rgba(10, 13, 9, .38) 44%, rgba(10, 13, 9, 0) 72%); }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(3rem, 8vw, 5.5rem); padding-top: 5rem; width: 100%; }
.hero-content .eyebrow-light { color: var(--primary); }
.hero-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .96; letter-spacing: -.01em;
  color: #fff; margin: 0 0 1.1rem; max-width: 15ch; text-wrap: balance;
}
.hero-sub { color: #d9ded7; font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 56ch; margin: 0 0 1.9rem; line-height: 1.6; }
.hero .btn { margin-right: .7rem; }

.hero-stats {
  position: relative; z-index: 3; display: flex; gap: clamp(1.4rem, 5vw, 4.5rem); flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3.2rem); padding-top: 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.stat { color: #fff; }
.stat-value { font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1; display: block; }
.stat-value em { font-style: normal; color: var(--primary); }
.stat-label { font-size: .82rem; color: #a9b1a7; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--primary-dark);
}
.eyebrow::before { content: ''; width: 34px; height: 3px; background: var(--primary); }
.eyebrow-light { color: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.8rem) 0; }
.section-alt { background: var(--smoke); }
.section-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.02; margin: 0 0 1.5rem; color: var(--ink);
  letter-spacing: -.01em; text-wrap: balance; max-width: 26ch;
}
.page-head { background: var(--ink); padding: clamp(2.8rem, 7vw, 4.8rem) 0; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--primary); }
.page-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.8rem); margin: 0; line-height: 1; letter-spacing: -.01em; }

.prose-wrap { max-width: 860px; }
.prose { color: var(--ink-soft); }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.12; margin: 1.7em 0 .5em; color: var(--ink); }
.prose h2 { font-size: 1.55rem; } .prose h3 { font-size: 1.2rem; } .prose h4 { font-size: 1.05rem; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose > :first-child { margin-top: 0; } .prose > :last-child { margin-bottom: 0; }

.cols-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.8rem, 5vw, 4.5rem); align-items: start; }
.panel { background: var(--white); border-top: 4px solid var(--primary); box-shadow: var(--shadow-md); padding: 1.8rem 1.9rem; }
.section-alt .panel { background: var(--white); }
.panel h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; margin: 0 0 .8rem; }

/* ---------- Kacheln (flach, kantig, Grün-Linie beim Hover) ---------- */
.card-grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); margin-top: 1.8rem; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--white); display: flex; flex-direction: column; position: relative;
  border-bottom: 3px solid var(--line);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.section-alt .card { border-bottom-color: transparent; }
.card:hover { border-bottom-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--smoke); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.08rem; margin: 0; line-height: 1.18; }
.card-text { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.card-link {
  margin-top: auto; padding-top: .8rem; font-weight: 600; text-decoration: none; font-size: .84rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card-link span { transition: transform .25s var(--ease); }
.card:hover .card-link span { transform: translateX(6px); }

/* ---------- Bild / CTA (vollflächiges Grün, DEUTZ-artiger Farbblock) ---------- */
.img-wide { width: 100%; }
.section-image figcaption { color: var(--ink-soft); font-size: .88rem; margin-top: .7rem; }
.cta-band { background: var(--primary); color: #fff; padding: clamp(2.8rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, 0) 45%);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; }
.cta-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; margin: 0 0 .4rem; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.005em; }
.cta-text { margin: 0; color: rgba(255, 255, 255, .88); max-width: 54ch; }

/* ---------- Formulare ---------- */
.form-wrap { max-width: 800px; }
.form {
  display: flex; flex-direction: column; gap: 1.1rem; background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--primary);
  padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; text-transform: none; letter-spacing: 0;
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--smoke); transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); background: #fff; outline: none; }
.form .check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.form .check input { margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: .9rem 1.1rem; border-radius: var(--r); font-weight: 600; }
.form-ok { background: #e6f2df; color: #2c5e12; }
.form-err { background: #f6e7d8; color: #8a5a1d; }

/* ---------- Karte ---------- */
.map-consent {
  background: var(--ink); min-height: 340px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .9rem; padding: 2rem; text-align: center;
  border-bottom: 4px solid var(--primary);
}
.map-note { color: #a9b1a7; font-size: .85rem; margin: 0; }
.map-frame { width: 100%; aspect-ratio: 16 / 8; border: 0; }

/* ---------- Fehlende Bilder ---------- */
.img-missing { display: block; width: 100%; height: 100%; min-height: 180px; background: linear-gradient(135deg, #e6e9e2, #f2f4ef); }

/* ---------- Footer (eigenständig, dunkel mit Grün-Kante) ---------- */
.site-footer { background: var(--ink); color: #aab1a8; margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 2.4rem; }
.footer-logo { height: 42px; width: auto; margin-bottom: 1.1rem; }
.site-footer h3 { font-family: var(--display); text-transform: uppercase; font-size: .9rem; letter-spacing: .14em; color: #fff; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.site-footer a { color: #aab1a8; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--primary); }
.site-footer .prose { font-size: .95rem; color: #aab1a8; }
.site-footer .prose strong { color: #fff; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a { display: inline-flex; padding: .6rem; background: rgba(255, 255, 255, .07); border-radius: var(--r); transition: background .2s; }
.socials a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--primary); box-shadow: var(--shadow-md); max-height: calc(100vh - 130px); overflow: auto; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .main-nav a { padding: .95rem 1.5rem; border-bottom: 0; }
  .main-nav > ul > li.is-active > a { color: var(--primary-dark); box-shadow: inset 4px 0 0 var(--primary); }
  .main-nav li.has-sub { display: flex; flex-wrap: wrap; }
  .main-nav li.has-sub > a { flex: 1; }
  .sub-toggle { display: block; background: var(--smoke); border: 0; width: 50px; font-size: 1.3rem; color: var(--ink-soft); cursor: pointer; }
  .sub-toggle::after { content: '+'; }
  .sub-toggle[aria-expanded="true"]::after { content: '–'; }
  .main-nav .sub { position: static; display: none; box-shadow: none; border-top: 0; width: 100%; background: var(--smoke); }
  .main-nav li.has-sub:hover .sub { display: none; }
  .main-nav li.has-sub.is-open .sub { display: flex; }
  .cols-2, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 76svh; }
}
