
/* Grundlayout */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* Überschriften */
h1, h2, h3, h4 {
    color: #d4001a;
    margin-bottom: 12px;
}

/* Buttons */
button, .button, input[type="submit"] {
    background-color: #d4001a;
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-size: 1rem;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background-color: #a80014;
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    margin: 6px 0 14px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

label {
    font-weight: bold;
    color: #d4001a;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #d4001a;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Verlinkungen */
a {
    color: #d4001a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Nachricht/Ausgabe */
.success {
    background-color: #e0ffe0;
    color: #0a7700;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.error {
    background-color: #ffe0e0;
    color: #a00000;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

/* Vertikale Navigation (optional) */
.nav {
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.nav a {
    display: block;
    padding: 10px;
    margin-bottom: 6px;
    background-color: #ffffff;
    border: 1px solid #d4001a;
    border-radius: 4px;
    color: #d4001a;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
}

.nav a:hover {
    background-color: #d4001a;
    color: white;
}

/* Mülleimer-Button */
.delete-button {
    background-color: transparent;
    border: none;
    color: #d4001a;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s ease;
}

.delete-button:hover {
    color: #a80014;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    table tr {
        margin-bottom: 15px;
    }

    table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
        color: #888;
    }
}
