:root {
    /* Color Palette */
    --color-primary: #115e59;     /* Deep Teal / Forest Green */
    --color-primary-dark: #0f4c47;
    --color-primary-light: #14b8a6;
    --color-accent: #f59e0b;      /* Warm Gold / Amber */
    --color-accent-hover: #d97706;
    
    --color-bg-light: #f8fafc;    /* Very light gray/blue */
    --color-bg-white: #ffffff;
    --color-text-dark: #1e293b;
    --color-text-muted: #64748b;
    
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    /* Layout */
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    border: 2px solid var(--color-bg-white);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-bg-white);
}


/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    border-radius: 8px; /* Slightly rounded corners for the original logo */
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.navbar.scrolled .logo-img {
    height: 55px;
    box-shadow: var(--shadow-sm);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-bg-white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    position: relative;
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-link {
    color: var(--color-text-dark);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-bg-white);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--color-text-dark);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 94, 89, 0.9) 0%, rgba(15, 76, 71, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 15;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 140px 2rem 0 2rem; /* Abstand nach oben, um Überschneidung mit dem Gras zu verhindern */
    color: var(--color-bg-white);
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-title span {
    display: block;
    color: var(--color-accent);
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}


/* --- Sections General --- */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 3px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


/* --- Services --- */
.services-section {
    background-color: var(--color-bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--color-bg-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
}

.service-card.highlighted {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg-white);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.service-card.highlighted:hover {
    transform: scale(1.05) translateY(-5px);
}

.service-card.highlighted p {
    color: rgba(255,255,255,0.9);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.service-card.highlighted h3 {
    color: var(--color-bg-white);
}

.service-card p {
    color: var(--color-text-muted);
}


/* --- Partners --- */
.partners-section {
    background-color: var(--color-bg-light);
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-card {
    background: var(--color-bg-white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 280px;
    min-height: 200px;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    /* Setze Opazität leicht hoch, damit der Text lesbar bleibt */
    filter: grayscale(80%) opacity(0.85);
}

.partner-card:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-card img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.partner-info strong {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-family: var(--font-body);
}


/* --- Contact / About --- */
.contact-section {
    background-color: var(--color-bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info .section-title {
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-info .section-title::after {
    left: 0;
    transform: none;
}

.contact-info .section-title span {
    color: var(--color-primary);
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list .icon {
    font-size: 1.5rem;
    background: var(--color-bg-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-primary);
}

.contact-list strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.contact-list span {
    color: var(--color-text-muted);
}

.contact-form-container {
    background: var(--color-bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-bg-light);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(17, 94, 89, 0.1);
    background-color: var(--color-bg-white);
}

.submit-btn {
    width: 100%;
    border-radius: 8px;
    padding: 1rem;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}


/* --- Footer --- */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-img {
    height: 60px;
    border-radius: 8px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1); /* Makes the logo white, if it's a solid shape, but let's just keep original if we want */
}

.footer-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.legal-links a {
    margin-left: 1.5rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: var(--color-bg-white);
}


/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Tractor Animation --- */
.tractor-runway {
    position: absolute;
    top: 100px; /* Platz unterhalb der Navigationsleiste auf der Startseite */
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 10;
    overflow: hidden;
    pointer-events: none;
}

.short-grass {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 12px;
    z-index: 1; /* Ganz hinten */
    background: repeating-linear-gradient(-45deg, #22c55e, #22c55e 6px, #16a34a 6px, #16a34a 12px);
    border-top: 1px solid #15803d;
}

.tall-grass {
    position: absolute;
    bottom: 0;
    /* Angepasste Breite für millimetergenauen linearen Sync */
    width: calc(100vw + 180px);
    right: -72px; /* Setzt den Startpunkt perfekt unter das Traktor-Mähdeck */
    height: 30px;
    z-index: 3; /* Ganz vorne (über den Rädern) */
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='40' viewBox='0 0 50 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 L0,15 Q3,0 7,20 Q12,-5 16,18 Q20,2 23,22 Q28,-5 32,18 Q38,0 42,20 Q47,2 50,24 L50,40 Z' fill='%2322c55e'/%3E%3Cpath d='M0,40 L4,10 Q9,25 13,16 Q18,0 21,18 Q26,8 29,20 Q35,0 39,22 L46,12 L50,25 L50,40 Z' fill='%2316a34a'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom;
    animation: tallGrassCut 30s linear infinite;
    pointer-events: none;
}

@keyframes tallGrassCut {
    0% { clip-path: inset(0 0% 0 0); }
    48% { clip-path: inset(0 100% 0 0); } /* Millimetergenau synchronisiert mit Traktor-Geschwindigkeit */
    
    48.1% { clip-path: inset(100% 0 0 0); }
    49.5% { clip-path: inset(0% 0 0 0); }
    
    50% { clip-path: inset(0 0 0 18px); } /* Versatz gleicht Roboter-Mähdeck aus */
    98% { clip-path: inset(0 0 0 calc(100% + 18px)); } /* Millimetergenau synchronisiert mit Roboter-Geschwindigkeit */
    
    98.1% { clip-path: inset(100% 0 0 0); }
    99.5% { clip-path: inset(0% 0 0 0); }
    100% { clip-path: inset(0% 0 0 0); }
}

.vehicle-container {
    position: absolute;
    bottom: 8px; /* Setzt das Fahrzeug etwas höher wegen des höheren Grases */
    z-index: 2; /* Fahrzeuge zwischen kurzem und hohem Gras */
    left: 100%;
    transform: translateX(10px); /* Bessere Kompatibilität auf Mobile (ersetzt right und calc) */
    width: 160px;
    height: 100px;
    animation: driveContainer 30s linear infinite;
    filter: drop-shadow(0px 8px 4px rgba(0,0,0,0.4));
}

.vehicle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center; /* Zentriert die verschieden großen SVGs im Container */
}

.tractor {
    transform: scale(1.0); /* Traktor um 20% vergrößern */
    transform-origin: bottom center;
    animation: toggleTractor 30s linear infinite;
}

.robot {
    transform: scale(0.55); /* Roboter noch kleiner, auf 65% */
    transform-origin: bottom center;
    animation: toggleRobot 30s linear infinite;
}

@keyframes driveContainer {
    0%   { left: 100%; transform: translateX(10px); }
    48%  { left: 0%;   transform: translateX(-170px); }
    50%  { left: 0%;   transform: translateX(-170px); }
    98%  { left: 100%; transform: translateX(10px); }
    100% { left: 100%; transform: translateX(10px); }
}

@keyframes toggleTractor {
    0%    { opacity: 1; }
    49%   { opacity: 1; }
    49.5% { opacity: 0; }
    99%   { opacity: 0; }
    99.5% { opacity: 1; }
    100%  { opacity: 1; }
}

@keyframes toggleRobot {
    0%    { opacity: 0; }
    49%   { opacity: 0; }
    49.5% { opacity: 1; }
    99%   { opacity: 1; }
    99.5% { opacity: 0; }
    100%  { opacity: 0; }
}


/* --- Responsive --- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right var(--transition-normal);
        margin: 0;
        padding: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--color-text-dark);
        font-size: 1.5rem;
        text-shadow: none;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        hyphens: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-title span {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .service-card.highlighted {
        transform: none;
    }
    
    .service-card.highlighted:hover {
        transform: translateY(-5px);
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-links a {
        margin: 0 0.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
