﻿/* Importiere eine moderne, klare Schrift */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Sanfter Ladeeffekt */
#content {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

    #content.visible {
        opacity: 1;
    }


body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
}

a {
    color: #58a6ff;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Header */
.main-header {
    background-color: #1f1f1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .main-header .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.5em;
        font-weight: 600;
        color: #ffffff;
        
    }

        .main-header .logo img {
            height: 40px;
        }

.nav-links {
    display: flex;
    gap: 20px;
   
}

    .nav-links a {
        color: #ccc;
        font-weight: 500;
        transition: color 0.2s;
    }

        .nav-links a:hover {
            color: #ffffff;
        }

.lang-select {
    display: flex;
    gap: 10px;
}

    .lang-select img {
        width: 24px;
        height: 24px;
        cursor: pointer;
        opacity: 1;
        transition: opacity 0.2s ease;
    }


        .lang-select img:hover {
            opacity: 1;
        }

/* Seiteninhalt */
section {
    padding: 40px 20px;
    max-width: 960px;
    margin: 0 auto;
}

.video-text-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 80vh; /* gesamte Fensterhöhe */
    padding: 20px;
    box-sizing: border-box;
    gap: 40px;
}

/* Container für das Video */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Höhe auf 100% der Ansichtshöhe setzen */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Überlauf verhindern, sodass keine Scrollbars angezeigt werden */
}

    /* Das Video im Container */
    .video-container video {
        height: auto; /* Höhe auf 100% des Containers setzen */
        width: auto; /* Breite automatisch, um das Seitenverhältnis zu erhalten */
        max-width: 100%; /* Stelle sicher, dass das Video nicht breiter als der Container wird */
        object-fit: cover; /* Das Video wird so zugeschnitten, dass der gesamte Bildschirm ausgefüllt wird */
    }

.text-container {
    max-width: 50vw;
    font-family: 'Segoe UI', sans-serif;
    color: #f0f0f0;
    margin-left: 20px; /* Abstand vom Video nach links */
}

    .text-container h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .text-container p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

/* Formular-Styling */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    gap: 15px;
    margin-top: 20px;
}

input[type="password"],
button {
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
}

input[type="password"] {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
}

button {
    background-color: #58a6ff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

    button:hover {
        background-color: #3990e6;
    }

/* Fehlermeldung */
.error-message {
    color: #ff6b6b;
    font-weight: 500;
}

/* Ordnerübersicht */
.folder-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.folder {
    text-align: center;
}

    .folder img {
        width: 80px;
        height: auto;
        cursor: pointer;
        filter: brightness(0.9);
        transition: transform 0.2s;
    }

        .folder img:hover {
            transform: scale(1.05);
        }

/* Mobile Ansicht */
@media (max-width: 768px) {
    #home {
        padding-top: 500px; /* Etwas mehr Platz auf kleinen Geräten */
    }
    body {
        font-size: 16px;
        padding: 10px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }

        .nav-buttons button {
            width: 100%;
            margin-bottom: 5px;
        }

    .lang-select {
        margin-top: 10px;
        justify-content: center;
    }

    .folder-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .folder {
        margin-bottom: 15px;
    }

    #home {
        flex-direction: column;
        align-items: center;
    }

        #home video {
            width: 100%;
            height: auto;
            max-height: 50vh;
        }

        #home .text-container {
            margin-left: 0;
            margin-top: 15px;
            text-align: center;
        }
}