/* --- VARIABLES & SETUP --- */
:root {
    --font-primary: 'Poppins', sans-serif;
    --color-primary: #005c97; /* A deeper, more professional blue */
    --color-secondary: #363795; /* A complementary violet from some logos */
    --color-accent: #2c9e4b; /* A vibrant green */
    --color-dark: #2c3e50; /* Dark grey for text */
    --color-light: #ecf0f1; /* Light grey for backgrounds */
    --color-white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* --- GENERAL & TYPOGRAPHY --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    background-color: var(--color-white);
    color: var(--color-dark);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--color-primary);
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    font-weight: 700;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

section {
    padding: 5rem 2rem;
    border-bottom: 1px solid var(--color-light);
}

section:last-of-type {
    border-bottom: none;
}

/* --- HEADER --- */
header {
    background-color: var(--color-white);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.9);
}

.logo {
    margin-bottom: 1rem;
}

.logo img {
    height: 140px;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.05);
}

nav a {
    color: var(--color-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}
nav a:hover, nav a.active {
    background-color: var(--color-light);
    color: var(--color-primary);
}
nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
nav ul li { margin-left: 1rem; }

/* --- HAMBURGER MENU --- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0; z-index: 1001;}
.hamburger span { display: block; width: 25px; height: 3px; background-color: var(--color-dark); margin: 5px 0; transition: all 0.3s ease-in-out; border-radius: 3px;}
.hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- HERO SECTION --- */
#hero {
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#hero h1 { font-size: 3.5rem; margin-bottom: 1rem; color: var(--color-white); font-weight: 700;}
#hero p { font-size: 1.4rem; margin-bottom: 2.5rem; max-width: 700px; opacity: 0.9;}
.cta-button {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}
.cta-button:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* --- SERVICES SECTION --- */
#services { background-color: var(--color-white); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.service-item {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-light);
}
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* --- GALLERY SECTION (SWIPER) --- */
#gallery { 
    background-color: var(--color-light);
    position: relative;
}
.gallery-swiper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    overflow: hidden; /* Prevents unwanted overflow */
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0; /* A light background for the slide area */
    border-radius: var(--border-radius);
    min-height: 400px; /* Give slides a minimum height */
    overflow: hidden; /* Ensures image corners are rounded */
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the slide area, might crop for uniform look */
}
img.swiper-lazy-loaded {
    /* Optional: a subtle transition once loaded */
    opacity: 1;
    transition: opacity 0.5s;
}

/* Swiper Navigation & Pagination */
.swiper-lazy-preloader {
    --swiper-preloader-color: var(--color-primary);
}
.swiper-button-next, .swiper-button-prev {
    color: var(--color-primary);
    transition: transform 0.2s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.1);
}
.swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
}

/* --- CONTACT SECTION --- */
#contact { text-align: center; background: var(--color-white); }
#contact p { font-size: 1.3rem; max-width: 700px; margin: 1rem auto; line-height: 1.8; }
#contact a { font-weight: 500; }

/* --- FOOTER --- */
footer { background-color: var(--color-dark); color: var(--color-light); padding: 3rem 2rem; text-align: center; }
.footer-content { max-width: 800px; margin: 0 auto; }
.footer-content p { margin: 0.5rem 0; opacity: 0.8; }
.footer-content a { color: var(--color-white); text-decoration: none; }
.footer-content a:hover { color: var(--color-accent); }
.footer-content ul { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; justify-content: center; gap: 1.5rem; }

/* --- CONTENT PAGE (IMPRESSUM) --- */
.content-page { background: var(--color-white); padding: 5rem 2rem; margin: 3rem auto; max-width: 800px; box-shadow: var(--shadow); border-radius: var(--border-radius); }

/* --- ANIMATIONS --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    header { padding: 1rem; }
    .logo img { height: 100px; }
    .hamburger { display: block; }
    #main-nav { display: none; position: absolute; top: 100%; right: 0; width: 100%; background-color: var(--color-white); box-shadow: var(--shadow); padding: 1rem 0; }
    #main-nav.nav-open { display: block; }
    nav ul { flex-direction: column; align-items: center; width: 100%; }
    nav ul li { margin: 1rem 0; width: 100%; text-align: center; }
    nav a { display: block; padding: 1rem; width: 100%; }
    
    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1.2rem; }
    
    .gallery-swiper {
        padding: 0;
    }
    .swiper-slide {
        min-height: 300px; /* A smaller min-height for mobile */
    }
    .swiper-slide img {
        object-fit: contain; /* Switch to contain on mobile to ensure full image is visible */
    }
    .swiper-button-next, .swiper-button-prev { display: none; }
}
