/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background: #0f2f2b;
    padding: 15px 40px;
    color: white;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Logo und Text standardmäßig (Desktop) ausblenden */
.logo-img,
.mobile-logo-text {
    display: none !important;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
}

/* HERO (Desktop) */
.hero {
    height: 500px;
    background: url("logo_1.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-content {
    text-align: right;
    color: white;
    margin-right: 8%;
    max-width: 500px;
}

.claim {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 500;
}

.sub {
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #fff;
    text-decoration: none;
    color: #fff;
}

/* SECTIONS */
.section-light {
    background: #eef3f2;
    padding: 100px 0;
}

.section-white {
    background: #ffffff;
    padding: 100px 0;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    display: block;
    border-radius: 6px;
}

/* LEISTUNGEN */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.card {
    background: #f4f7f6;
    color: #1a1a1a;
    padding: 25px;
    border-radius: 4px;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    background: #22625a;
    color: #ffffff;
}

/* REFERENZEN */
.ref-item {
    margin-bottom: 70px;
}

.ref-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.ref-images img {
    width: 100%;
    height: auto;
    display: block;
}

.ref-images img:last-child {
    background: #ffffff;
    padding: 8px;
}

.ref-text {
    max-width: 600px;
}

.ref-text h3 {
    margin-bottom: 10px;
}

.ref-text p {
    margin: 4px 0;
    color: #444;
}

.divider {
    height: 50px;
    background: linear-gradient(to bottom, #eef3f2 0%, #ffffff 100%);
}

/* CONTACT */
.contact-section {
    background: #eef3f2;
    padding: 40px 0;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-box h2 {
    margin-bottom: 15px;
}

.contact-intro {
    margin-bottom: 20px;
    color: #444;
}

.contact-box p {
    margin: 6px 0;
}

/* FOOTER */
footer {
    padding: 20px;
    text-align: center;
    background: #0b221f;
    color: white;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:visited {
    color: #ffffff;
}

footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* MOBILE (bis 768px) */
@media (max-width: 768px) {
    /* Hero ausblenden */
    .hero {
        display: none !important;
    }

    /* Logo und Text einblenden */
    .logo-img,
    .mobile-logo-text {
        display: block !important;
    }

    /* Navigation über dem Logo, rechtsbündig */
    .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    nav {
        order: 1;
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    /* Logo-Bereich: volle Breite, negativer Rand gleicht Header-Padding aus */
    .logo {
        order: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: auto;
        margin: 0 -20px; /* links und rechts bis zum Bildschirmrand */
        padding: 0;
    }

    /* Logo-Bild: volle Breite, proportionale Höhe */
    .logo-img {
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0;
        padding: 0;
    }

    /* Text ohne Rand, aber mit etwas innerem Abstand */
    .mobile-logo-text {
        margin: 0;
        padding: 0 20px;
        text-align: left;
    }

    /* Navigationslinks */
    nav a {
        margin-left: 0;
        margin-right: 15px;
    }

    /* Header-Padding bleibt, verhindert horizontalen Scrollbalken */
    .header {
        padding: 12px 20px;
        overflow-x: hidden;
    }

    /* Weitere mobile Anpassungen */
    .about-grid,
    .grid-4,
    .ref-images {
        grid-template-columns: 1fr;
    }
}