/* ------------------------------ */
/* Grundlegendes Styling */
/* ------------------------------ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    transition: background 0.3s ease;
}

/* ------------------------------ */
/* Navigation */
/* ------------------------------ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a4b2f;
    padding: 10px 20px;
    color: white;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: slideDown 0.6s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #f0c040;
    transform: scale(1.1);
}

nav ul li a.active {
    text-decoration: underline;
}

/* Hamburger-Icon für mobile Navigation */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #f0c040;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        background: #2a4b2f;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    nav ul.open {
        display: flex;
        animation: fadeIn 0.5s ease;
    }

    .menu-toggle {
        display: block;
    }
}

/* ------------------------------ */
/* Hero Section */
/* ------------------------------ */
.hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 8px black;
    animation: fadeIn 1s ease;
}

.hero.small {
    height: 180px;
}

/* ------------------------------ */
/* Layout & Container */
/* ------------------------------ */
.container {
    width: 80%;
    margin: auto;
    padding: 20px 0;
    padding-bottom: 70px; /* Platz für Footer */
    animation: fadeIn 1s ease;
}

/* ------------------------------ */
/* Bilder & Grid */
/* ------------------------------ */
.full-img {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.full-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* ------------------------------ */
/* Buttons */
/* ------------------------------ */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #2a4b2f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background: #f0c040;
    color: #2a4b2f;
    transform: scale(1.05);
}

.download-container {
    text-align: center;
    margin-top: 15px;
}


/* ------------------------------ */
/* Projekte / Karten */
/* ------------------------------ */
.project {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ------------------------------ */
/* Kontaktformular */
/* ------------------------------ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2a4b2f;
    box-shadow: 0 0 5px rgba(42,75,47,0.5);
}

.contact-form button {
    background: #2a4b2f;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background: #f0c040;
    color: #2a4b2f;
    transform: scale(1.05);
}

/* ------------------------------ */
/* Footer - fixed unten */
/* ------------------------------ */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2a4b2f;
    color: white;
    text-align: center;
    padding: 15px 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: slideUp 0.6s ease;
}

/* ------------------------------ */
/* Animations */
/* ------------------------------ */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ------------------------------ */
/* Animierte Mobile Navigation */
/* ------------------------------ */

/* Menü initial außerhalb des Bildschirms links */
nav ul {
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

/* Menü sichtbar */
nav ul.open {
    transform: translateX(0);
}

/* Hintergrund-Overlay beim offenen Menü */
body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 900;
}
