/* Allgemeines Styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #fff;
    overflow-x: hidden; /* Kein horizontales Scrollen auf großen Bildschirmen */
}

/* Sidebar */
.sidebar {
    width: 220px;
    height: 100vh;
    background-color: #1f1f1f;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(-100%); /* Sidebar standardmäßig ausgeblendet */
    transition: transform 0.4s ease; /* Sanfte Übergänge */
    overflow-y: auto; /* Scrollen erlauben */
}

.sidebar.open {
    transform: translateX(0); /* Sidebar wird eingeblendet */
}

.sidebar h2 {
    margin: 0;
    color: #f1c40f;
    text-align: center;
    font-size: 1.5em;
    text-transform: uppercase;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    display: block;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

.sidebar ul li a:hover {
    background-color: #f1c40f;
    color: #121212;
}

/* Hamburger-Menü */
.hamburger-menu {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 1100;
    transition: color 0.3s ease;
}

.hamburger-menu:hover {
    color: #f1c40f;
}

/* Main Content */
.main-content {
    margin-left: 0; /* Standardmäßig kein Abstand */
    padding: 20px;
    transition: margin-left 0.4s ease; /* Sanfter Übergang bei Bewegung */
}

.sidebar.open + .main-content {
    margin-left: 220px; /* Verschiebt den Main-Content, wenn Sidebar sichtbar ist */
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #1f1f1f;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.topbar button {
    margin-left: 10px;
    background-color: #f1c40f;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #121212;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

.topbar button:hover {
    background-color: #fff;
    color: #121212;
}

/* Pop-up Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dunkler Hintergrund */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-content {
    background-color: #1f1f1f; /* Dunkles Design passend zum Gaming-Stil */
    color: #fff;
    border-radius: 8px;
    padding: 30px;
    width: 400px;
    max-width: 90%; /* Maximale Breite für kleine Bildschirme */
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    color: #f1c40f; /* Goldene Akzentfarbe für Überschriften */
    margin-bottom: 20px;
    font-size: 1.8em;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #2c2c2c;
    color: #fff;
    box-sizing: border-box; /* Verhindert Layout-Probleme */
    font-size: 1em;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease-in-out;
}

.modal-actions button[type="submit"] {
    background-color: #f1c40f;
    color: #121212;
    flex: 1;
}

.modal-actions button[type="submit"]:hover {
    background-color: #fff;
    color: #121212;
}

.modal-actions button.cancel {
    background-color: #444;
    color: #fff;
    flex: 1;
}

.modal-actions button.cancel:hover {
    background-color: #666;
    color: #fff;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.close:hover {
    color: #f1c40f;
}

/* Responsive Design */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0); /* Sidebar immer sichtbar */
    }

    .hamburger-menu {
        display: none; /* Hamburger-Menü verstecken */
    }

    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%); /* Sidebar standardmäßig ausgeblendet */
    }

    .sidebar.open {
        transform: translateX(0); /* Sidebar wird sichtbar */
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%; /* Vollbreite für Modals */
        max-width: none;
        padding: 20px;
    }
}

/* Scrollbar-Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #f1c40f;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: #1f1f1f;
}
