body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
}

/* Hintergrundbild mit Transparenz (Optimiert) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Bilder/hintergrund-opt.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}

header {
    background: #222;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

/* Burger Menu Button (Standard versteckt) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: #00ff00;
    border-radius: 2px;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #00ff00;
}

section {
    padding: 2rem 2rem; /* Halbiert (war 4rem) */
    max-width: 1000px;
    margin: auto;
}

.hero {
    text-align: center;
    padding: 4rem 2rem; /* Halbiert (war 8rem) */
}

/* Galerie mit Buttons */
.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-row {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    margin-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory; /* Bilder flüssig anspringen */
}

.gallery-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.scroll-btn {
    background: rgba(0, 255, 0, 0.2);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    margin: 0 10px;
    border-radius: 5px;
}

.scroll-btn:hover {
    background: rgba(0, 255, 0, 0.4);
}

.gallery-item {
    flex: 0 0 auto;
    cursor: pointer;
    scroll-snap-align: center; /* Bild zentrieren beim Snappen */
}

.gallery-item img {
    height: 250px;
    width: auto;
    border: 2px solid #333;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    border-color: #00ff00;
    transform: scale(1.02);
}

.link-grid {
    display: grid;
    gap: 15px;
}

.link-grid a {
    display: block;
    background: #333;
    padding: 1rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    border-left: 5px solid #00ff00;
}

.link-grid a:hover {
    background: #444;
}

.kontakt-text {
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 2rem;
    color: #ccc;
}

.kontakt-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.kontakt-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #282828;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.kontakt-btn svg {
    stroke: #00ff00;
}

.kontakt-btn:hover {
    background: #333;
    border-color: #00ff00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
}

/* Media Queries für mobile Geräte (Tablets & Smartphones) */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1000;
        margin: 0;
        padding: 0;
        display: flex; /* Immer flex, Positionierung über right */
    }

    nav ul.show {
        right: 0;
    }

    .burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    nav ul li a {
        font-size: 1.2rem;
    }

    .scroll-btn {
        display: none;
    }

    section {
        padding: 1rem 1rem; /* Halbiert (war 2rem) */
    }

    .hero {
        padding: 2rem 1rem; /* Halbiert (war 4rem) */
    }

    .gallery-item img {
        height: 200px; /* Leicht kleinere Höhe für Mobilgeräte */
    }
}

/* Lightbox */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #111;
    color: #888;
    margin-top: 3rem;
    border-top: 1px solid #333;
}

footer a {
    color: #00ff00;
    text-decoration: none;
    margin: 0 5px;
}

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

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
}
