* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-color: #000;
}

/* Hintergrund-Video mit Neigung & Blur */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-video {
    width: 180vw;
    height: 180vh;
    position: absolute;
    top: -40vh;
    left: -40vw;
    object-fit: cover;
    transform: rotate(-45deg);
    filter: blur(8px) brightness(0.6);
}

/* Header / Navigationsleiste */
.navbar {
    background-color: #222222;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn.open .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-btn.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-btn.open .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    user-select: none;
    cursor: pointer;
}

.nav-center {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
}

.search-input::placeholder {
    color: #bbb;
}

/* Lautstärke-Steuerung */
.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.volume-slider {
    width: 70px;
    height: 4px;
    accent-color: white;
    cursor: pointer;
}

.icon-link, .profile-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 60px);
    background-color: #222222;
    transition: left 0.3s ease;
    z-index: 999;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 20px;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.sidebar ul li a:hover {
    background-color: #333;
}

/* Hauptbereich & Inhalt */
.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 250px;
    margin-top: 100px;
}

.content h1 {
    font-size: 2.2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Uhr & Datum in der oberen Hälfte */
.custom-clock-container {
    position: absolute;
    top: calc(25vh + 30px);
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.clock-date {
    font-size: 1.3rem;
    color: #ffcc00;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.clock-time {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
}

/* Sprachauswahl frei im gelben Bereich positionieren */
.language-picker-container {
    position: absolute;
    top: calc(75vh + 15px);
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(34, 34, 34, 0.75);
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.language-picker-container label {
    font-size: 0.9rem;
    color: #ddd;
}

.language-dropdown {
    background-color: #333;
    color: white;
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.language-dropdown option:disabled {
    color: #777;
    background-color: #222;
}

/* Footer ganz unten */
footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.6);
}

/* ==========================================
   PASSWORT OVERLAY STYLES
   ========================================== */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lock-card {
    background: #161e2e;
    border: 1px solid #2a364f;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    color: #ffffff;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.lock-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.lock-card h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.lock-card p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.4;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#pass-input {
    width: 100%;
    padding: 14px 16px;
    background-color: #0b0f19;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

#pass-input:focus {
    border-color: #6366f1;
}

.lock-card button {
    width: 100%;
    padding: 14px;
    background-color: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lock-card button:hover {
    background-color: #4f46e5;
}

#error-msg {
    color: #f87171;
    font-size: 13px;
    margin-top: 15px;
    margin-bottom: 0;
    display: none;
}

/* ==========================================
   RESPONSIVE DESIGN (TABLETS & HANDYS)
   ========================================== */
@media (max-width: 1024px) {
    .nav-center {
        max-width: 250px;
    }

    .content h1 {
        font-size: 1.9rem;
    }

    .clock-time {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
    }

    .nav-center {
        display: none;
    }

    .volume-slider {
        width: 45px;
    }

    .custom-clock-container {
        top: calc(26vh + 10px);
    }

    .clock-date {
        font-size: 1.1rem;
    }

    .clock-time {
        font-size: 2.4rem;
    }

    .content h1 {
        font-size: 1.5rem;
    }

    .language-picker-container {
        padding: 6px 12px;
    }

    .language-picker-container label {
        font-size: 0.8rem;
    }

    footer {
        padding: 10px;
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .logo {
        height: 32px;
    }

    .volume-container {
        gap: 4px;
    }

    .clock-time {
        font-size: 2rem;
    }

    .content h1 {
        font-size: 1.3rem;
    }
}