/* Agrargenossenschaft Schwingetal eG – Stylesheet
   Farb- und Typografiesystem angelehnt an gutsverwaltung-dresden.de */

:root {
  --olive: #7d8c5f;
  --olive-dark: #3b4235;
  --forest: #0c4132;
  --terracotta: #c87846;
  --sand: #f5f0eb;
  --stone: #e3dfd7;
  --cream: #fffdf3;
  --gold: #d79b4b;
  --divider: #eceee7;
  --copy-grey: #757575;
  --text: #393223;
  --white: #fff;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-weight: 700; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--terracotta); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55em 1.2em; font-size: .88rem; }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--cream); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--forest); }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--olive-dark); }
.btn-outline-dark { border-color: var(--forest); color: var(--forest); }
.btn-outline-dark:hover { background: var(--forest); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(125, 140, 95, .96); box-shadow: 0 2px 16px rgba(0,0,0,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; }
/* Emblem aus dem Schönfelder-Hochland-Logo; Wortmarke in Source Sans
   mit denselben Proportionen wie im Originallogo (Versalhöhe, Zeilenabstand, Laufweite). */
.brand { --logo-h: 52px; gap: calc(var(--logo-h) * .085); }
.brand-logo { height: var(--logo-h); width: auto; display: block; flex: none; }
.brand-name {
  font-size: calc(var(--logo-h) * .254);
  line-height: calc(var(--logo-h) * .26);
  text-transform: uppercase; letter-spacing: .015em;
}
.brand-name b { display: block; font-weight: 700; }
.brand-name span { display: block; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 78vh;
  display: flex; align-items: center;
  color: var(--cream);
  /* Standbild: Fallback ohne WebGL bzw. bei „Bewegung reduzieren“ */
  background:
    url("img/hero.webp") center / cover no-repeat,
    linear-gradient(180deg, #a3ad86 0%, #7d8c5f 55%, #5f6c46 100%);
}
/* Animierte Ebene (js/hero-wind.js) liegt über dem Standbild, unter dem Olivton */
.hero-canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .8s ease;
}
.hero-canvas.is-ready { opacity: 1; }
/* Overlay 1:1 wie gutsverwaltung-dresden.de (.hero-gradient) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(125, 140, 95, .7), rgba(0, 0, 0, 0) 60%);
  opacity: .6;
}
.hero h1, .hero p { text-shadow: 0 1px 14px rgba(40, 45, 30, .35); }
.hero-inner { padding-top: 110px; padding-bottom: 70px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); color: var(--cream); }
.hero p { font-size: 1.1rem; max-width: 560px; }

/* Intro */
.intro { background: var(--sand); padding: 90px 0; text-align: center; }
.lead { font-size: 1.15rem; font-weight: 600; }
.lead strong { font-weight: 700; }

/* Zahlen & Fakten */
.facts {
  list-style: none; padding: 0; margin: 56px auto 0; max-width: 1000px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}

/* Netzwerke & Partner */
.partners { padding: 10px 0 80px; }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.partner-card {
  border: 1px solid var(--stone); border-radius: var(--radius);
  padding: 34px 32px; display: flex; flex-direction: column; align-items: flex-start;
}
.partner-tag {
  background: var(--divider); color: var(--olive-dark); border-radius: 999px;
  padding: .25em .9em; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.partner-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 72px; }
.partner-logo { height: 72px; width: auto; }
.partner-logo-klim { height: 34px; }
.partner-card h3 { color: var(--forest); font-size: 1.35rem; margin: .7em 0 .4em; line-height: 1.25; }
.partner-card p { flex: 1; }
.partner-link { color: var(--forest); font-weight: 700; text-decoration: none; }
.partner-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Presse */
.press { padding: 100px 0; }
.press-intro { max-width: 640px; margin: 0 auto 40px; }
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.press-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--sand); border-radius: var(--radius); padding: 28px 28px 24px;
  border-top: 4px solid var(--olive); transition: transform .2s, box-shadow .2s;
}
.press-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59, 66, 53, .12); }
.press-meta { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--olive); }
.press-card h3 { color: var(--forest); font-size: 1.25rem; line-height: 1.3; margin: .5em 0 .4em; }
.press-card p { flex: 1; margin-bottom: 1em; }
.press-more { font-weight: 700; color: var(--forest); }

/* Forst & Brennholz */
.wood { padding: 0 0 90px; }
.wood-box {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: var(--sand); border-radius: var(--radius); padding: 44px 48px;
  border-left: 6px solid var(--olive);
}
.wood-box h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.wood-box p { margin: 0; max-width: 680px; }
.wood-box .btn { flex: none; }
.facts li {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 18px 22px; display: flex; flex-direction: column; gap: 6px;
}
.facts strong { font-size: clamp(1.7rem, 2.6vw, 2.2rem); white-space: nowrap; line-height: 1.05; color: var(--terracotta); font-weight: 700; }
.facts span { font-size: .95rem; color: var(--olive-dark); }

/* Technik-Liste */
.spec { list-style: none; padding: 0; margin: 0 0 1.6em; border-top: 1px solid var(--stone); }
.spec li { padding: .55em 0; border-bottom: 1px solid var(--stone); font-size: .98rem; }
.spec b { display: inline-block; min-width: 125px; color: var(--forest); }

/* Teaser */
.teasers { padding: 90px 0 40px; }
.teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  margin-bottom: 90px;
}
.teaser.reverse .teaser-text { order: 2; }
.teaser-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-size: cover; background-position: center;
}
/* Eigene Fotos einfach unter img/ mit diesen Dateinamen ablegen.
   Der farbige Verlauf dient als Fallback, solange ein Bild lädt. */
.img-felder { background-image: url("img/felder.webp"), linear-gradient(135deg, #e9c98a, #c99a52); }
.img-technik { background-image: url("img/technik.webp"), linear-gradient(135deg, #8a9a6a, #4f5b3c); }
.img-natur { background-image: url("img/natur.webp"), linear-gradient(135deg, #b9c49a, #6f8457); }
.img-team { background-image: url("img/team.webp"), linear-gradient(135deg, #d9b38a, #a8774a); }

.chips { list-style: none; padding: 0; margin: 0 0 1.6em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--sand); border: 1px solid var(--stone); border-radius: 999px; padding: .3em .9em; font-size: .9rem; font-weight: 600; }

/* Kreislauf-Band */
.band { background: var(--olive); color: var(--white); padding: 100px 0; }
.band h2 { color: var(--white); }
.cycle { list-style: none; padding: 0; margin: 40px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cycle li {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: .5em 1.2em .5em .5em; font-weight: 600;
}
.cycle span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); color: var(--forest); font-size: .85rem;
}

/* Geschichte */
.history { padding: 100px 0; }
.history-intro { max-width: 640px; margin: 0 auto 50px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 130px; top: 8px; bottom: 8px;
  width: 2px; background: var(--stone);
}
.timeline li { position: relative; padding: 0 0 38px 170px; }
.timeline li::before {
  content: ""; position: absolute; left: 123px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--olive);
}
.timeline li.tl-now::before { background: var(--olive); }
.tl-year {
  position: absolute; left: 0; top: 0; width: 108px; text-align: right;
  font-weight: 700; color: var(--terracotta); font-size: 1.05rem;
}
.timeline h3 { margin: 0 0 .3em; font-size: 1.2rem; color: var(--forest); line-height: 1.25; }
.timeline p { margin: 0; }

/* Über uns */
.about { background: var(--sand); padding: 100px 0; }
.about h2.dark { color: var(--forest); }
.about .btn { margin-top: 10px; }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; max-width: 1080px; }
.about-portrait { margin: 0; }
.about-portrait img { width: 100%; height: auto; border-radius: var(--radius); }
.about-portrait figcaption { margin-top: 10px; font-size: .9rem; color: var(--olive-dark); font-weight: 600; }

/* Kontakt */
.contact { padding: 110px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact address { font-style: normal; margin: 0 0 1.6em; color: var(--olive-dark); }
.contact address a { color: var(--forest); font-weight: 600; }

/* Footer */
.site-footer { background: var(--sand); padding: 50px 0; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; }
.brand-footer { color: var(--olive); }
.footer-info p { margin: 0 0 .8em; }
.footer-info a { color: var(--forest); }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a:not(.btn) { color: var(--olive-dark); }

/* Unterseiten */
.page-head { background: var(--olive); color: var(--cream); padding: 140px 0 60px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-body { padding: 70px 0 100px; }
.page-body h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Responsive */
@media (max-width: 1120px) and (min-width: 901px) {
  .nav { gap: 16px; }
  .nav a:not(.btn) { font-size: .9rem; }
  .brand { --logo-h: 46px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--olive); padding: 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .teaser { grid-template-columns: 1fr; gap: 28px; margin-bottom: 70px; }
  .teaser.reverse .teaser-text { order: 0; }
  .teaser-img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:first-child { grid-column: 1 / -1; }
  .partner-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-portrait { max-width: 420px; }
  .partner-card { padding: 26px 22px; }
  .wood-box { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px 26px; }
}
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .timeline li { padding-left: 36px; }
  .timeline li::before { left: 0; }
  .tl-year { position: static; display: block; width: auto; text-align: left; margin-bottom: 2px; }
}
@media (max-width: 560px) {
  .brand { --logo-h: 44px; }
  .wrap { padding: 0 16px; }
  .intro, .teasers, .band, .about, .contact, .history, .press { padding-top: 64px; padding-bottom: 64px; }
  .facts { gap: 10px; }
  .facts li { padding: 18px 14px; }
  .spec b { display: block; min-width: 0; }
  .btn { white-space: normal; text-align: center; }
}
