﻿/* 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;
        }
}
/* Tok
en Page Styles */
.token-section {
    padding: 60px 20px;
    min-height: 80vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #58a6ff, #4299e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Processing Card */
.processing-card {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.processing-icon {
    margin-bottom: 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #4a5568;
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-title {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.processing-message {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.refresh-hint {
    color: #a0aec0;
    font-size: 1rem;
    font-style: italic;
}

.ready-message {
    text-align: center;
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.video-card {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4a5568;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-button {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a202c;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: white;
}

.video-info {
    padding: 30px;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
}

.video-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    min-width: 140px;
    justify-content: center;
}

.btn-play {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.btn-play:hover {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, #58a6ff, #4299e1);
    color: white;
}

.btn-download:hover {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 166, 255, 0.4);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .processing-card {
        padding: 40px 30px;
        margin: 30px 20px;
    }
    
    .video-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .token-section {
        padding: 40px 15px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .video-thumbnail img {
        height: 200px;
    }
    
    .video-info {
        padding: 20px;
    }
}