/* Allgemeines Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    color: #f0f0f0; /* Helle Schrift */
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #007bff; /* Blau bleibt für Konsistenz */
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
}

/* Container */
.container {
    margin: 20px auto;
    max-width: 900px;
    padding: 20px;
    background: #2a2a2a; /* Dunkler Containerhintergrund */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Intensiverer Schatten */
}

/* Tasten */
button, .btn {
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, color 0.3s;
    color: #f0f0f0; /* Helle Schrift */
}

button:hover, .btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-primary:hover, .btn-danger:hover, .btn-success:hover {
    background-color: #0056b3; /* Etwas dunkler beim Hover */
    color: #e0e0e0;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #333333; /* Dunkler Tabellenhintergrund */
    color: #f0f0f0; /* Helle Schrift */
}

table th, table td {
    border: 1px solid #444444; /* Dunklere Umrandung */
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #007bff; /* Blaue Header bleiben konsistent */
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #2a2a2a; /* Alternativer dunkler Hintergrund */
}

table tr:hover {
    background-color: #444444; /* Hellerer Hover-Effekt */
}

/* Formulare */
form .form-control {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555555; /* Dunkler Rand */
    border-radius: 5px;
    background-color: #2a2a2a; /* Dunkler Hintergrund */
    color: #f0f0f0; /* Helle Schrift */
}

form .form-control:focus {
    border-color: #007bff; /* Blauer Rand beim Fokus */
    outline: none;
}

/* Labels */
form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #f0f0f0; /* Helle Labels */
}

/* Links */
a {
    text-decoration: none;
    color: #4caf50; /* Grüner Akzent */
}

a:hover {
    text-decoration: underline;
}

/* Fehlermeldungen */
.error {
    color: #ff6666; /* Rote Fehlermeldung */
    font-weight: bold;
    margin-bottom: 10px;
}

/* Erfolgsnachrichten */
.success {
    color: #28a745; /* Grüne Erfolgsnachricht */
    font-weight: bold;
    margin-bottom: 10px;
}

/* Verlustmeldungen Box */
.loss-box {
    background-color: #331b1b; /* Dunkelroter Hintergrund */
    color: #f08080; /* Heller Text */
    border: 1px solid #cc3b3b; /* Roter Rand */
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Error Box */
.error-box {
    background-color: #331b1b; /* Dunkelroter Hintergrund */
    color: #ff6666; /* Roter Text */
    border: 2px solid #ff0000; /* Kräftiger roter Rand */
    text-align: center;
    border-radius: 5px;
    padding: 15px;
}

/* Responsives Layout */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }

    table th, table td {
        font-size: 0.9em;
    }
}
