/* --- CSS-Variablen & Basis-Stile --- */
:root {
    --primary-dark-blue: #002366;
    --accent-red: #FF0000;
    --accent-blue: #0047AB;
    --neutral-light-gray: #F4F4F7;
    --dark-text-color: #333333;
    --white: #FFFFFF;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
    --nav-height: 90px; /* Increased for larger logo */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } /* Keep smooth for in-page links if any, like the CTA */
body { 
    font-family: var(--body-font); 
    color: var(--dark-text-color); 
    line-height: 1.7; 
    background-color: var(--white);
    padding-top: var(--nav-height); /* Prevent content from hiding behind fixed header */
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 700; color: var(--primary-dark-blue); }
section { padding: 100px 0; overflow: hidden; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; }

/* --- Header & Navigation --- */
.header { 
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    height: var(--nav-height); 
    padding: 0 5%; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
}
.header .logo-img { height: 60px; /* Increased logo size */ }
.header .nav-links a { 
    font-family: var(--heading-font); 
    text-decoration: none; 
    margin-left: 35px; 
    color: var(--dark-text-color);
    transition: color 0.3s;
}
.header .nav-links a:hover {
    color: var(--accent-red);
}

/* --- Hamburger Menu --- */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5em;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    background-color: var(--primary-dark-blue);
    width: 2em;
    height: 3px;
    border-radius: 1px;
    transition: transform 250ms ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    background-color: var(--primary-dark-blue);
    width: 2em;
    height: 3px;
    border-radius: 1px;
    transition: transform 250ms ease-in-out, opacity 250ms linear;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* --- Hero-Sektion (Home Page) --- */
#home { 
    min-height: calc(100vh - var(--nav-height)); 
    display: flex; 
    flex-direction: column; /* Stack logo and text vertically */
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white); 
    background: linear-gradient(rgba(0, 35, 102, 0.85), rgba(0, 35, 102, 0.9)), url(https://images.unsplash.com/photo-1604342409943-34e8a1516a13?q=80&w=2574&auto=format&fit=crop) no-repeat center center/cover;
    padding-top: 0; /* Override section padding */
    padding-bottom: 0; /* Override section padding */
}
/* Big logo on top of headline */
.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 30px;
    /* For dark backgrounds, a white logo version is recommended. 
       This filter is a fallback if you only have a dark logo. */
    filter: brightness(0) invert(1);
}
#home h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); color: var(--white); margin-bottom: 20px; }
#home p { font-size: clamp(1.1rem, 2.5vw, 1.5rem); max-width: 800px; margin: 0 auto 40px auto; }
.cta-button { display: inline-block; background-color: var(--accent-red); color: var(--white); padding: 18px 40px; text-decoration: none; font-family: var(--heading-font); border-radius: 50px; transition: 0.3s; }
.cta-button:hover { background-color: #e00000; transform: translateY(-5px); }

/* --- Case Study Sektion --- */
#case-studies { background-color: var(--neutral-light-gray); }
.case-study { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.case-study:last-child { margin-bottom: 0; }
.case-study.image-right .text-container { order: 1; }
.case-study.image-right .image-container { order: 2; }
.case-study h3 { font-size: 2.2rem; margin-bottom: 15px; }
.case-study p { font-size: 1.1rem; line-height: 1.8; }

/* --- Verbesserte Bildergalerie --- */
.image-gallery-grid {
    display: grid;
    gap: 15px;
    height: 450px; /* Fixed height for consistent gallery appearance on desktop */
    /* Layout: Große Bild links, zwei kleine rechts */
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-fit: cover ensures images fill their container, cropping if necessary, to avoid empty space or distortion. */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}
.gallery-img-main {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
.gallery-img-sub1 {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}
.gallery-img-sub2 {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}
/* Layout-Anpassung für ".image-right" */
.case-study.image-right .image-gallery-grid {
    grid-template-columns: 1fr 2fr; /* Spalten umkehren */
}
.case-study.image-right .gallery-img-main {
    grid-column: 2 / 3; /* Hauptbild nach rechts */
}
.case-study.image-right .gallery-img-sub1,
.case-study.image-right .gallery-img-sub2 {
    grid-column: 1 / 2; /* Nebenbilder nach links */
}

/* --- Subpage Specific Styles --- */
.page-header {
    background-color: var(--primary-dark-blue);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}
.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
}
.content-section {
    padding: 100px 0;
}
.content-section h2 {
    margin-bottom: 20px;
}
.content-section ul {
    list-style-position: inside;
    padding-left: 20px;
}
.content-section li {
    margin-bottom: 10px;
}

/* --- Große Social Media Icons auf der Kontaktseite --- */
.large-social-icons {
    display: flex;
    justify-content: center;
    gap: 40px; /* Größerer Abstand zwischen den Icons */
    margin-top: 40px;
    margin-bottom: 60px; /* Abstand zum nächsten Abschnitt */
}
.large-social-icons a {
    color: var(--primary-dark-blue); /* Standardfarbe */
    font-size: 6rem; /* Significantly larger icons */
    transition: color 0.3s, transform 0.3s;
}
.large-social-icons a:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}
 
/* --- Kontakt Formular --- */
.contact-form {
    max-width: 450px; /* Kleineres Formular */
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: var(--heading-font);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: var(--body-font);
    font-size: 1rem;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.submit-btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    font-family: var(--heading-font);
    border-radius: 50px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.submit-btn:hover {
    background-color: #e00000;
    transform: translateY(-3px);
}


/* --- Footer --- */
.footer { background-color: var(--primary-dark-blue); color: var(--white); padding: 60px 5%; text-align: center; }
.footer .footer-logo { height: 50px; }
.footer .social-icons { display: flex; justify-content: center; gap: 20px; margin: 25px 0; }
.footer .social-icons a { color: var(--white); font-size: 1.8rem; transition: color 0.3s, transform 0.3s; }
.footer .social-icons a:hover {
    color: var(--accent-red);
    transform: translateY(-3px);
}

/* --- Responsive Anpassungen --- */
@media (max-width: 992px) {
    .case-study { grid-template-columns: 1fr; gap: 40px; }
    .case-study .text-container, .case-study.image-right .text-container { order: 2; text-align: center; }
    .case-study .image-container, .case-study.image-right .image-container { order: 1; }
    .page-header h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    /* --- Mobile Navigation Styles --- */
    .nav-toggle {
        display: block;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
    }

    .header .nav-links {
        position: fixed;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        inset: 0 0 0 30%; /* from top 0, right 0, bottom 0, left 30% */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }
    
    .header .nav-links a {
        margin-left: 0;
        font-size: 1.5rem;
    }

    .nav-open .nav-links {
        transform: translateX(0);
    }

    #home { min-height: calc(100vh - var(--nav-height)); }
    .hero-logo { height: 90px; }
    #home h1 { font-size: 2rem; }
    #home p { font-size: 1rem; }

    .large-social-icons {
        font-size: 4rem; /* Smaller icons on mobile */
        gap: 40px;
    }
    
    /* Responsive gallery: stack all images */
    .image-gallery-grid { /* This single selector handles both left and right aligned galleries on mobile */
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
     .gallery-img { /* This targets all gallery images, resetting their grid position for a simple stack */
        grid-column: auto;
        grid-row: auto;
        height: 250px;
    }
    .case-study h3 { font-size: 1.8rem; }
    .page-header h1 { font-size: 2.2rem; }

    /* --- Hamburger Animation on Open --- */
    .nav-open .hamburger {
        transform: rotate(0.625turn);
    }

    .nav-open .hamburger::before {
        transform: rotate(90deg) translateX(-8px);
    }

    .nav-open .hamburger::after {
        opacity: 0;
    }
    
    .nav-open body {
        overflow: hidden;
    }
}