/* Allgemeiner Stil */
body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    color: #00796b;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    color: #00796b;
    border-bottom: 2px solid #b2dfdb;
    padding-bottom: 10px;
    margin-top: 30px;
}

h3 {
    color: #00796b;
    margin-top: 25px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #b2dfdb;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #e0f2f1;
    transition: border-color 0.3s, background-color 0.3s;
}

select:focus {
    border-color: #00796b;
    background-color: #ffffff;
}

.select-container {
    position: relative;
    margin-bottom: 20px;
}

.checkmark {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: green;
    font-size: 24px;
    display: none;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
    color: #666;
}

.print-button, .add-person-button, .remove-person-button, .add-custom-document-button, .remove-custom-document-button {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: #00796b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.print-button:hover, .add-person-button:hover, .add-custom-document-button:hover {
    background-color: #00695c;
}

.remove-person-button, .remove-custom-document-button {
    background-color: #d32f2f; /* Red color for delete button */
    margin-top: 10px;
    margin-bottom: 15px; /* Slightly less margin for custom doc remove */
}

.remove-person-button:hover, .remove-custom-document-button:hover {
    background-color: #c62828;
}

/* Stil für einzelne Darlehensnehmer-Blöcke */
.person-block {
    border: 1px solid #b2dfdb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    background-color: #f5fafa;
}

.custom-document-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px; /* Space between input and button */
}

.custom-document-field input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #b2dfdb;
    border-radius: 8px;
    font-size: 16px;
}

.custom-document-field .remove-custom-document-button {
    margin: 0; /* Remove default margins */
    padding: 8px 12px; /* Smaller padding */
    font-size: 14px;
}

/* Druckstil */
@media print {
    body {
        background-color: #fff;
        color: #000;
        margin: 0;
    }

    .container {
        margin: 0;
        padding: 20px;
        box-shadow: none;
        border: none;
    }

    h1, h2, h3 {
        color: #000;
    }

    select, label, .print-button, .add-person-button, .remove-person-button, .checkmark,
    .add-custom-document-button, .custom-document-field, .remove-custom-document-button {
        display: none;
    }

    ul {
        padding-left: 15px;
    }

    li {
        margin-bottom: 5px;
    }

    .person-block {
        border: none;
        padding: 0;
        margin-bottom: 20px;
        background-color: #fff;
    }
}