/* Allgemeines Dark Theme, leicht abgedunkelt */
body {
    font-family: Arial, sans-serif;
    background-color: #1c1c1c;  /* Weiches Dunkelgrau */
    color: #e0e0e0;  /* Helles Grau für den Text */
    padding: 20px;
    display: flex;
    flex-direction: column;  /* Elemente untereinander */
    align-items: center;  /* Zentriere die Elemente nur horizontal */
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Tabelle mittig und schmaler */
table {
    width: 60%;  /* Tabelle ist schmaler und nicht über die gesamte Breite */
    border-collapse: collapse;
    background-color: #2b2b2b;  /* Etwas dunkleres Grau für die Tabelle */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 8px;  /* Leichte Abrundung */
    overflow: hidden;
}

table th, table td {
    padding: 10px 15px;  /* Reduziere das Padding für eine kompaktere Darstellung */
    border: 1px solid #3e3e3e;
    text-align: center;
    color: #e0e0e0;
}

table th {
    background-color: #333333;  /* Dunkler Hintergrund für die Kopfzeile */
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

table td {
    font-size: 15px;
}

table tr:nth-child(even) {
    background-color: #252525;  /* Abwechselnde dunkle Zeilen */
}

table tr:hover {
    background-color: #3d3d3d;  /* Leichter Hover-Effekt */
}

/* Entfernt die 100%-Breite für die responsive Tabelle */
.responsive-table {
    width: 100%;
    max-width: 800px;
    overflow-x: auto; /* Scrollen bei kleinen Bildschirmen */
}

/* Verhindert das Auftauchen von überflüssigen Zellen */
.responsive-table td {
    white-space: nowrap;
}

/* Mobile Darstellung */
@media (max-width: 600px) {
    .responsive-table, .responsive-table thead, .responsive-table tbody, .responsive-table th, .responsive-table td, .responsive-table tr {
        display: block;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        margin-bottom: 10px;
        border-bottom: 1px solid #333333;
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        font-size: 14px;
        text-align: left;
    }

    .responsive-table td:before {
        content: attr(data-label); /* Zeigt den Namen der Spalte vor dem Wert */
        font-weight: bold;
        flex-basis: 50%;
        text-align: left;
        padding-right: 10px; /* Platz zwischen Label und Wert */
    }
}

/* Navbar-Styling */
nav {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100%;
}

/* Burger-Icon */
.burger-menu {
    display: block;
    font-size: 24px;
    cursor: pointer;
    color: white;
    margin-left: auto; /* Positioniert den Burger rechts */
}

/* Menü-Liste */
.menu {
    display: none; /* Menü ist standardmäßig versteckt */
    flex-direction: column; /* Links untereinander anzeigen */
    position: absolute;
    top: 20px; /* Direkt unter der Navbar */
    right: 10px;
    background-color: #333; /* Hintergrundfarbe */
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Schatteneffekt */
    border-radius: 8px; /* Abgerundete Ecken */
    width: 90%; /* Breite des Dropdown-Menüs */
    max-width: 300px; /* Maximale Breite */
    z-index: 100; /* Sicherstellen, dass es über anderen Elementen liegt */
    list-style: none; /* Entfernt die Punkte der Liste */
}

/* Geöffnetes Menü */
.menu.open {
    display: flex; /* Zeigt das Menü an */
}

/* Menü-Links */
.menu li {
    margin: 5px 0; /* Abstand zwischen den Links */
    text-align: left; /* Links ausrichten */
}

.menu li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
}

.menu li a:hover {
    background-color: #555; /* Hover-Effekt */
}

/* Aktiver Link (current page) */
.menu li a.active {
    background-color: #666; /* Blaue Hintergrundfarbe für aktive Links */
    color: black;
}

/* Formular-Styling */
form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

form input, form select, form button {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #333333;
    border-radius: 4px;
    background-color: #1c1c1c;
    color: #e0e0e0;
}

form button {
    background-color: #007bff;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #0056b3;
}