/* Grundlegendes Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
}

/* Navigation */
nav {
    background-color: #007bff;
    padding: 10px;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    margin: 0 15px; /* Mehr Abstand zwischen den Links */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px; /* Größere Klickfläche */
    border-radius: 5px; /* Abgerundete Ecken */
    transition: background-color 0.3s; /* Sanfter Übergang */
    background-color: #0056b3; /* Hintergrundfarbe für die Buttons */
}

nav ul li a:hover {
    background-color: #003f7f; /* Farbänderung bei Hover */
}

/* Benutzerinformationen */
.user-info {
    color: white; /* Textfarbe für den Benutzernamen */
    margin-right: 15px; /* Abstand zu anderen Links */
    font-weight: bold; /* Fettdruck für bessere Sichtbarkeit */
}

/* Header */
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5rem;
    color: #007bff;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

/* Inhaltsbereich */
section {
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

section p {
    font-size: 1rem;
    color: #666;
}

/* Registrierungsbereich */
.registration-container {
    display: flex;
    justify-content: center; /* Zentriert den Inhalt horizontal */
    margin: 20px 0; /* Abstand nach oben und unten */
}

.registration-section {
    background-color: #ffffff;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px; /* Maximale Breite für bessere Begrenzung */
    text-align: center; /* Zentriert den Text im Abschnitt */
}

.registration-section h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.registration-section p {
    color: #666;
    margin-bottom: 20px;
}

.register-button {
    background-color: #28a745; /* Grüner Button */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.register-button:hover {
    background-color: #218838; /* Dunklerer Grünton beim Hover */
}

/* Tabelle anpassen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

td img {
    width: 100px; /* Bildgröße erhöhen */
    height: auto;
}

tr:hover {
    background-color: #f1f1f1;
}

.action-links a {
    color: #0066cc;
    text-decoration: none;
    margin-right: 10px;
}

.action-links a:hover {
    text-decoration: underline;
}

/* Eingabefelder */
input[type="text"], input[type="number"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(100% - 20px);
    margin-bottom: 10px;
}

/* Buttons */
button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

/* Erfolgsmeldungen */
.success-message {
    color: #28a745;
    font-weight: bold;
    margin: 10px 0;
}

/* Fehlermeldungen */
.error-message {
    color: red;
    font-weight: bold;
    margin: 10px 0;
}

/* Textformatierung */
h2 {
    color: #333;
    margin-top: 20px;
}

/* Formular */
form {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    width: 100%;
    background-color: #007bff;
    color: white;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
}

form button:hover {
    background-color: #0056b3;
}
