:root {
  --ink: #171717;
  --muted: #646464;
  --line: #dedede;
  --surface: #f3f3f1;
  --white: #ffffff;
  --accent: #b8c22f;
  --accent-dark: #7e8618;
  --max: 1180px;
  --radius: 2px;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  overflow-wrap: anywhere;
}

a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(126, 134, 24, 0.2); }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-120%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.site-header__inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 128px 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; width: 106px; }
.brand img { width: 106px; height: 100px; object-fit: contain; }

.nav { justify-self: end; display: flex; gap: 0.35rem; align-items: center; }
.nav a {
  padding: 0.75rem 1rem;
  color: #555;
  font-weight: 650;
  text-decoration: none;
}

.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.nav a.nav-cta { background: var(--ink); color: var(--white); }
.nav a.nav-cta:hover { background: var(--accent-dark); color: var(--white); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
}

.mobile-menu { border-top: 1px solid var(--line); padding: 0.75rem 1rem 1rem; }
.mobile-menu nav { display: grid; }
.mobile-menu a { padding: 0.8rem 0; font-weight: 650; text-decoration: none; }

.hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.06)), url('/assets/images/hero-cow.webp') center 46% / cover no-repeat;
  color: var(--white);
}

.hero__inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 6rem 0 5.5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #68700e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 760px;
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--gray { background: var(--surface); }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.narrow > * { max-width: 850px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }
h1, h2, h3, h4 { scroll-margin-top: 1.5rem; text-wrap: balance; overflow-wrap: normal; }
@media (max-width: 420px) { h1, h2, h3, h4 { hyphens: auto; } }
p, li { text-wrap: pretty; }
main ul { padding-left: 0; list-style: none; }
main ul > li { position: relative; padding-left: 1.1rem; }
main ul > li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: currentColor; }
h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.process-figure { margin: clamp(2rem, 5vw, 3.5rem) auto 0; }
.process-figure img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .process-figure { max-width: 480px; } }
.card { padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--line); background: var(--white); }
.card h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.card ul { margin: 1.25rem 0 0; }
.card li + li { margin-top: 0.55rem; }

.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.image-tile { position: relative; min-height: 390px; overflow: hidden; background: #222; }
.image-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.image-tile:hover img { transform: scale(1.035); }
.image-tile strong { position: absolute; inset: auto 1.5rem 1.4rem; color: var(--white); font-size: 1.7rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }

.prose { font-size: 1.03rem; }
.prose > * + h2 { margin-top: 3rem; }
.prose > * + h3 { margin-top: 2rem; }
.prose h1 { margin: 0 0 2.5rem; font-size: clamp(2.3rem, 5vw, 4rem); }
.prose h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.prose h3 { font-size: 1.2rem; }
.prose h4 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }

.cta-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-left: 6px solid var(--accent);
  background: var(--ink);
  color: var(--white);
}

.hero .eyebrow,
.cta-panel .eyebrow { color: #dce66f; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
}

.cta-panel .button { justify-self: end; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }

.form-shell { margin-top: 2.5rem; }
.form-shell .gutfood-mail-standalone__mount { min-height: 340px; }

.site-footer { padding: 3.25rem 0 2rem; background: #111; color: #ddd; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 2rem; align-items: start; }
.footer-grid img { width: 82px; filter: invert(1); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: #ddd; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #383838; color: #a8a8a8; font-size: 0.9rem; }

.status-panel { text-align: center; padding: 7rem 0; }
.status-panel .narrow > * { margin-inline: auto; }
.status-panel h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }

:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }

@media (max-width: 820px) {
  .site-header__inner { min-height: 92px; grid-template-columns: 88px 1fr auto; }
  .brand, .brand img { width: 76px; height: 76px; }
  .nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; justify-self: end; }
  .hero { min-height: 520px; background-position: 58% center; }
  .grid-2, .cta-panel, .footer-grid { grid-template-columns: 1fr; }
  .image-grid { grid-template-columns: 1fr; }
  .image-tile { min-height: 320px; }
  .cta-panel .button { justify-self: start; }
  .site-header__inner, .container, .narrow, .hero__inner { width: min(calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)), var(--max)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Kontaktformular (selbst gerendertes Layout) */
.gutfood-form {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #171717;
}

.gutfood-form-heading h2,
.gutfood-form-heading h3 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.gutfood-form-heading p { margin: 0 0 1.5rem; color: #5d5d5d; }

.gutfood-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gutfood-form-field { display: grid; gap: 0.4rem; font-weight: 650; }
.gutfood-form-field--full { grid-column: 1 / -1; }

.gutfood-form-field input,
.gutfood-form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.85rem;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  color: #171717;
  font: inherit;
  font-weight: 400;
}

.gutfood-form-field textarea { min-height: 150px; resize: vertical; }
.gutfood-form-field input:focus-visible,
.gutfood-form-field textarea:focus-visible { border-color: #171717; outline: 3px solid #7e8618; outline-offset: 1px; }

.gutfood-form-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.94rem;
}

.gutfood-form-consent input { width: 20px; height: 20px; margin-top: 0.15rem; }
.gutfood-form-consent:focus-within { outline: 3px solid #7e8618; outline-offset: 3px; }

.gutfood-form-submit {
  margin-top: 1.75rem;
  min-width: 150px;
  min-height: 50px;
  padding: 0.75rem 1.2rem;
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.gutfood-form-submit:hover { border-color: #7e8618; background: #7e8618; }
.gutfood-form-submit:focus-visible { outline: 3px solid #7e8618; outline-offset: 3px; }
.gutfood-form-submit:disabled { cursor: wait; opacity: 0.7; }

@media (max-width: 680px) {
  .gutfood-form-grid { grid-template-columns: 1fr; }
  .gutfood-form-field--half { grid-column: 1; }
  .gutfood-form-submit { width: 100%; }
}
