:root {
    --bg-light: #f4f7f9;
    --pastel-blue: #d1e3f0;
    --accent-blue: #7fa9c3;
    --dark-blue: #A9A9A9;
    --white: #ffffff;
    --black: #000000;
    --red: #ff0000;
    --metal: #404040;	
    --orange: #FF8C00;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Helvetica Neue', Arial, sans-serif; }

body { background-color: var(--black); color: var(--dark-blue); line-height: 1.6; }


/* Nav & Logo */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: var(--metal); position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.05);
}
.logo { font-weight: bold; font-size: 1.2rem; letter-spacing: 2px; }
.logo span { color: var(--orange); }
#logo-img { height: 120px; width: auto; transition: transform 0.3s; }
#logo-img:hover { transform: scale(1.05); }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--dark-blue); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-blue); }

/* Hero */
.hero {
    height: 15vh;
    background-color: var(--black);
    center/cover;
    display: flex; align-items: center; justify-content: center; color: white; text-align: center;
}

/* Galerie & Lazy Loading */
.container { padding: 40px 5%; min-height: 80vh; }
.masonry-gallery { column-count: 3; column-gap: 20px; }
.masonry-item { 
    display: inline-block; /* Wichtig für Spalten-Stabilität */
    width: 100%; margin-bottom: 20px; break-inside: avoid; border-radius: 12px; 
    overflow: hidden; background: var(--pastel-blue); 
}
.gallery-img { 
    width: 100%; display: block; cursor: pointer; transition: 0.4s; 
    opacity: 0; /* Für Fade-In */
}
.gallery-img[src] { opacity: 1; }
.gallery-img:hover { transform: scale(1.02); }

/* Text-Seiten Styling */
.content-wrapper {
    max-width: 800px; margin: 40px auto; background: var(--white);
    padding: 50px; border-radius: 15px; border-left: 8px solid var(--accent-blue);
}

/* Slideshow Modal */
.modal {
    display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 25, 35, 0.98); justify-content: center; align-items: center;
}
.modal-content { 
    width: 95vw; height: 90vh; object-fit: contain; 
    transition: opacity 0.5s; 
}
.close, .prev, .next { 
    position: absolute; color: var(--pastel-blue); font-size: 40px; cursor: pointer; z-index: 2100;
}
.close { top: 20px; right: 30px; }
.prev { left: 20px; } .next { right: 20px; }

/* Footer Styling */
.main-footer {
    background-color: var(--black);
    padding: 60px 5% 20px;
    margin-top: 50px;
    border-top: 1px solid var(--metal);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-section h3 span {
    color: var(--pastel-red);
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #777;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--pastel-red);
}

/* Responsive */
@media (max-width: 900px) { .masonry-gallery { column-count: 2; } }
@media (max-width: 600px) {
    .masonry-gallery { column-count: 1; }
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 65px; left: 0; background: white; padding: 20px; text-align: center; }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; cursor: pointer; }
    .bar { display: block; width: 25px; height: 3px; margin: 5px; background: var(--dark-blue); }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
}
