/* ==========================
   Grundlegendes Reset & Schrift
========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    /* Hintergrundbild mit Blur und Cover */
    background: url('https://image.schoener-wohnen.de/12569078/t/88/v2/w1440/r0/-/29209-weihnachten09-raum-jpg--41905-.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px); /* Hintergrund unscharf */
    z-index: 0;
}

/* ==========================
   Zentrierter Container
========================== */
.container {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.85); /* leicht transparent */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    width: 400px;
}

/* ==========================
   Überschriften
========================== */
h2, h3 {
    margin-bottom: 15px;
    color: #b71c1c; /* weihnachtliches Rot */
    text-align: center;
}

/* ==========================
   Texte & Links
========================== */
p {
    margin-bottom: 10px;
    text-align: center;
}

a {
    text-decoration: none;
    color: #1b5e20; /* Tannengrün */
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* ==========================
   Formulare & Inputs
========================== */
label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 14px;
    color: #b71c1c;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

/* ==========================
   Buttons
========================== */
button {
    background-color: #b71c1c; /* weihnachtliches Rot */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;

    /* Rechtsausrichtung */
    display: inline-block;
    float: right;
}

button:hover {
    background-color: #7f0000;
}

/* Spezieller Delete Button (Admin) */
button.delete-btn {
    background-color: #d32f2f;
}

button.delete-btn:hover {
    background-color: #9a0007;
}

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

th, td {
    padding: 8px 12px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
}

th {
    background-color: #1b5e20; /* Tannengrün */
    color: #fff;
}

tr:nth-child(even) {
    background-color: rgba(255, 235, 59, 0.1); /* leichte weihnachtliche Gelbtöne */
}

/* ==========================
   Formulare in Tabellenzellen
========================== */
table form {
    display: flex;
    justify-content: flex-end; /* Formularbuttons in Tabellenzellen rechts */
    margin: 0;
}

table input[type="number"],
table input[type="password"] {
    width: 70px;
    margin-bottom: 4px;
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 6px;
}

table button {
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 6px;
    float: none; /* float entfernen, flex übernimmt Ausrichtung */
}
