/* Grundlegendes Styling für den Rentenlücken-Rechner */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

h1 {
    text-align: center;
    color: #444;
    margin-top: 20px;
    font-size: 2em;
}

p {
    text-align: center;
    color: #666;
    font-size: 1em;
    padding: 0 10px;
}

form {
    max-width: 800px;
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form div {
    margin-bottom: 15px;
}

form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

form input[type="number"] {
    width: 100%;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

form input[type="number"]:focus {
    border-color: #007bff;
}

/* Tabelle */
.salary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-table thead th {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.salary-table tbody td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.salary-table input {
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 4px;
    width: calc(100% - 10px);
    text-align: center;
}

/* Entfernen-Button */
.btn-remove {
    background-color: #bdbdbd;
    color: transparent; /* Text ("-") visuell verstecken, Icon wird per Background geliefert */
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 3h6a1 1 0 0 1 1 1v2h4v2h-1.1l-1.3 12.3A3 3 0 0 1 14.6 23H9.4a3 3 0 0 1-2.99-2.7L5.1 8H4V6h4V4a1 1 0 0 1 1-1Zm6 4V5h-6v2h6Zm-7.9 2 1.2 11.2a1 1 0 0 0 .99.8h5.2a1 1 0 0 0 .99-.8L18.9 9H7.1Zm3.9 2h2v7h-2v-7Zm-3 0h2v7h-2v-7Zm8 0h-2v7h2v-7Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}

.btn-remove:hover {
    background-color: #ff9800; /* Hover in Orange (weniger aggressiv als Rot) */
}

.btn-remove:active {
    transform: translateY(1px);
}

.btn-remove:focus { outline: none; }
.btn-remove:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.35);
}

/* Aktionen und Buttons */
.btn-add-row, .btn-submit {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 5px;
}

.btn-add-row:hover, .btn-submit:hover {
    background-color: #0056b3;
}

#result {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row strong {
    font-weight: bold;
    color: #444;
}

.result-row span {
    color: #007bff;
    font-weight: bold;
}

.result-row.result-highlight {
    background-color: #ffe6e6;
    color: #e74c3c;
    font-weight: bold;
    border-radius: 4px;
}

.error-message {
    color: red;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    .salary-table {
        font-size: 0.9em;
    }

    h1 {
        font-size: 1.5em;
    }

    .btn-add-row, .btn-submit {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}

.calculator-container .btn-submit {
    background-color: #90EE90;
    color: #333;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.calculator-container .btn-submit:hover {
    background-color: #78c278;
    transform: scale(1.02);
}
