/* Schriften: selbst gehostet (SIL Open Font License), siehe fonts/OFL-*.txt */
@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: #15120e;
    --bg-deep: #0e0c09;
    --bg-band: #221b14;
    --card: #211b15;
    --line: #3a3026;
    --line-soft: #2a231b;
    --text: #f2e9dc;
    --muted: #b9ad9b;
    --yellow: #f2b632;
    --mustard: #c9922b;
    --green: #4cbb3a;
    --green-dark: #2f7d24;
    --orange: #e98a3a;
    --paper: #f1e9dc;
    --ink: #15120e;

    --font-text: "Archivo", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --radius: 6px;
    --header-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1;
}

h1,
h2 {
    font-weight: 900;
    font-stretch: 125%;
    text-transform: uppercase;
    letter-spacing: .01em;
}

p {
    margin: 0;
}

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

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.2em;
    height: 1.2em;
    flex: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

.text-yellow {
    color: var(--yellow);
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--yellow);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid var(--yellow);
    border-radius: var(--radius);
    background: var(--yellow);
    color: var(--ink);
    font-size: .875rem;
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: .04em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.button-small {
    min-height: 40px;
    padding: 8px 16px;
    font-size: .8125rem;
}

.button-outline {
    border-color: rgba(242, 233, 220, .7);
    background: rgba(14, 12, 9, .35);
    color: var(--text);
}

.button-dark {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--yellow);
}

.button-large {
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 24px;
    font-size: 1.0625rem;
    text-align: left;
}

.button-large small {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(17, 14, 11, .96);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    width: 44px;
    height: auto;
}

.brand-text {
    font-size: .8125rem;
    font-weight: 900;
    font-stretch: 125%;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}

.js .menu-toggle {
    display: inline-flex;
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
    padding-bottom: 12px;
}

.js .navigation {
    display: none;
}

.js .navigation.is-open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-deep);
}

.navigation a:not(.button) {
    padding: 10px 0;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}

.navigation .button {
    margin-top: 6px;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    min-height: 620px;
    border-bottom: 3px solid var(--yellow);
    background: #1b1f3a;
}

.hero-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
}

/* Abdunkelung hinter dem Text, damit er auf jedem Bildschirm lesbar bleibt. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 12, 9, .55) 0%, rgba(14, 12, 9, .15) 55%, rgba(14, 12, 9, 0) 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 44px;
    padding-bottom: 220px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.tag {
    padding: 4px 8px;
    border: 1px solid rgba(242, 233, 220, .35);
    border-radius: 3px;
    background: rgba(14, 12, 9, .55);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tag-yellow {
    border-color: var(--yellow);
    color: var(--yellow);
}

.tag-green {
    border-color: var(--green);
    background: var(--green);
    color: var(--ink);
}

.hero h1 {
    max-width: 14ch;
    font-size: clamp(1.9rem, 8vw, 4.25rem);
    line-height: .95;
    text-shadow: 0 2px 18px rgba(14, 12, 9, .35);
}

.hero-lead {
    max-width: 30rem;
    margin-top: 22px;
    font-size: 1.0625rem;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(14, 12, 9, .6);
}

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

/* Eckdaten */
.facts {
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-deep);
}

.facts-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto;
}

.facts-inner div {
    padding: 16px 0 16px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.facts-inner div:nth-child(odd) {
    padding-left: 0;
}

.facts-inner div:nth-child(even) {
    border-left: 1px solid var(--line-soft);
}

.facts-inner div:last-child {
    border-bottom: 0;
}

.facts dt {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.facts dd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    font-size: 1.0625rem;
    font-weight: 800;
    font-stretch: 112%;
}

.online-dot,
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex: none;
}

/* Abschnitte (Hintergrund mit feinen Ackerfurchen) */
.section {
    padding: 72px 0;
    background:
        repeating-linear-gradient(180deg, transparent 0 13px, rgba(255, 255, 255, .018) 13px 14px),
        var(--bg);
}

.section h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.02;
}

.section-lead {
    max-width: 21rem;
    margin-top: 16px;
    color: var(--muted);
    font-size: .9375rem;
}

.section-band {
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-band);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Feldübersicht */
.fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
}

.field {
    --crop: var(--yellow);
    --crop-dark: var(--mustard);
    position: relative;
    overflow: hidden;
    padding: 56px 16px 20px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--card);
}

/* Feldstreifen oben auf jeder Karte */
.field::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 36px;
    background: repeating-linear-gradient(-70deg, var(--crop) 0 7px, var(--crop-dark) 7px 10px);
}

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--crop);
    font-family: var(--font-mono);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.field h3 {
    margin-top: 10px;
    font-size: 1.0625rem;
    font-weight: 800;
    font-stretch: 105%;
    line-height: 1.2;
}

.field p:not(.field-label) {
    margin-top: 8px;
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.5;
}

.crop-wheat { --crop: #e2a73c; --crop-dark: #b07a22; }
.crop-grass { --crop: #5fc142; --crop-dark: #38902a; }
.crop-plowed { --crop: #8a6339; --crop-dark: #5a3e22; }
.crop-rapeseed { --crop: #f0cd3a; --crop-dark: #c9a420; }
.crop-corn { --crop: #8fc23c; --crop-dark: #5f8f22; }
.crop-barley { --crop: #d8c27a; --crop-dark: #a8925a; }
.crop-sunflower { --crop: #f5b82e; --crop-dark: #1d1712; }

.crop-plowed .field-label {
    color: #c59a68;
}

.field-streamer {
    padding-top: 20px;
    border-color: var(--orange);
    background: var(--orange);
    color: var(--ink);
    text-decoration: none;
}

.field-streamer::before {
    content: none;
}

.field-streamer .field-label {
    color: var(--ink);
}

.field-streamer .live-dot {
    background: var(--ink);
}

.field-streamer h3 {
    margin-top: 16px;
    font-size: 1.375rem;
    font-weight: 900;
    font-stretch: 125%;
    line-height: 1;
    text-transform: uppercase;
}

.field-streamer p:not(.field-label) {
    margin-top: 14px;
    color: var(--ink);
    font-weight: 700;
}

/* Mitmachen */
.order {
    display: grid;
    gap: 40px;
}

.order-tractor {
    position: relative;
    width: 210px;
    margin-top: 32px;
    padding-bottom: 6px;
    color: var(--yellow);
}

.order-tractor .icon {
    width: 110px;
    height: 90px;
    margin-left: 26px;
}

/* Ackerboden mit Saatreihe unter dem Traktor */
.order-tractor::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 3px;
    background:
        linear-gradient(90deg, #5a4a3a 0 52%, transparent 52%),
        repeating-linear-gradient(90deg, #5a4a3a 0 8px, transparent 8px 12px);
}

.order-card {
    align-self: start;
    padding: 22px 20px 24px;
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 7px 7px 0 var(--bg-deep);
}

.order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    padding-bottom: 14px;
    border-bottom: 2px dashed #a99b87;
}

.order-head h3 {
    font-size: 1.125rem;
    font-weight: 900;
    font-stretch: 125%;
    text-transform: uppercase;
}

.order-reward {
    color: #6b4f2a;
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.checklist {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.35;
}

.checklist .icon {
    width: 20px;
    height: 20px;
    color: var(--green-dark);
}

/* Galerie: main.js setzt die Fotos zufällig ein und blendet sie nacheinander über.
   Es sind nie alle Fotos sichtbar: Handy 3 Kacheln, ab 600px 5, ab 761px 6. */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 36px;
}

.shot {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.shot:nth-child(n + 4) {
    display: none;
}

.shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.shot img.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .shot img {
        transition: none;
    }
}

/* Abschluss */
.cta {
    position: relative;
    overflow: hidden;
    padding: 64px 0 120px;
    background:
        linear-gradient(180deg, transparent 0 calc(100% - 66px), rgba(14, 12, 9, .25) calc(100% - 66px) calc(100% - 64px), transparent calc(100% - 64px)),
        linear-gradient(180deg, transparent 0 calc(100% - 46px), rgba(14, 12, 9, .25) calc(100% - 46px) calc(100% - 44px), transparent calc(100% - 44px)),
        linear-gradient(180deg, transparent 0 calc(100% - 26px), rgba(14, 12, 9, .25) calc(100% - 26px) calc(100% - 24px), transparent calc(100% - 24px)),
        var(--mustard);
    color: var(--ink);
}

.cta-inner {
    display: grid;
    gap: 32px;
}

.cta h2 {
    max-width: 14ch;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1;
}

.cta p {
    max-width: 30rem;
    margin-top: 14px;
    font-size: .9375rem;
    font-weight: 700;
}

.cta-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.cta-domain {
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-weight: 700;
}

.cta-tractor {
    position: absolute;
    right: 8%;
    bottom: 24px;
    width: 100px;
    height: 82px;
    color: var(--ink);
}

/* Footer */
.footer {
    border-bottom: 8px solid transparent;
    border-image: repeating-linear-gradient(-70deg, var(--yellow) 0 6px, var(--mustard) 6px 9px) 8;
    background: var(--bg-deep);
    font-size: .875rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
    padding-top: 64px;
    padding-bottom: 56px;
}

.footer-about {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 24px;
}

.footer-logo {
    width: 112px;
    height: auto;
}

.footer-about div {
    flex: 1 1 260px;
}

.footer-brand {
    font-size: 1.375rem;
    white-space: nowrap;
    font-weight: 900;
    font-stretch: 125%;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-about p {
    max-width: 24rem;
    margin-top: 10px;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer-title {
    margin-bottom: 8px;
    color: var(--yellow);
    font-family: var(--font-mono);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.footer-nav a {
    padding: 4px 0;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-nav a[aria-current="page"] {
    color: var(--yellow);
}

.footer-bottom {
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: .75rem;
}

/* Rechtliche Seiten */
.legal {
    padding: 64px 0 88px;
    background: var(--bg);
}

.legal-inner {
    max-width: 800px;
}

.legal h1 {
    font-size: clamp(1.9rem, 7vw, 2.75rem);
    line-height: 1.05;
}

.legal h2 {
    margin: 40px 0 12px;
    color: var(--yellow);
    font-size: 1.125rem;
    font-stretch: 112%;
    line-height: 1.25;
}

.legal p,
.legal li,
.legal dd {
    color: var(--muted);
}

.legal .eyebrow {
    color: var(--yellow);
}

.legal p + p {
    margin-top: 12px;
}

.legal a {
    color: var(--yellow);
}

.legal ul {
    margin: 12px 0;
    padding-left: 22px;
}

.legal li + li {
    margin-top: 6px;
}

.legal strong {
    color: var(--text);
}

.legal-lead {
    margin-top: 18px;
    font-size: 1.0625rem;
}

.legal-data {
    display: grid;
    margin: 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--card);
}

.legal-data div {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.legal-data div:last-child {
    border-bottom: 0;
}

.legal-data dt {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-data dd {
    margin: 4px 0 0;
}

.legal .legal-back {
    margin-top: 48px;
}

.legal-back .button {
    color: var(--text);
}

/* ab 600px */
@media (min-width: 600px) {
    .container {
        padding-right: 32px;
        padding-left: 32px;
    }

    .js .navigation.is-open {
        padding: 12px 32px 20px;
    }

    .brand-logo {
        width: 52px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .fields {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
    }

    .shot {
        aspect-ratio: auto;
    }

    .shot:nth-child(n + 4) {
        display: block;
    }

    .shot:nth-child(n + 6) {
        display: none;
    }

    .shot-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .legal-data div {
        display: grid;
        grid-template-columns: 160px 1fr;
        gap: 16px;
    }

    .legal-data dd {
        margin: 0;
    }
}

/* ab 761px (Tablet) */
@media (min-width: 761px) {
    .hero {
        min-height: 640px;
        align-items: flex-start;
    }

    .hero-inner {
        padding-top: 64px;
        padding-bottom: 180px;
    }

    .hero::after {
        background: linear-gradient(90deg, rgba(14, 12, 9, .5) 0%, rgba(14, 12, 9, .15) 50%, rgba(14, 12, 9, 0) 65%);
    }

    .facts-inner {
        grid-template-columns: repeat(5, 1fr);
    }

    .facts-inner div,
    .facts-inner div:nth-child(odd) {
        padding: 18px 16px;
        border-bottom: 0;
        border-left: 1px solid var(--line-soft);
    }

    .facts-inner div:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .section {
        padding: 88px 0;
    }

    .section-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 32px;
    }

    .section-head .section-lead {
        margin-top: 0;
    }

    .order {
        grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
        align-items: start;
        gap: 48px;
    }

    .order-card {
        padding: 26px 28px 28px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .shot:nth-child(n + 6) {
        display: block;
    }

    .cta {
        padding: 72px 0 88px;
    }

    .cta-inner {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .cta-side {
        padding-top: 12px;
    }

    .cta-tractor {
        right: max(40px, calc((100% - 1200px) / 2 + 60px));
        bottom: 26px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 200px);
    }
}

/* ab 1081px (Desktop, Navigation in einer Zeile) */
@media (min-width: 1081px) {
    :root {
        --header-height: 72px;
    }

    .js .menu-toggle {
        display: none;
    }

    .navigation,
    .js .navigation {
        display: flex;
        flex-wrap: nowrap;
        gap: 34px;
        padding: 0;
    }

    .navigation a:not(.button) {
        padding: 6px 0;
    }

    .navigation .button {
        margin: 0;
    }

    .hero {
        min-height: 680px;
    }

    .hero-inner {
        padding-top: 80px;
    }

    .fields {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .gallery {
        grid-auto-rows: 200px;
        gap: 14px;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr) 180px 180px;
        gap: 48px;
        padding-top: 72px;
        padding-bottom: 64px;
    }

    .footer-about {
        grid-column: auto;
    }
}

/* Hover nur auf Geräten mit Maus */
@media (hover: hover) {
    .button:hover {
        transform: translate(-2px, -2px);
        box-shadow: 4px 4px 0 var(--bg-deep);
    }

    .button-dark:hover {
        box-shadow: 4px 4px 0 rgba(14, 12, 9, .35);
    }

    .navigation a:not(.button):hover,
    .footer-nav a:hover {
        color: var(--yellow);
    }

    .field-streamer {
        transition: transform .15s ease, box-shadow .15s ease;
    }

    .field-streamer:hover {
        transform: translate(-3px, -3px);
        box-shadow: 6px 6px 0 var(--bg-deep);
    }

    .cta-domain:hover {
        color: var(--bg-deep);
        text-decoration-thickness: 2px;
    }
}
