/* Grundlegendes Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hauptinhalt und Sidebar-Container */
.container {
    display: flex;
    flex-grow: 1;
    background-color: #fff;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background-color: #444;
    padding: 10px;
    color: white;
    height: auto; /* Sidebar füllt nicht die ganze Höhe */
    overflow-y: auto;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.2);
}

/* Sidebar-Links */
.sidebar ul {
    list-style-type: none;
    padding: 0;
}

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

.sidebar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #007bff;
}

/* Hauptinhalt */
main {
    flex-grow: 1;
    padding: 20px;
    margin-left: 220px; /* Platz für die Sidebar */
    background-color: #fff;
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Tabellen */
.table-container {
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #007bff;
    color: #fff;
}

.delete-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.delete-btn:hover {
    background-color: #c9302c;
}

/* Nachrichten */
.message {
    margin-top: 20px;
    color: green;
    font-weight: bold;
}

.error {
    color: red;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    main {
        margin-left: 0;
    }
}
