body {
    background-color: #6F003C;
    color: #333;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

header {
    background-color: #FF0000;
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-family: 'Work Sans', sans-serif;
    font-weight: 900;
}

@font-face {
    font-family: 'Work Sans';
    src: url('fonts/WorkSans-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

.step h2 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 900;
    margin-top: 0;
}


#app {
    padding: 20px;
}

.step {
    background-color: #FFFFFF;
    border: 2px solid #FF0000;
    border-radius: 8px;
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step.active {
    display: block;
    transform: scale(1);
}

.step:not(.active) {
    display: none;
}

.button {
    background-color: #FF0000;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    margin: 10px 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #6F003C;
}

.button:disabled {
    background-color: #ccc;
    opacity: 0.5;
    cursor: not-allowed;
}

.button.small {
    padding: 6px 10px;
    font-size: 0.9rem;
    margin-left: 10px;
}

input[type="text"],
input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #FF0000;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.confirm-row input[type="text"],
.confirm-row input[type="date"] {
    margin: 0;
}

#invoiceDate {
    width: 220px;
    max-width: 90%;
    display: inline-block;
    margin: 10px 0 10px 10px;
    vertical-align: middle;
}

input:invalid {
    border-color: #cc0000;
    background-color: #fff0f0;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px 0;
    border: 2px dashed #FF0000;
    border-radius: 4px;
    background-color: #fffafa;
    font-size: 1rem;
}

input[type="file"]:hover {
    background-color: #fff0f0;
    cursor: pointer;
}

iframe {
    width: 100%;
    aspect-ratio: 210 / 297;
    height: auto;
    min-height: 700px;
    border: 2px solid #FF0000;
    border-radius: 4px;
    margin: 20px auto 0 auto;
    display: block;
}

.expense-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.expense-row input[type="text"] {
    flex: 2;
}

.expense-row input[type="number"] {
    flex: 1;
}

.summary-box {
    border: 2px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.summary-section {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.summary-table th,
.summary-table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: left;
    font-size: 0.95rem;
}

.summary-table th {
    background-color: #eee;
}

.summary-total-label {
    text-align: right;
    font-weight: bold;
}

.summary-total-value {
    text-align: right;
    font-weight: bold;
}

#step1 input[type="text"]#firstName,
#step1 input[type="text"]#lastName {
    display: inline-block;
    width: calc(50% - 10px);
    margin-right: 10px;
}

#step1 input[type="text"]#lastName {
    margin-right: 0;
}

.center-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

#step6 .center-buttons {
    flex-direction: column;
    align-items: center;
}

.center-text {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.confirm-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

.confirm-row input[type="text"] {
    flex: 1;
}

.confirm-row input[type="date"] {
    width: 220px;
    flex-shrink: 0;
}

.inline-label {
    display: inline-block;
    margin: 10px 0 0 0;
    font-weight: 700;
}

#step3 .inline-label {
    margin-right: 10px;
}

#step3 #invoiceDate {
    margin: 10px 0;
}

.step1-buttons {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.step1-buttons #cheatLoadBtn {
    position: absolute;
    right: 0;
}

details.collapsible {
    border: 2px solid #FF0000;
    border-radius: 6px;
    padding: 10px;
    margin: 15px 0;
    background: #fffafa;
    transition: background 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

details.collapsible[open] {
    background: #fff0f0;
    animation: slideDown 0.3s ease-out;
}

details.collapsible summary {
    list-style: none;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    position: relative;
    padding-left: 1.6rem;
}

details.collapsible summary::-webkit-details-marker {
    display: none;
}

details.collapsible summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1rem;
    height: 1rem;
    background: url("pfeil.svg") no-repeat center / contain;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

details.collapsible[open] summary::before {
    transform: rotate(90deg);
}

details.collapsible input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
}

.success-msg {
    color: #006400;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
}

#jumpToStep3Btn,
#savePersonalDataBox .button {
    display: block;
    margin: 15px auto 0 auto;
    width: fit-content;
}

.help-text {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 10px 0;
}

#loadSuccessMsg,
#jumpToStep3Btn,
#cheatLoadBtn {
    display: none;
}

.spacer {
    display: inline-block;
    width: 40px;
}

.info-card {
    background: #fff0f0;
    border-left: 6px solid #FF0000;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    animation: fadeSlideIn .4s ease-out;
    font-size: 1.05rem;
}

.info-card h4 {
    margin: 0 0 10px 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: .5rem;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card ol {
    margin: 0 0 0 1.2rem;
    padding: 0;
}

.info-card li {
    margin: .6rem 0;
}

.info-card li::marker {
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.action-box {
    padding: 18px 20px;
    background: #fafafa;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .05);

    text-align: center;
}

.action-box .button {
    margin: 12px auto 0 auto;
    display: inline-block;
}

.action-box p {
    margin: 0 0 12px 0;
    line-height: 1.45;
}

.action-list hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 18px 0;
}

/* --- Progress Bar Styles --- */

.progress-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    position: relative;
    padding: 0 10px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    counter-reset: step;
    width: 100%;
    background: transparent;
}

.progress-step {
    position: relative;
    width: 100%;
    text-align: center;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 17px;
    left: -50%;
    width: 100%;
    height: 3px;
    background-color: #d1d1d1;
    z-index: 1;
}

.progress-step:first-child::before {
    content: none;
}

.progress-step.active::before,
.progress-step.completed::before {
    background-color: #FF0000;
}

.progress-step .circle {
    width: 34px;
    height: 34px;
    background-color: #fff;
    border: 3px solid #d1d1d1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    font-weight: 900;
    color: #999;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
}

.progress-step.active .circle {
    border-color: #FF0000;
    background-color: #FF0000;
    color: #fff;
    transform: scale(1.1);
}

.progress-step.completed .circle {
    border-color: #FF0000;
    background-color: #FF0000;
    color: #fff;
}

.progress-step .label {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin-top: 5px;
}

.progress-step.active .label {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .progress-step .label {
        display: none;
    }
}
