/* Schlagbuch, Landingpage.
 * Farben aus der Landwirtschaft: Ackergrün (Hecke, Wald), Blattgrün, Rapsgelb
 * für Auswahl und Aktion (wie die Schlaggrenze in der App), Lehm für den
 * 365FarmNet-Hinweis. Überschriften in Barlow Semi Condensed (OFL, lokal unter
 * /vendor), Fließtext in der Systemschrift. */

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/barlow-semi-condensed-5.3.0/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/barlow-semi-condensed-5.3.0/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  --acker: #213a1e;
  --acker-2: #2c4a28;
  --blatt: #4b8a3c;
  --raps: #f0c419;
  --raps-dark: #c99d00;
  --lehm: #8a6340;
  --lehm-light: #f3ebdf;
  --feld: #f6f7f1;
  --feld-2: #eceee4;
  --tinte: #1d261b;
  --muted: #55604f;
  --line: #d9ddcf;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--feld);
  color: var(--tinte);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--acker-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blatt);
}

:focus-visible {
  outline: 3px solid var(--raps);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--raps);
  color: var(--tinte);
  padding: 8px 14px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

/* ---------------------------------------------------------------- Navigation */

.nav {
  background: var(--acker);
  color: var(--feld);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--feld);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
}

.logo:hover {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: #d4ddc9;
  text-decoration: none;
  font-size: 0.98rem;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .nav-cta {
  color: var(--raps);
  font-weight: 600;
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font: 600 1.02rem/1 var(--body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--raps);
  color: var(--tinte);
}

.btn-primary:hover {
  background: #ffd43b;
  color: var(--tinte);
}

.btn-secondary {
  background: #fff;
  color: var(--acker);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--blatt);
  color: var(--acker);
}

.btn-quiet {
  color: var(--feld);
  border-color: rgba(246, 247, 241, 0.35);
}

.btn-quiet:hover {
  color: #fff;
  border-color: var(--feld);
}

/* ---------------------------------------------------------------- Hero */

.hero {
  background: var(--acker);
  color: var(--feld);
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.1vw, 3.6rem);
  line-height: 1.02;
  font-weight: 700;
}

.lead {
  margin-top: 24px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #d7e0cd;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: #a9b89f;
}

.hero-figure {
  margin: 0;
}

.hero-figure figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #84957a;
  text-align: right;
}

.hero-map .hero-selected {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hero-tag-name {
  font: 600 17px var(--display);
  fill: var(--tinte);
}

.hero-tag-meta {
  font: 13px var(--body);
  fill: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-map .hero-selected {
    stroke-dashoffset: 1;
    animation: draw-boundary 1.8s cubic-bezier(0.5, 0, 0.2, 1) 0.4s forwards;
  }

  .hero-map .hero-tag {
    opacity: 0;
    animation: tag-in 0.4s ease-out 2.1s forwards;
  }
}

@keyframes draw-boundary {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes tag-in {
  to {
    opacity: 1;
  }
}

/* ---------------------------------------------------------------- 365FarmNet */

.notice {
  background: var(--lehm-light);
  border-bottom: 1px solid #e3d5c1;
}

.notice-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.notice h2 {
  font-size: 1.6rem;
  color: #5e3f22;
}

.notice p {
  color: #4a3a2a;
  max-width: 62ch;
}

.notice a {
  color: #5e3f22;
}

/* ---------------------------------------------------------------- Abschnitte */

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  color: var(--acker);
}

.features {
  padding: 88px 0 40px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  margin-top: 64px;
}

.feature-flip .feature-text {
  order: 2;
}

.feature h3 {
  font-size: 1.75rem;
  color: var(--acker);
}

.feature p {
  margin-top: 14px;
  color: #2f3a2b;
  max-width: 40em;
}

.ticks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 22px;
  margin-top: 7px;
  color: #33402f;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blatt);
  transform: rotate(-8deg);
}

.shot {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(33, 58, 30, 0.45);
  background: #fff;
}

.shot img {
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- Daten */

.data {
  background: var(--feld-2);
  padding: 80px 0;
  margin-top: 64px;
}

.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

.data-lead {
  margin-top: 16px;
  font-size: 1.15rem;
  max-width: 38em;
  color: #2f3a2b;
}

.facts {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 32px;
}

.facts dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--acker);
}

.facts dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.sync-figure {
  margin: 0;
}

.sync-device rect,
.sync-device path {
  fill: #fff;
  stroke: var(--acker);
  stroke-width: 2.5;
}

.sync-device text,
.sync-folder text {
  font: 600 19px var(--display);
  fill: var(--acker);
}

.sync-folder path {
  fill: var(--raps);
  stroke: var(--acker);
  stroke-width: 2.5;
}

/* ---------------------------------------------------------------- Preise */

.pricing {
  padding: 88px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  margin-top: 36px;
  align-items: start;
}

.pricing h3 {
  font-size: 1.6rem;
  color: var(--acker);
}

.promise {
  margin-top: 26px;
  padding-left: 16px;
  border-left: 4px solid var(--raps);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--acker);
}

.modules-intro {
  margin-top: 10px;
  color: var(--muted);
}

.modules table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.modules th,
.modules td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--line);
}

.modules thead th {
  font: 600 0.85rem var(--body);
  color: var(--muted);
  padding-top: 0;
}

.modules tbody th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--acker);
  width: 28%;
}

.modules td {
  color: #33402f;
}

.modules .num {
  text-align: right;
  white-space: nowrap;
  padding-right: 0;
}

.modules td.num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--acker);
}

.modules td.num span {
  display: block;
  font: 0.82rem var(--body);
  color: var(--blatt);
  margin-top: 2px;
}

.fine {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Download */

.download {
  background: var(--acker);
  color: var(--feld);
  padding: 80px 0;
}

.download .section-title {
  color: var(--feld);
}

.download a:not(.btn) {
  color: var(--raps);
}

.download .fine {
  color: #a9b89f;
  max-width: 62ch;
}

.download-state {
  margin-top: 24px;
}

.download-state > div,
.download-state > p {
  display: none;
}

.download-state[data-release-state="loading"] .release-loading,
.download-state[data-release-state="none"] .release-none,
.download-state[data-release-state="ready"] .release-ready {
  display: block;
}

.release-none p,
.release-loading {
  max-width: 60ch;
  font-size: 1.12rem;
  color: #d7e0cd;
}

.release-version {
  color: #d7e0cd;
}

.downloads {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.downloads li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.downloads li[hidden] {
  display: none;
}

.downloads span {
  font-size: 0.88rem;
  color: #a9b89f;
}

.mac-note {
  margin-top: 18px;
  color: #d7e0cd;
  max-width: 62ch;
}

/* ---------------------------------------------------------------- FAQ */

.faq {
  padding: 88px 0 40px;
}

.faq-wrap > details {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq details:first-of-type {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--acker);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--body);
  font-weight: 400;
  color: var(--blatt);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 10px;
  color: #33402f;
  max-width: 66ch;
}

/* ---------------------------------------------------------------- Fuß */

.foot {
  padding: 24px 0 48px;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- Bildansicht */

.image-dialog {
  border: none;
  padding: 16px;
  border-radius: 12px;
  max-width: min(1440px, 96vw);
  background: var(--feld);
}

.image-dialog::backdrop {
  background: rgba(20, 30, 18, 0.75);
}

.dialog-close {
  display: flex;
  margin: 0 0 12px auto;
}

.dialog-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- Schmal */

@media (max-width: 900px) {
  .hero-grid,
  .notice-inner,
  .feature,
  .data-grid,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .feature-flip .feature-text {
    order: 0;
  }

  .hero {
    padding-top: 36px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .sync-figure {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .modules thead {
    display: none;
  }

  .modules tr {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }

  .modules th,
  .modules td {
    border: none;
    padding: 0;
  }

  .modules td:not(.num) {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 6px;
  }

  .modules tbody th {
    width: auto;
  }
}

@media print {
  .nav,
  .hero-actions,
  .download {
    display: none;
  }
}
