/* Allgemeine Stile & Schriftarten */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #121212;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* Header & Navigation */
header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem 5%;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #aaa;
}

/* Standardmäßig versteckt (Desktop) */
.nav-toggle {
    display: none;
}

/* --- STARTSEITE: HERO & KARUSSELL --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-control {
    display: none;
}

.hero-text {
    position: relative;
    z-index: 5;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.2rem;
}

/* --- ÜBER MICH & EQUIPMENT SEITE --- */
.about-section {
    padding: 8rem 5% 4rem;  
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.equipment-section {
    padding: 0 5% 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.equipment-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
}

.equipment-text ul {
    list-style: none;
    padding-left: 0;
}

.equipment-text li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.portrait-img {
    border-radius: 50%;
    max-width: 300px;
    object-fit: cover;
}

.equipment-img {
    border-radius: 8px;
    max-width: 300px;
    object-fit: cover;
}

/* --- PORTFOLIO SEITE --- */
.portfolio-gallery {
    padding: 8rem 5%;
    text-align: center;
}

.portfolio-gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-button {
    padding: 0.75rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    color: #f0f0f0;
    border: 2px solid #555;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: #333;
    border-color: #888;
}

.category-button.active.category-street {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.category-button.active.category-wildlife {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- LIGHTBOX STILE --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 4000; /* WICHTIG: Höher als Projekt-Popup */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 4001;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 0px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 4001;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 50px;
}

/* --- IMPRESSUM SEITE --- */
.impressum-page {
    padding: 8rem 5% 4rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.impressum-page h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.impressum-page h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #aaa;
}

.impressum-warnung {
    background-color: #493300;
    border: 1px solid #ffc107;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.impressum-warnung p {
    margin: 0;
}

/* --- PROJEKTE SEITE --- */
.projects-page {
    padding: 8rem 5% 4rem;
    text-align: center;
}

.projects-page h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 1rem 1.5rem 0.5rem;
    color: #f0f0f0;
}

.project-card p {
    font-size: 1rem;
    color: #ccc;
    padding: 0 1.5rem 1.5rem;
}

/* Projekt Pop-up Stile */
.project-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.project-popup-overlay.active {
    display: flex;
}

.project-popup-content {
    background-color: #1a1a1a;
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    animation: slideIn 0.3s ease-out;
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 3001;
}

.popup-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.popup-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
}

.popup-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
}

.popup-body h1, .popup-body h2, .popup-body h3 {
    color: #f0f0f0;
    margin-top: 1.5rem;
}
.popup-body p {
    font-size: 1.1rem;
}

.popup-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.popup-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.popup-gallery img:hover {
    transform: scale(1.03);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* --- FOOTER STILE --- */
footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    margin-top: auto;
}

footer a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

footer a:hover {
    color: #aaa;
}

/* --- RESPONSIVE DESIGN & BURGER-MENÜ --- */
@media (max-width: 768px) {
    nav .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1001;
    }

    nav .nav-links li a {
        font-size: 2rem;
    }

    body.nav-open .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: block;
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 2em;
        height: 3px;
        background: #f0f0f0;
        transition: all 0.2s ease-in-out;
    }

    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #f0f0f0;
        transition: all 0.2s ease-in-out;
    }

    .hamburger::before { top: -10px; }
    .hamburger::after { bottom: -10px; }

    body.nav-open .hamburger { background: transparent; }
    body.nav-open .hamburger::before { transform: rotate(45deg) translate(7px, 7px); }
    body.nav-open .hamburger::after { transform: rotate(-45deg) translate(7px, -7px); }

    h1 { font-size: 2.5rem; }
    
    .about-content, .equipment-content {
        flex-direction: column;
        text-align: center;
    }

    .equipment-content { flex-direction: column-reverse; }
    
    .portrait-img, .equipment-img { max-width: 200px; }

    .projects-grid { grid-template-columns: 1fr; }

    .project-popup-content { padding: 1.5rem; }

    .popup-title { font-size: 2rem; }
}