body {
    font-family: 'Nunito', sans-serif;
    background: #f0f0f0;
    color: #333;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 2rem;
}

form {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #fdfdfd;
}

legend {
    font-weight: bold;
    color: #e57c7c;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

label {
    display: block;
    margin: 10px 0 4px;
    text-align: left;
}

input[type="datetime-local"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #218838;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
}

.edit-link {
    text-decoration: none;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.edit-link:hover {
    background-color: #0056b3;
}

/* Urlaubsliste */
.urlaubsliste {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.urlaubsliste li {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Inhalte vertikal mittig */
    background: rgba(0,0,0,0.03);
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.2; /* verhindert zu große Zeilenhöhe */
    min-height: 40px; /* sorgt für Einheitlichkeit */
}

.urlaubsliste li span {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    margin: 0;
    padding: 0;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

/* Basis für beide Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 36px;
    padding: 0 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
    line-height: 1;
    margin: 0; /* entfernt Standard-Margin bei <button> */
}

/* Bearbeiten */
.btn.edit-small {
    background-color: #17a2b8;
    color: #fff;
}
.btn.edit-small:hover {
    background-color: #138496;
}

/* Löschen */
.btn.delete-small {
    background-color: #dc3545;
    color: #fff;
}
.btn.delete-small:hover {
    background-color: #a71d2a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-align: left;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content button.cancel {
    background-color: #6c757d;
    margin-top: 10px;
}

.modal-content button.cancel:hover {
    background-color: #5a6268;
}
