:root {
    --primary: #1a6399;   
    --secondary: #4d904f; 
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* --- Top Bar (mit Icons) --- */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
}
.top-bar-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.top-bar-icons a {
    color: var(--white);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}
.top-bar-icons a:hover {
    transform: scale(1.15);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    /* Der Trick: Zentriert den Header-Inhalt auf max. 1200px Breite,
       sodass das Logo bündig mit dem Text der unteren Sektionen abschließt.
       Auf kleinen Bildschirmen bleibt ein Mindestabstand von 30px. */
    padding: 20px max(30px, calc((100% - 1200px) / 2));
    display: flex;
    justify-content: space-between; /* Logo links, Navigation rechts */
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 10px max(30px, calc((100% - 1200px) / 2));
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

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

.logo img {
    height: 100px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

header.scrolled .logo img {
    height: 55px;
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: var(--bg-light);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--white);
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* --- Hero Section (Volle Breite) --- */
.hero {
    box-sizing: border-box;
    width: 100%;
    min-height: clamp(32rem, 70vh, 42rem);
    padding: clamp(2rem, 6vw, 5rem);

    display: flex;
    align-items: center;
    justify-content: flex-start;

    color: #fff;
    background:
        linear-gradient(
            90deg,
            rgba(12, 38, 57, 0.72) 0%,
            rgba(12, 38, 57, 0.48) 32%,
            rgba(12, 38, 57, 0.08) 58%,
            transparent 72%
        ),
        url("hero-team.jpg") center / cover no-repeat;
}

.hero-content {
    width: min(48%, 620px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-content h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4.2vw, 2.8rem);
    line-height: 1.08;
}

.hero-content p {
    margin: 0 0 1.5rem;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    border-radius: 0.4rem;
    background: #4b914e;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}


.btn:hover { background-color: #3b703d; }

/* --- Layout Wrapper für die restlichen Sektionen --- */
.content-section { padding: 90px 20px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { color: var(--primary); font-size: 2.5rem; margin-bottom: 15px; }
.bg-light { background-color: var(--bg-light); width: 100%; }

/* --- Services (Mit integrierten Bildern daneben/darüber) --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 Spalte, Karte ist gestapelt */
    gap: 40px;
}
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Desktop: 2 Spalten für die breiten Karten */
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden; /* Wichtig, damit Bilder sich in die runden Ecken fügen */
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
@media (min-width: 600px) {
    .service-card {
        flex-direction: row; /* Tablet/Desktop: Bild links, Text rechts */
    }
}

.service-image {
    flex: 0 0 40%; /* Bild nimmt 45% der Kartenbreite ein */
    min-height: 160px;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 20px 25px; /* Innenabstände um fast die Hälfte reduziert */
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Der grüne Strich oben rechts wird an das neue Padding angepasst */
.service-content::after {
    content: ''; position: absolute; top: 20px; right: 25px;
    width: 30px; height: 3px; background-color: var(--secondary); border-radius: 2px;
}

.service-icon {
    width: 35px; /* Kleineres Icon (vorher 45px) */
    height: 35px;
    color: var(--primary);
    margin-bottom: 10px; /* Weniger Abstand nach unten */
}

.service-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }

.service-content h3 {
    color: var(--text-dark);
    font-size: 1.15rem; /* Schriftgröße leicht reduziert */
    margin-bottom: 8px; /* Abstand reduziert */
}

.service-content p {
    color: var(--text-light);
    font-size: 0.9rem; /* Text leicht verkleinert für bessere Proportionen */
    line-height: 1.5;
    margin: 0;
}

/* --- Galerie (Klickbares Grid & Mehr Anzeigen) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}
.gallery-item.hidden-item {
    display: none; /* Wird vom JS gesteuert */
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Lightbox --- */
.lightbox {
    display: none; position: fixed; z-index: 1000; padding-top: 60px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.lightbox-content {
    margin: auto; display: block; max-width: 90%; max-height: 80vh;
    border-radius: 4px; animation: zoom 0.3s;
}
@keyframes zoom { from {transform:scale(0.9)} to {transform:scale(1)} }
.close-lightbox {
    position: absolute; top: 20px; right: 35px; color: #fff;
    font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer;
}
.close-lightbox:hover { color: #bbb; }
.lightbox-prev, .lightbox-next {
    cursor: pointer; position: absolute; top: 50%; width: auto;
    padding: 16px; margin-top: -50px; color: white; font-weight: bold;
    font-size: 24px; transition: 0.3s; border-radius: 0 3px 3px 0;
    user-select: none; background: rgba(0,0,0,0.5); border: none;
}
.lightbox-prev { left: 20px; border-radius: 3px 0 0 3px; }
.lightbox-next { right: 20px; border-radius: 0 3px 3px 0; }
.lightbox-prev:hover, .lightbox-next:hover { background-color: rgba(0,0,0,0.8); }

/* --- Kontakt Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.contact-card-simple {
    background: var(--white); padding: 30px; border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.contact-card-simple h3 {
    color: var(--primary); margin-bottom: 15px; border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px; display: inline-block;
}
.contact-links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.contact-link {
    display: inline-block; padding: 10px 15px; border-radius: 6px;
    text-decoration: none; font-weight: bold; font-size: 0.95rem; text-align: center;
}
.contact-link.phone { background-color: var(--bg-light); color: var(--primary); border: 1px solid var(--primary); }
.contact-link.whatsapp { background-color: #25D366; color: white; }
.contact-link:hover { opacity: 0.9; }

/* --- Footer --- */
footer { background-color: var(--primary); color: var(--white); text-align: center; padding: 30px 20px; }
footer a { color: var(--white); margin: 0 10px; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- Responsive Anpassungen --- */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        padding: 15px;
    }
    header.scrolled { padding: 10px 15px; }
    nav { margin-top: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    nav a { margin: 0; padding: 8px 15px; }
    
    .hero {
        min-height: 77svh;
        padding: 2rem 1.25rem;

        align-items: flex-end;

        background:
            linear-gradient(
                to top,
                rgba(12, 30, 43, 0.86) 0%,
                rgba(12, 30, 43, 0.58) 32%,
                rgba(12, 30, 43, 0.08) 68%,
                transparent 82%
            ),
            url("hero-team.jpg") 84% center / cover no-repeat;
    }

    .hero-content {
        width: 100%;
        max-width: 520px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
}
