@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Raleway', sans-serif;
    height: 100vh;
    margin: 0;
    background-color: #0d0d0d;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 🔴⚫️ Echte STREIGEN im Hintergrund */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #1a1a1a 0px,
        #1a1a1a 20px,
        #800000 20px,
        #800000 40px
    );
    opacity: 0.5;
    z-index: 1;
    pointer-events: none; /* 👈 WICHTIG! */
}

/* ====================================  Styling für die NAVBAR ============================== */  
/*  Navbar-Button */
.navbar-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    z-index: 100;
}

/*  Navbar-Container */
#navbar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    transition: left 0.3s ease;
    padding-top: 50px;
    z-index: 99;
}

/*  Aktive Navbar */
#navbar.active {
    left: 0;
}

/*  Navbar-Links */
#navbar ul {
    list-style: none;
    padding: 0;
}

#navbar li {
    padding: 15px;
    text-align: center;
}

#navbar a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

#navbar a:hover {
    color: #ff9900;
}



/* =================================  Styling für PROFILE-Container  ===============================*/


.profile-container {
    background: linear-gradient(135deg, #220000, #000000); /* Gleich wie Menü */
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/*  Benutzerüberschrift */
.profile-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: 'Black Ops One', sans-serif;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

/*  E-Mail-Anzeige */
.profile-container p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ddd;
}

/*  Benutzerliste */
.user-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.user-list li {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 10px;
    margin: 5px 0;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.user-list li a {
    color: #ffdddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-list li:hover {
    background: rgba(255, 0, 0, 0.3);
}

.user-list li a:hover {
    color: #ffffff;
}

/*  Nachrichtenbereich */
.message-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.message-list li {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    margin: 5px 0;
    font-size: 1rem;
    text-align: left;
}

.message-list li strong {
    color: #ff6666;
}

/*  Nachricht senden */
.message-form {
    margin-top: 20px;
}

select, input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

button {
    /* background: linear-gradient(135deg, #8c0000, #2b0000); */
    background: linear-gradient(135deg, #ff9900, #8c0000);
    /* box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4); /* Warmer Glow */ */
   	box-shadow: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    transform: scale(1.1);
    /* box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5); */
    /* box-shadow: 0 10px 25px rgba(255, 204, 0, 0.7); */
  	box-shadow: none;
}

/*  Logout-Button ganz unten */
.logout-btn {
    display: block;
    background: linear-gradient(135deg, #8c0000, #2b0000);
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    margin-top: auto;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5);
}






/* ================================= Styling für MYSTERY-Kasten ================================= */
.mystery-container {
    position: relative;
    z-index: 2;
}

.mystery-box {
    width: 200px;
    height: 200px;
    background: rgba(51, 0, 0, 0.1); /* 🌫️ Dunkelrot mit Transparenz */
    backdrop-filter: blur(5px); /* 🪞 Glas-Effekt */
    -webkit-backdrop-filter: blur(5px); /* Für Safari */
    color: rgba(255, 255, 255, 0.5); /* Halbtransparenter Text */
    font-size: 3rem;
    font-family: 'Black Ops One', sans-serif; /* 🛠️ Neuer Font */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* border: 2px solid rgba(255, 255, 255, 0.3); */
    border: 2px solid rgba(255, 204, 0, 0.5); /* Goldener Schimmer */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin: auto;
    margin-top: 5vh;
    user-select: none;
    text-decoration: none;
    text-align: center;
    line-height: 200px;
}

.mystery-box:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.7); /* Beim Hover etwas weniger transparent */
    background: rgba(51, 0, 0, 0.5); /* 💥 Beim Hover etwas weniger transparent */
}

.mystery-box:active {
    transform: scale(0.95);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}

/*  Kachel-Links */
.link-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.link-card {
    background: linear-gradient(135deg, #8c0000, #2b0000);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    width: 130px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.link-card a {
    text-decoration: none;
    color: #ddd;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5);
}

.link-card:hover a {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.6);
}

/*  Menü-Container */
.container {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #220000, #000000);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    animation: fadeIn 2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}
/*  Passwort-Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.password-box {
    background: linear-gradient(135deg, rgba(51, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.5);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: #fff;
    font-family: 'Black Ops One', sans-serif;
    animation: fadeIn 1s ease;
}

.password-box h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.password-box input {
    width: 80%;
    padding: 15px;
    margin: 15px 0;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    transition: background 0.3s ease;
}

.password-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.password-box input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.password-box button {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-family: 'Black Ops One', sans-serif;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #8c0000, #2b0000);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.password-box button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5);
}

.error-msg {
    color: #ff4b4b;
    margin-top: 15px;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    height: 25px;
}

/*  Smooth-Fade-In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.login-btn, .upload-btn, .logout-btn {
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #8c0000, #2b0000);
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
}

.login-btn:hover, .upload-btn:hover, .logout-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.file-list li a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    transition: color 0.3s ease;
}

.file-list li a:hover {
    color: #ff4b4b;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

.error-msg {
    color: #ff4b4b;
    margin-top: 10px;
}

.success-msg {
    color: #00ff00;
    margin-top: 10px;
}




/* ================================= Styling für LOGIN-Formular ================================= */
.form-container {
    background: linear-gradient(135deg, #220000, #000000);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin: auto;
}

/*  Input-Felder im Login */
.form-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-container input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/*  Login-Button */
.form-container button {
    /* background: linear-gradient(135deg, #ff9900, #8c0000); */ 
    background: linear-gradient(135deg, #1f0a0a, #a00000);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-container button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.7);
}

/*  Fehlermeldungen */
.error-msg {
    color: #ff4b4b;
    margin-top: 10px;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    height: 25px;
}






/* ================================= Styling für die DOWNLOAD-Seite ================================= */
.download-container {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-top: 5vh;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
    text-align: center;
    position: relative;
    z-index: 2;
}

.file-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.file-list li {
    margin: 15px 0;
}

.file-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.file-list a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}


.download-container h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-family: 'Black Ops One', sans-serif;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}



/*  Link-Struktur */
.file-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
}

.file-link:hover {
    color: rgba(44, 0, 0, 0.95); /* 0.95 = kaum transparent */
}

/*  Datei-Details – obere Zeile */
.file-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.file-icon {
    font-size: 1.6rem;
}

.file-name {
    font-size: 1.1rem;
    text-align: left;
}

/*  Datei-Details – untere Zeile */
.file-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
    font-size: 0.9rem;
}

.file-size {
    color: #ccc;
}

.download-icon {
    color: #00ffcc;
    transition: transform 0.3s ease;
}

.file-link:hover .download-icon {
    transform: translateY(-3px);
}

/*  Keine Dateien vorhanden */
.no-files {
    font-size: 1.1rem;
    color: #aaa;
    margin-top: 20px;
    text-align: center;
}


.user-list, .message-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.user-list li, .message-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

.message-list li {
    font-style: italic;
}

form select, form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

form button {
    background: linear-gradient(135deg, #8c0000, #2b0000);
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: linear-gradient(135deg, #ff0000, #4d0000);
}


/* ================================= ⚙️ FOOTER ================================= */
footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #bbb;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 2;
}

/*  Smooth-Fade-In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 📱 Responsive Anpassung */
@media (max-width: 600px) {
    .link-grid {
        flex-direction: column;
        align-items: center;
    }

    .link-card {
        width: 100%;
    }
}