/* --- Basisfarben und Variablen wie bei dir --- */
:root {
    --bg-primary: #22030a;
    --bg-secondary: #0f0104;
    --text-primary: #f4f4f9;
    --text-secondary: #b8b8b8;
    --accent-primary: #f4a512;
    --accent-hover: #f8dc5c;
    --accent-secondary: #FF001E;
    --border-color: #0e0003;
    --main-header-col: rgba(13, 1, 3, 0.9);
    --background-radient1: #1c0308;
    --background-radient2: #0e0003;
    --header-height: 70px;
    --font-primary: 'Poppins', sans-serif;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-weight: 600;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3rem;}
h3 { font-size: 1.5rem; margin-top: 2rem;}
h4 { font-size: 1.2rem; }


a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--background-radient1), var(--background-radient2));
    color: var(--text-primary);
    overflow-x: hidden;
}

/* --- Header --- */
#main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 30px;
    background-color: var(--main-header-col);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 90%;
    margin: 0 auto;
}

#lang-toggle {
    background: none;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#lang-toggle:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
}

/* --- Projekt-Layout --- */
.project-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* --- Linke Sidebar --- */
.project-sidebar {
    width: 400px;
    background-color: var(--bg-primary);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    z-index: 10000; /* Sehr hoch, damit es den Header überdeckt */
}

.project-sidebar p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.project-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
}

.project-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.project-details {
    width: 100%;
    margin-bottom: 30px;
}

.project-details h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 100;
    color: var(--accent-secondary);
}

.project-details li {
    margin-left: 1rem;
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- Zurück-Button --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* --- Rechter Inhalt --- */
.project-content {
    margin-left: 400px;
    width: calc(100% - 400px);
    padding: 60px 40px;
    overflow-y: auto;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper p {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.content-image,
.content-video {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

/* --- Footer --- 
footer {
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}*/

/* --- Footer --- */
footer {
    background-color: var(--bg-secondary);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0 20px; /* Remove section padding */
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-right a {
    margin-left: 15px;
    color: var(--text-secondary);
}
.footer-right a:hover {
    color: var(--accent-primary);
}

/* --- Responsive: MOBILE unter 768px --- */
@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    #lang-toggle { margin-left: auto; } /* Push toggle right if nav hidden */

    .project-layout {
        flex-direction: column;
    }

    .project-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .project-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        overflow: visible;
    }

    .project-title {
        font-size: 1.8rem;
        margin-top: 20px;
    }

    .btn {
        margin-top: 20px;
    }
}

/*Videos YouTube nebeneinander*/
.video-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.video-wrapper {
    width: 48%;
}

.video-space {
    width: 3%;
}

.video {
    position: relative;
    height: 0;
    padding-bottom: 120%;
}

.video iframe {
    border: none;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 600px) {
    .video-wrapper, .video-space {
        width: 100%;
    }
}

/*Slideshow*/

            /* Slideshow container */
            .slideshow-container {
                max-width: 1000px;
                position: relative;
                margin: auto;
                text-align: center;
            }
            
            /* Hide the images by default */
            .mySlides {
                display: none;
            }
            
            /* Next & previous buttons */
            .prev, .next {
                cursor: pointer;
                position: absolute;
                top: 50%;
                width: auto;
                margin-top: -22px;
                padding: 16px;
                color: var(--button);
                font-weight: bold;
                font-size: 25px;
                transition: 0.4s ease;
                border-radius: 0 3px 3px 0;
                user-select: none;
            }
            
            /* Position the "next button" to the right */
            .next {
                right: 0;
                border-radius: 3px 0 0 3px;
            }

            .prev {
                left: 0;
                border-radius: 3px 0 0 3px;
            }
            
            /* On hover, add a black background color with a little bit see-through */
            .prev:hover, .next:hover {
                background-color: rgba(11, 0, 0, 0.8);
            }
            
            /* Caption text */
            .text {
                color: #f2f2f2;
                font-size: 15px;
                padding: 8px 12px;
                position: absolute;
                bottom: 8px;
                width: 100%;
                text-align: center;
            }

            .text_dark {
                color: #120000;
                font-size: 15px;
                padding: 8px 12px;
                position: absolute;
                bottom: 8px;
                width: 100%;
                text-align: center;
            }
            
            /* Number text (1/3 etc) */
            .numbertext {
                color: #f2f2f2;
                font-size: 12px;
                padding: 8px 12px;
                position: absolute;
                top: 0;
            }
            
            /* The dots/bullets/indicators */
            .dot {
                cursor: pointer;
                height: 10px;
                width: 10px;
                margin: 0 2px;
                background-color: var(--accent-primary);
                border-radius: 50%;
                display: inline-block;
                transition: var(--accent-hover);
            }
            
            .active, .dot:hover {
                background-color: var(--accent-hover);
            }
            
            /* Fading animation */
            .fade {
                animation-name: fade;
                animation-duration: 5s;
            }
            
            @keyframes fade {
                from {opacity: .6}
                to {opacity: 1}
            }
