/* Reset & Basis-Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background: #0A4F23;
    color: #fff;
    padding: 10px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.navbar-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    margin-left: 20px;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
}

.navbar-links a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/* Status-Anzeige */
#app-status {
    font-weight: bold;
    color: #28a745; /* Grün = läuft */
}

/* Platzhalter für dynamische Inhalte */
#content {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.status-bar {
    background: #8DAF9D;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}
.dashboard {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.card {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0e6b30;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.btn:hover {
    background: #1F8A42;
}
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.error {
    color: #dc3545;
    margin-bottom: 15px;
}

.message {
    color: #28a745;
    margin-bottom: 15px;
}
/* Grundlegendes Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #0e6b30;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin-right: 10px;
}

.btn:hover {
    background: #1F8A42;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9em;
}

/* Tabellen */
.inventory-table, .category-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.inventory-table th, .inventory-table td,
.category-table th, .category-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.inventory-table th, .category-table th {
    background-color: #8DAF9D;
}
/* Tabellen-Styling für Inventar-Liste */
.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed;
}

.inventory-table th,
.inventory-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Standard: keine Zeilenumbrüche */
.inventory-table td {
    white-space: nowrap;
}

/* Ausnahme: Beschreibung und Verantwortlich dürfen umbrechen */
.inventory-table td:nth-child(2), /* Beschreibung */
.inventory-table td:nth-child(6) { /* Verantwortlich */
    white-space: normal;
}

/* Spezifische Spaltenbreiten - WICHTIG: Aktions-Spalte groß genug! */
.inventory-table th:nth-child(1),
.inventory-table td:nth-child(1) { width: 15%; } /* Name */

.inventory-table th:nth-child(2),
.inventory-table td:nth-child(2) { width: 25%; } /* Beschreibung */

.inventory-table th:nth-child(3),
.inventory-table td:nth-child(3) { width: 8%; } /* Menge */

.inventory-table th:nth-child(4),
.inventory-table td:nth-child(4) { width: 12%; } /* Kategorie */

.inventory-table th:nth-child(5),
.inventory-table td:nth-child(5) { width: 12%; } /* Standort */

.inventory-table th:nth-child(6),
.inventory-table td:nth-child(6) { width: 13%; } /* Verantwortlich */

.inventory-table th:nth-child(7),
.inventory-table td:nth-child(7) { width: 18%; min-width: 150px; } /* AKTIONEN - WICHTIG! */

/* Buttons in der Aktions-Spalte */
.inventory-table .btn {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.85em;
    margin-right: 5px;
    white-space: nowrap; /* Verhindert Button-Umbrüche */
}

/* Für sehr kleine Bildschirme */
@media (max-width: 768px) {
    .inventory-table td:nth-child(7) {
        min-width: 120px;
    }
    .inventory-table .btn {
        padding: 2px 6px;
        font-size: 0.8em;
    }
}

/* Formulare */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.filter-group {
    display: inline-block;
    margin-right: 15px;
    vertical-align: top;
}

/* Fehler-Nachrichten */
.error-message {
    color: #dc3545;
    background: #f8d7da;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}
.confirmation-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    max-width: 600px;
}

.confirmation-box p {
    margin-bottom: 10px;
}
.success-message {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
/* Formulare */
form {
    max-width: 600px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}
/* Navbar */
.navbar {
    background: #0A4F23;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    margin-left: 20px;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.navbar-links a:hover,
.navbar-links a.active {
    background: #8DAF9D;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-user {
    color: #ccc;
    font-size: 0.9rem;
}

.btn-logout {
    background: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.btn-logout:hover {
    background: #c82333;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        margin: 10px 0;
        flex-direction: column;
    }

    .navbar-links li {
        margin: 5px 0;
    }

    .navbar-right {
        width: 100%;
        justify-content: space-between;
    }
}
/* Standorte-Tabelle */
.location-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.location-table th,
.location-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.location-table th {
    background-color: #f2f2f2;
}

.location-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.location-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}
/* Für den gesamten Body oder nur für Container mit Tabellen*/ 
html {
    overflow-y: scroll; /* Scrollbar immer sichtbar */
}

/* Alternativ nur für Tabellen-Container 
.table-container {
    overflow-y: scroll;
    max-height: 80vh; /* Optional: Begrenzte Höhe für Tabellen */

