* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ================= HEADER ================= */

header {
    position: relative;
    padding: 120px 20px 90px 20px;
    text-align: center;
    color: white;

    background-image: url("images/header.jpg");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* dunkler Overlay */
header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.65)
    );
}

header .hero-content {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 2.6rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

header p {
    margin-top: 12px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ================= NAVIGATION ================= */

nav {
    margin-top: 40px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

/* ================= SECTIONS ================= */

.section {
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 20px;
}

.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    height: 280px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 35px 80px rgba(0,0,0,0.25);
}
.gallery img {
    position: relative;
}

.gallery img::after {
    content: "";
}


/* ================= FOOTER ================= */

footer {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    margin-top: 120px;

    background-image: url("images/header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

footer * {
    position: relative;
    z-index: 2;
}
/* ================= LIGHTBOX ================= */

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

#lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
/* ================= ABOUT WOOD IMAGE ================= */

.about-wood-image {
    margin: 40px 0 60px 0;
    display: flex;
    justify-content: center;
}

.about-wood-image img {
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-wood-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 40px 100px rgba(0,0,0,0.25);
}

/* ================= SYSTEMARCHITEKTUR IMAGE ================= */

.systemarchitektur {
    margin: 40px 0 60px 0;
    display: flex;
    justify-content: center;
}

.systemarchitektur img {
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.systemarchitektur img:hover {
    transform: scale(1.02);
    box-shadow: 0 40px 100px rgba(0,0,0,0.25);
}
.mail-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    background: #0f4c81;
    color: white;
    transition: 0.3s ease;
}

.mail-link:hover {
    background: #1b6ca8;
}
/* ================= CONTACT BUTTON ================= */

.contact-button {
    display: inline-block;
    margin-top: 35px;
    padding: 14px 34px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #0f4c81, #1b6ca8);
    color: white;
    box-shadow: 0 15px 35px rgba(0, 80, 160, 0.25);
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 120, 255, 0.35);
}
/* ================= FADE IN EFFECT ================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    header {
        background-position: center 20%;
        padding: 100px 20px 70px 20px;
    }
}
