/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header and Navigation */
.header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.header-contact {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-size: 14px;
    color: #6c757d;
}

.contact-link {
    color: #006837;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #228B22;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-top {
        padding:  6px 0;
    }
    
    .header-contact {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 12px;
        text-align: center;
    }
    
    .header-contact span {
        display: block;
    }
    
    .nav-logo img {
        height: 60px;
    }
}

.navbar {
    padding: 0 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 90px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #006837;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #006837;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 89px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 104, 55, 0.7) 0%, 
        rgba(34, 139, 34, 0.5) 50%, 
        rgba(0, 104, 55, 0.7) 100%),
        url('public/Nahaufnahme_rasenlegen.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

/* Mobile-specific background fix */
@media (max-width: 768px) {
    .hero-background {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

/* Image optimization for faster loading */
img {
    max-width: 100%;
    height: auto;
}

/* Progressive image loading */
.project-image {
    background-color: #f0f0f0;
    transition: opacity 0.3s ease;
}

.project-image:not([src]) {
    opacity: 0.5;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #ffffff;
    padding: 48px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 50%;
    border: 2px solid #bbf7d0;
}

.emoji-icon {
    font-size: 64px;
    line-height: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #006837, #228B22);
    border-radius: 0 0 4px 4px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-card h3 {
    color: #006837;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 8px;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #f8fffe;
}

.about h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #006837;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.about p {
    font-size: 18px;
    line-height: 1.7;
    color: #2d3748;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: #f8fffe;
}

.gallery h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #006837;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.gallery-intro {
    text-align: center;
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 32px 24px 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.gallery-overlay p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.service-item {
    background: #006837 url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cdefs%3E%3Cpattern id="dots" patternUnits="userSpaceOnUse" width="10    " height="10"%3E%3Ccircle cx="7.5" cy="7.5" r="0.8" fill="%23ffffff" opacity="0.08"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23dots)"/%3E%3C/svg%3E');
    color: white;
    padding: 32px 24px;
    text-align: center;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.service-emoji {
    font-size: 32px;
    line-height: 1;
    background: white;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.service-item:hover {
    transform: translateY(-4px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}

.close:hover {
    color: #006837;
}

.contact-info h3 {
    color: #006837;
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info strong {
    color: #006837;
}

.privacy-link {
    background: none;
    border: none;
    color: #6c757d;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.privacy-link:hover {
    color: #006837;
}

.privacy-modal {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.privacy-content h3 {
    color: #006837;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 18px;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .privacy-modal {
        margin: 10% auto;
        max-height: 85vh;
    }
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #006837 0%, #228B22 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpath d="M20,20 Q50,5 80,20 Q95,50 80,80 Q50,95 20,80 Q5,50 20,20" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E') repeat;
    background-size: 100px 100px;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 32px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #006837;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Jobs Section */
.jobs {
    padding: 100px 0;
    background-color: #f8fffe;
}

.jobs h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #006837;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.jobs-intro {
    text-align: center;
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.job-card {
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 4px solid #006837;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.job-card h3 {
    color: #006837;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.job-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
}

.jobs-cta {
    text-align: center;
}

.jobs-cta h3 {
    color: #006837;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 24px;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-contact h3 {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.footer-contact p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #cbd5e0;
    font-size: 15px;
}

.footer-contact a {
    color: #68d391;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #9ae6b4;
}

.footer-social a {
    color: #68d391;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social a:hover {
    color: #9ae6b4;
}

.footer-support {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid #2d3748;
    border-bottom: 1px solid #2d3748;
    margin: 32px 0;
    color: #cbd5e0;
    font-size: 15px;
}

.footer-legal {
    text-align: center;
}

.footer-legal a {
    color: #68d391;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #9ae6b4;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header-contact {
        justify-content: center;
        gap: 16px;
        font-size: 13px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 89px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 32px 0;
        gap: 24px;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        height: 60vh;
        min-height: 400px;
        margin-top: 120px;
    }

    .container {
        padding: 0 16px;
    }

    .features,
    .about,
    .services,
    .cta,
    .jobs {
        padding: 60px 0;
    }

    .footer {
        padding: 60px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

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

    .feature-card {
        padding: 32px 24px;
    }

    .job-card {
        padding: 32px 24px;
    }
}
