#header {
width: 96%;
    display: flex;
    justify-content: space-between; /* Platzierung: links & rechts */
    align-items: center; /* Vertikale Zentrierung */
    padding: 10px 20px; /* Abstand innen */
    background-color: #f8f9fa; /* Heller Hintergrund */
    border-bottom: 2px solid #ddd; /* Dünne Linie unten */
}

/* Username-Styling */
#header h2 {
    margin: 0 auto; /* Automatische horizontale Zentrierung */
    text-align: center; /* Text zentrieren */
    flex-grow: 1; /* Lässt das h2 den Platz in der Mitte füllen */
}

/* Container für Buttons */
#userButtons {
    display: flex; /* Buttons nebeneinander */
    gap: 10px; /* Abstand zwischen den Buttons */
}

.userButton {
    background-color: #6c5ce7; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    padding: 10px 15px; /* Innenabstand */
    border-radius: 5px; /* Abgerundete Ecken */
    text-decoration: none; /* Keine Unterstreichung */
    font-weight: bold; /* Fettdruck */
    transition: background-color 0.3s ease; /* Sanfter Übergang */
    display: inline-block; /* Damit sie sich wie Buttons verhalten */
    text-align: center;
}

/* Hover-Effekt */
.userButton:hover {
    background-color: #0056b3; /* Dunklere Farbe beim Hover */
}

/* Spezielle Positionierung NUR für Logout */
.logout {
    position: absolute; /* Position im Browserfenster */
    top: 0px;
    right: 30px;
}


.spalte1 {
    width: 60px;  /* Reduziere die Breite der ersten Spalte */
}


/* Grundlegendes Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    margin: 0;
    padding: 0;
}

h2 {
    text-align: center;
    margin-top: 20px;
    font-size: 1.4rem;
    color: #333;
}

/* Tabelle Styling */
table.event-table {
    width: 96%;
    margin: 30px auto;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #6c5ce7;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

td {
    background-color: #fff;
    transition: background-color 0.3s ease;
}

td:hover {
    background-color: #f9f9f9;
}

/* Abwechselnde Zeilenfarben */
tr:nth-child(even) td {
    background-color: #fafafa;
}

tr:nth-child(odd) td {
    background-color: #ffffff;
}

/* Hervorhebung der Benutzeraktionen */
.highlight {
    background-color: #f7a3b0;
    font-weight: bold;
}

button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    background-color: #ccc;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

button:disabled {
    background-color: #4caf50;
    cursor: not-allowed;
}

/* Buttons - Ja/Nein/Offen */
button:focus {
    outline: none;
}

button:disabled:hover {
    background-color: #4caf50;
}

.action-buttons {
    display: flex;
    justify-content: space-evenly;
}

.action-buttons button {
    width: 120px;
}

/* Container Styling */
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

label {
	width:300px;
}

form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

form.login, form.konto {
    width: 100%;
    padding: 20px;
    margin: 50px auto; /* Horizontale Zentrierung mit etwas Abstand nach oben und unten */
}

/* Formular Felder */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    /*font-size: 1rem;*/
    background-color: #f9f9f9;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #6c5ce7;
    outline: none;
    background-color: #fff;
}
