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

:root {
    --primary-black: #1a1a1a;
    --primary-white: #ffffff;
    --secondary-white: #f8f8f8;
    --accent-green: #4CAF50;
    --accent-orange: #FF6B35;
    --text-gray: #666666;
    --border-light: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--primary-white);
}

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

/* Header and Navigation */
.navbar {
    background-color: var(--primary-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-images {
    display: flex;
    gap: 0.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-black);
    letter-spacing: 2px;
    margin: 0;
}

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

.nav-link {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-black);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.gallery-slide.active {
    opacity: 0.7;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(42, 42, 42, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--primary-white);
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-orange));
    color: var(--primary-white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Gallery Dots */
.gallery-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.dot.active {
    background-color: var(--accent-orange);
    border-color: var(--primary-white);
    transform: scale(1.2);
}

/* Services Section */
.services-overview {
    padding: 100px 0;
    background-color: var(--secondary-white);
}

.services-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-black);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    border-radius: 15px;
}

.service-row:nth-child(odd) {
    background-color: #f5f5f5;
}

.service-row:nth-child(even) {
    background-color: rgba(76, 175, 80, 0.08);
}

.service-row.reverse {
    direction: rtl;
}

.service-row.reverse * {
    direction: ltr;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
    border-bottom: 3px solid var(--accent-orange);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.service-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.service-highlights {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.service-highlights li {
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.service-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
}

.service-image:hover {
    transform: scale(1.02);
}

.service-image:hover .image-overlay {
    opacity: 1;
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-icon {
    font-size: 3rem;
    color: var(--primary-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background: none;
    text-decoration: none;
    user-select: none;
}

.service-row.no-image {
    display: block;
    padding: 2rem 3rem;
    text-align: center;
}

.service-row.no-image .service-content.full-width {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.service-row.no-image h3 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.service-row.no-image p {
    text-align: center;
    margin-bottom: 2rem;
}

.service-row.no-image .service-highlights {
    text-align: left;
    display: inline-block;
    margin: 0 auto 1.5rem;
    width: 100%;
}

.service-row.no-image .learn-more {
    display: block;
    margin: 1.5rem auto 0;
    width: auto;
}

.learn-more {
    background-color: var(--accent-green);
    color: var(--primary-white);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.learn-more:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Service Details Modal */
.service-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-details.show {
    opacity: 1;
    visibility: visible;
}

.service-details.hidden {
    opacity: 0;
    visibility: hidden;
}

.service-detail-content {
    background: var(--primary-white);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    position: relative;
    padding: 2rem;
}

.close-detail {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    z-index: 10;
}

.close-detail:hover {
    color: var(--accent-orange);
}

.detail-section {
    display: none;
}

.detail-section.active {
    display: block;
}

.detail-section h2 {
    color: var(--primary-black);
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.detail-text h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.detail-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.detail-text li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.detail-text p {
    color: var(--text-gray);
    line-height: 1.7;
}

.service-gallery h3 {
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 2rem;
    color: var(--primary-white);
    font-weight: bold;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--primary-white);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-black);
}

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

.contact-info h3 {
    color: var(--accent-green);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-item strong {
    color: var(--primary-black);
}

.contact-persons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-person {
    background: var(--secondary-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.contact-person h4 {
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-person p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-style: italic;
}

.general-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary-white);
}

.contact-form {
    background: var(--secondary-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.contact-form h3 {
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--accent-green);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-button {
    background: linear-gradient(45deg, var(--accent-green), var(--accent-orange));
    color: var(--primary-white);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Impressum Section */
.impressum {
    padding: 100px 0;
    background-color: var(--secondary-white);
}

.impressum h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-black);
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-text {
    background: var(--primary-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    line-height: 1.8;
}

.impressum-text h3 {
    color: var(--accent-green);
    margin: 2rem 0 1.5rem 0;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 0.5rem;
}

.impressum-text h3:first-child {
    margin-top: 0;
}

.impressum-text p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.impressum-text p strong {
    color: var(--primary-black);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--primary-black);
    color: var(--primary-white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow-light);
        padding: 2rem 0;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.9rem;
        max-width: 90%;
    }

    .gallery-dots {
        bottom: 20px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        padding: 2rem 1rem;
    }

    .service-row.reverse {
        direction: ltr;
    }

    .service-content {
        padding: 1rem;
        text-align: center;
    }

    .service-content h3 {
        font-size: 1.6rem;
    }

    .service-image img {
        height: 250px;
    }

    .detail-content {
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 150px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-content {
        width: 95%;
        padding: 1.5rem;
    }

    .detail-section h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .logo h1 {
        font-size: 1.4rem;
        text-align: left;
    }
    
    .logo-img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 30px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.85rem;
        max-width: 95%;
    }

    .services-overview,
    .contact,
    .impressum {
        padding: 60px 0;
    }

    .service-row {
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .service-content {
        padding: 0.5rem;
    }

    .service-content h3 {
        font-size: 1.4rem;
    }

    .service-image img {
        height: 200px;
    }
    
    .contact-persons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-person {
        padding: 1rem;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox.hidden {
    opacity: 0;
    visibility: hidden;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-orange);
}

#lightboxImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: var(--primary-white);
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ff4444;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: var(--accent-green);
}

/* Loading state for form */
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}