/* Allgemeine Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #2c3e50;
    line-height: 1.6;
    padding-top: 60px; /* Platz für Navbar */
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #34495e;
}

/* Navigationsleiste */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbar-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    transition: background 0.3s, transform 0.2s;
    border-radius: 5px;
}

.navbar-links a:hover {
    background-color: #34495e;
    transform: scale(1.05);
}

.navbar-summary {
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
}

/* Container */
.content {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 8px;
}

table th, table td {
    padding: 15px 12px;
    text-align: left;
    border: 1px solid #e1e4e8;
}

table th {
    background-color: #2c3e50;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 14px;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tr:hover {
    background-color: #e9ecef;
}

tbody td:first-child {
    font-weight: bold;
}

tbody td:last-child {
    text-align: right;
}

/* Dropdown */
.hidden {
    display: none;
}

.dropdown-container {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-container input {
    width: 60px;
    text-align: center;
    font-size: 16px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.dropdown-container button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.dropdown-container button:hover {
    background-color: #219150;
    transform: scale(1.1);
}

/* Formulare */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

form label {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

form input,
form select,
form button {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

form input:focus,
form select:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.3);
}

form button {
    background-color: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.2s;
}

form button:hover {
    background-color: #2ecc71;
    transform: scale(1.05);
}

/* Menüboxen */
.menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.menu-box {
    background: #27ae60;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    width: 250px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu-box:hover {
    background: #219150;
    transform: scale(1.05);
}

/* Details */
details {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
}

details[open] {
    background-color: #e8f5e9;
    border-color: #27ae60;
}

/* Meldungen */
.meldung {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

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

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

    .menu-container {
        flex-direction: column;
        align-items: center;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table thead {
        display: none;
    }

    table tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #ddd;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
    }

    table tbody tr td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
    }

    table tbody tr td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
        margin-right: 10px;
    }

    form input,
    form select {
        width: 100%;
    }
}
