body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0;
}

h2 {
    color: #ffcc00;
    margin-top: 20px;
}

/* Suchfeld */
.suchfeld {
    margin: 20px auto;
    width: 50%;
    text-align: center;
}

.suchfeld input {
    width: 80%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: #f8f9fa;
    font-size: 16px;
}

.suchfeld input:focus {
    outline: 2px solid #ffcc00;
}

.suchfeld button {
    padding: 10px;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.suchfeld button:hover {
    background-color: #e6b800;
}

/* Formular für Artikel hinzufügen */
.add-form {
    background: #2c2c2c;
    padding: 20px;
    width: 50%;
    margin: 20px auto;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.add-form input {
    width: 80%;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.add-form button {
    background-color: #ffcc00;
    color: #1e1e1e;
    cursor: pointer;
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 50%;
}

.add-form button:hover {
    background-color: #e6b800;
}

/* Lagerbestand Tabelle */
table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #2c2c2c;
}

th, td {
    padding: 10px;
    border: 1px solid #444;
    text-align: center;
}

th {
    background-color: #ffcc00;
    color: #1e1e1e;
}

tr:nth-child(even) {
    background-color: #3c3c3c;
}

/* Buttons */
.btn {
    padding: 8px 15px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.btn:hover {
    background: darkred;
}

.btn-entnehmen {
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.btn-entnehmen:hover {
    background: #0056b3;
}

.btn-erhoehen {
    padding: 8px 15px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.btn-erhoehen:hover {
    background: #218838;
}

.btn-lagerplatz {
    padding: 8px 15px;
    background: #0a1c80;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.btn-lagerplatz:hover {
    background: #1a065f;
}

.btn-umbuchen {
    background-color: #f39c12; /* Auffälliges Orange */
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.btn-umbuchen:hover {
    background-color: #e67e22; /* Dunkleres Orange beim Hover */
}


.sortierfeld {
    margin: 20px auto;
    width: 50%;
    text-align: center;
}

.sortierfeld label {
    color: #ffffff;
    font-size: 16px;
}

.sortierfeld select {
    padding: 8px;
    border-radius: 5px;
    border: none;
    background: #ffcc00;
    font-size: 16px;
    cursor: pointer;
}

.sortierfeld select:hover {
    background: #e6b800;
}

/* Modal-Overlay mit dunklem Hintergrund */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal-Inhalt */
.modal-content {
    background: #222 !important;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 30%; /* Schmaler gemacht */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.7);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal-Überschrift */
.modal-content h2 {
    margin-bottom: 15px;
    color: #ffcc00;
    font-size: 20px;
}

/* Eingabeformular im Modal */
.modal-content form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Labels über den Input-Feldern */
.modal-content label {
    width: 80%;
    text-align: left;
    font-size: 14px;
    margin-top: 10px;
    color: #ffcc00;
}

/* Input-Felder */
.modal-content input {
    width: 80%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #555;
    border-radius: 5px;
    background: #333;
    color: white;
    text-align: center;
}

/* Schließen-Button für das Modal */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #ffcc00;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/* Button für das Lagerplatz hinzufügen */
.modal-content button {
    margin-top: 15px;
    padding: 8px 15px;
    background: #17a2b8;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    width: 80%;
}

.modal-content button:hover {
    background: #138496;
}

/* Animation für das Modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-drucken {
    padding: 5px 10px;
    background: #ffcc00;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
}

.btn-drucken:hover {
    background: #e6b800;
}

/* Modal für Etiketten-Druck */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal-Inhalt */
.modal-content {
    background: #222;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 40%;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.7);
    position: relative;
}

/* Modal-Überschrift */
.modal-content h2 {
    margin-bottom: 15px;
    color: #ffcc00;
    font-size: 20px;
}

/* Formular-Felder */
.modal-content form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.modal-content label {
    width: 80%;
    text-align: left;
    font-size: 14px;
    margin-top: 10px;
    color: #ffcc00;
}

.modal-content input {
    width: 80%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #555;
    border-radius: 5px;
    background: #333;
    color: white;
    text-align: center;
}

/* Schließen-Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #ffcc00;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/* Standard-Login-Styling für Desktop */
.login-container {
    width: 350px;
    margin: 100px auto;
    padding: 20px;
    background: #2c2c2c;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.login-container button:hover {
    background-color: #2980b9;
}


/* 🔹 Mobile Optimierung: Smartphones (max. 600px Breite) */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        padding: 10px;
    }

    /* Buttons für Touch-Geräte größer machen */
    button, .btn {
        font-size: 16px;
        padding: 12px;
        width: 100%; /* Ganze Breite nutzen */
    }

    /* Tabellen scrollbar machen */
    .table-container {
        overflow-x: auto; /* Horizontal scrollen erlauben */
        max-width: 100%;
    }

    table {
        width: 100%;
        font-size: 12px;
    }

    th, td {
        padding: 5px;
    }

    /* Modale zentrieren & Größe anpassen */
    .modal-content {
        width: 90%; /* Statt fester Breite */
        max-width: 400px;
    }

    /* Eingabefelder */
    input, select {
        font-size: 16px;
        padding: 8px;
        width: 100%; /* Volle Breite für bessere Bedienung */
    }

    .login-container {
            width: 90%;
            padding: 15px;
        }
    
    .login-container h2 {
            font-size: 20px;
        }
    
    .login-container input {
            font-size: 18px;
            padding: 14px;
        }
    
    .login-container button {
            font-size: 20px;
            padding: 14px;
        }
}

/* 🔹 Tablets (max. 900px Breite) */
@media (max-width: 900px) {
    body {
        font-size: 16px;
        padding: 15px;
    }

    button, .btn {
        font-size: 18px;
        padding: 14px;
    }

    table {
        font-size: 14px;
    }

    .modal-content {
        width: 80%;
        max-width: 500px;
    }
}
