/* Grundlayout */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Überschrift */
h1 {
    color: #4caf50;
    margin-bottom: 20px;
    text-align: center;
}

/* Container (gelber/grüner Kasten) */
.container {
    background-color: #d4ed91;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Angepasst, um Platz für zwei Spalten zu schaffen */
    max-width: 650px; 
}

/* Formular */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    color: #333;
}

input, textarea, select { /* SELECT HINZUGEFÜGT */
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* --- NEUE REGELN FÜR ZWEISPALTIGES REGISTER-FORMULAR --- */
.form-grid-2-col {
    display: flex;
    gap: 20px; /* Abstand zwischen den Spalten */
}

.form-column {
    flex: 1; /* Beide Spalten nehmen den gleichen Platz ein */
}

/* Im zweispaltigen Layout soll der Button nicht die volle Breite über beide Spalten einnehmen, 
   aber der Button muss außerhalb der .form-grid-2-col-Divs bleiben,
   damit er sich über die gesamte Breite des Containers erstreckt (wie der Login-Button). */

/* Wenn die Bildschirmbreite klein ist (Mobile), wieder zur einspaltigen Ansicht wechseln */
@media (max-width: 650px) {
    .container {
        max-width: 90%;
    }
    .form-grid-2-col {
        flex-direction: column;
        gap: 0;
    }
}
/* --- ENDE NEUE REGELN --- */


button {
    background-color: #8bc34a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

button:hover {
    background-color: #7cb342;
}

/* Login/Fehler/Erfolgsmeldungen im Kasten */
.login-message-error {
    color: #d9534f;
    background: #f8d7da;
    border: 1px solid #d9534f;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.login-message-success {
    color: #2e7d32;
    background: #d4edda;
    border: 1px solid #2e7d32;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

/* Header / Navigation (falls auf anderen Seiten genutzt) */
.header-background {
    background-color: #d4ed91;
    padding: 20px;
    border-bottom: 2px solid #4caf50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

nav ul li a {
    text-decoration: none;
    color: #4caf50;
    font-weight: bold;
}

nav ul li a:hover {
    color: #7cb342;
}

main {
    padding: 20px;
}

footer {
    background-color: #d4ed91;
    padding: 10px;
    text-align: center;
    border-top: 2px solid #4caf50;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-table th, .user-table td {
    padding: 10px;
    border-bottom: 1px solid #aaa;
    text-align: left;
}

.user-table th {
    background: #cde7a3;
}

.user-table tr:hover {
    background: #f6ffe9;
}

.user-table select, 
.user-table button {
    padding: 5px;
    border-radius: 5px;
}

.user-table button {
    cursor: pointer;
    background: #8bc34a;
    color: white;
    border: none;
}

.user-table button:hover {
    background: #7cb342;
}