/* ==========================================================
   Füge-Landfried GbR – Stylesheet
   Farben abgeleitet aus dem Unternehmenslogo
   ========================================================== */

/* Schrift lokal eingebunden (DSGVO: keine Verbindung zu Google).
   Datei siehe README → assets/fonts/Archivo.woff2            */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo.woff2") format("woff2-variations"),
       url("../fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --feld: #1d6b2a;        /* Hauptgrün (Ring, Schrift im Logo) */
  --feld-tief: #0f3f18;   /* dunkles Grün für Text/Flächen */
  --blatt: #8dc63f;       /* helles Blattgrün */
  --weizen: #e2ad0e;      /* Gold der Felder */
  --stroh: #f3d777;       /* helles Gelb */
  --kalk: #fafaf3;        /* Seitenhintergrund */
  --tinte: #14261a;       /* Fließtext */
  --grau: #5b6b5f;        /* Nebentext */
  --linie: #dfe4d6;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--kalk);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--feld); text-underline-offset: .2em; }
a:hover { color: var(--feld-tief); }
:focus-visible { outline: 3px solid var(--weizen); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

h1, h2, h3 { font-stretch: 112%; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .6em; color: var(--feld-tief); }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 105%; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--grau); max-width: 52ch; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(250, 250, 243, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--linie); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--feld-tief); }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand span { font-weight: 750; font-stretch: 115%; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; font-weight: 450; font-stretch: 100%; font-size: .78rem; color: var(--grau); }

.menu { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--tinte); font-weight: 550; font-size: .97rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="true"] { border-bottom-color: var(--weizen); color: var(--feld-tief); }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--feld-tief); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; gap: 0; background: var(--kalk);
    border-bottom: 1px solid var(--linie);
    padding: .5rem var(--pad) 1.25rem;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { display: block; padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--linie); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-logo { justify-self: center; width: min(360px, 80%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15, 63, 24, .45); }
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid var(--feld); background: var(--feld); color: #fff;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--feld-tief); border-color: var(--feld-tief); color: #fff; }
.btn.ghost { background: transparent; color: var(--feld); }
.btn.ghost:hover { background: var(--feld); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Ackerfurchen – das Leitmotiv aus dem Logo */
.furrows { display: block; width: 100%; height: clamp(120px, 18vw, 230px); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.furrows path { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .furrows path { animation: sow 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .furrows path:nth-child(2) { animation-delay: .12s; }
  .furrows path:nth-child(3) { animation-delay: .24s; }
  .furrows path:nth-child(4) { animation-delay: .36s; }
  .furrows path:nth-child(5) { animation-delay: .48s; }
  @keyframes sow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Sektionen ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band { background: var(--feld-tief); color: #e8efe3; }
.band h2, .band h3 { color: #fff; }
.band .lead, .band p { color: #c9d8c6; }
.band a { color: var(--stroh); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }

/* Zwei Standbeine */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.pillar { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--feld); }
.pillar.gold::before { background: var(--weizen); }
.pillar .icon { width: 44px; height: 44px; color: var(--feld); margin-bottom: 1rem; }
.pillar.gold .icon { color: #b98700; }
.pillar a { font-weight: 650; }

/* Kennzahlen BGA */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); margin-top: 2.5rem; }
.fact { padding: 1.6rem 1.25rem 0 0; }
.fact + .fact { border-left: 1px solid rgba(255,255,255,.18); padding-left: 1.25rem; }
.fact b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-stretch: 118%; font-weight: 750; color: var(--stroh); line-height: 1; }
.fact span { display: block; margin-top: .5rem; font-size: .95rem; color: #c9d8c6; }

/* Kreislauf */
.cycle { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.cycle li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.cycle li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750;
  background: var(--stroh); color: var(--feld-tief);
}
.cycle li:not(:last-child)::after { content: ""; position: absolute; top: 1.15rem; left: 2.8rem; right: .2rem; border-top: 2px dashed rgba(255,255,255,.3); }
.cycle h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.cycle p { font-size: .95rem; }

/* Historie */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--linie); }
.timeline li { position: relative; padding: 0 0 2.2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--kalk); border: 3px solid var(--feld); }
.timeline li.now::before { background: var(--weizen); border-color: var(--weizen); }
.timeline time { display: block; font-weight: 800; font-stretch: 118%; font-size: 1.5rem; color: var(--feld); line-height: 1.1; margin-bottom: .25rem; }
.timeline h3 { margin-bottom: .3rem; }
.timeline p { color: var(--grau); margin: 0; }

/* Leitung */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.person { border-top: 3px solid var(--feld); padding-top: 1.25rem; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #e6efd9; color: var(--feld-tief); font-weight: 800; font-stretch: 115%; font-size: 1.35rem; margin-bottom: 1rem; }
.person h3 { margin-bottom: .15rem; }
.role { color: var(--feld); font-weight: 600; margin-bottom: .6rem; }
.person p:last-child { color: var(--grau); font-size: .97rem; }

/* Kontakt & Karte */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.contact-list li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--linie); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--feld); margin-top: .15rem; }
.contact-list a { color: var(--tinte); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--feld); text-decoration: underline; }

.map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: #e8eddf; border: 1px solid var(--linie); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem;
  background:
    repeating-linear-gradient(-28deg, rgba(29,107,42,.07) 0 14px, transparent 14px 28px),
    #eef2e6; }
.map-consent > div { max-width: 380px; }
.map-consent svg { width: 44px; height: 44px; color: var(--feld); margin: 0 auto 1rem; }
.map-consent p { font-size: .92rem; color: var(--grau); margin: 0 auto 1.2rem; }

/* Instagram-Hinweis */
.social { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.social p { margin: 0; }

/* ---------- Fußzeile ---------- */
.site-footer { background: #0b2e12; color: #b8c9b6; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #e8efe3; text-decoration: none; }
.site-footer a:hover { color: var(--stroh); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.foot-grid h3 { color: #fff; font-size: 1rem; font-stretch: 100%; margin-bottom: .8rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .4rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.todo { background: #fff3c4; outline: 1px dashed #b98700; padding: 0 .25em; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cycle { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .cycle li::after { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .hero-grid, .split, .pillars, .contact-grid, .people, .foot-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 200px; order: -1; justify-self: start; }
  .map { min-height: 340px; }
}
@media (max-width: 480px) {
  .facts, .cycle { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; padding-left: 0; }
}

/* ---------- Korrekturen für dunkle Flächen ---------- */
.band .contact-list li { border-bottom-color: rgba(255,255,255,.16); }
.band .contact-list svg { color: var(--stroh); }
.band .contact-list a { color: #fff; }
.band .contact-list a:hover { color: var(--stroh); }
.band .contact-list .todo { color: var(--tinte); }
.band .map-consent p { color: var(--grau); }
.band .map-consent a { color: var(--feld); }
@media (min-width: 761px) {
  #historie .section-head { position: sticky; top: 120px; }
}

/* ---------- Ergänzungen CMS-Version ---------- */
.flush-top { padding-top: 0; }
.muted { opacity: .75; }
.btn.gold { background: var(--weizen); border-color: var(--weizen); color: var(--feld-tief); }
.btn.gold:hover { background: var(--stroh); border-color: var(--stroh); color: var(--feld-tief); }
.foot-bottom.compact { margin-top: 0; border-top: 0; padding-top: 0; }
.hero-logo.photo img { object-fit: cover; }

.crops { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.crops li { padding: .3rem .8rem; border-radius: 999px; background: #eaf2df; color: var(--feld-tief); font-size: .9rem; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: .9rem; color: var(--grau); margin-top: .5rem; }

.avatar.photo { object-fit: cover; padding: 0; }

.map-wrap { display: flex; flex-direction: column; gap: .75rem; }
.map-wrap .map { flex: 1; }
.map-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.map-tabs button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35); background: transparent; color: #fff;
}
.map-tabs button[aria-selected="true"] { background: var(--stroh); border-color: var(--stroh); color: var(--feld-tief); }
.band .map-note { font-size: .92rem; color: #c9d8c6; margin: 0; }

/* ---------- Mehrseitige Version ---------- */
.menu a[aria-current="page"] { border-bottom-color: var(--weizen); color: var(--feld-tief); }

/* Kopfbereich Unterseiten */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); max-width: 16ch; }
.page-hero .lead { margin-bottom: 0; }
.furrows.slim { height: clamp(60px, 8vw, 110px); margin-top: clamp(2rem, 4vw, 3rem); }

/* Wegweiser-Kacheln auf der Startseite */
.teasers { padding-top: clamp(3rem, 6vw, 4.5rem); }
.pillars.three { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
a.pillar { display: flex; flex-direction: column; text-decoration: none; color: var(--tinte); transition: border-color .15s, transform .15s; }
a.pillar:hover { border-color: var(--feld); transform: translateY(-2px); color: var(--tinte); }
a.pillar h2 { font-size: 1.3rem; font-stretch: 105%; margin-bottom: .5rem; }
a.pillar p { flex: 1; }
.pillar.leaf::before { background: var(--blatt); }
.pillar.leaf .icon { color: #5e8f22; }
.pillar .more { font-weight: 650; color: var(--feld); text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: reduce) { a.pillar:hover { transform: none; } }

/* Kästen Betrieb */
.crop-box { background: #fff; border: 1px solid var(--linie); border-left: 6px solid var(--feld); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.crop-box + .crop-box { margin-top: 1.25rem; }
.crop-box.gold { border-left-color: var(--weizen); }
.crop-box h3 { margin-bottom: .8rem; }
.crop-box .crops { margin-bottom: 0; }
.crop-box a { font-weight: 650; }

/* Kreislauf auf hellem Grund */
.cycle.light { margin-top: 0; }
.cycle.light li::before { background: var(--feld); color: #fff; }
.cycle.light li:not(:last-child)::after { border-top-color: var(--linie); }
.cycle.light p { color: var(--grau); }

/* Kontakt-Band am Seitenende */
.cta { background: var(--feld-tief); color: #c9d8c6; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3rem; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn.ghost.light:hover { background: #fff; color: var(--feld-tief); border-color: #fff; }

/* Kontaktseite auf hellem Grund */
.map-tabs button { border-color: var(--linie); color: var(--feld-tief); background: #fff; }
.map-tabs button[aria-selected="true"] { background: var(--feld); border-color: var(--feld); color: #fff; }
.map-note { font-size: .92rem; color: var(--grau); margin: 0; }
@media (min-width: 761px) { .section-head.sticky { position: sticky; top: 120px; } }

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