* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    background-color: #f5f5f5;
}

.container {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    padding: 30px 40px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Background watermark */
.background-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    aspect-ratio: 1;
    background-image: url('../assets/images/background.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

/* Header */
header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    z-index: 1;
}

.logo {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: auto;
}

h1 {
    font-size: 28px;
    font-weight: normal;
    text-decoration: underline;
    text-align: center;
    flex-grow: 1;
}

/* Form elements */
form {
    position: relative;
    z-index: 1;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 8px;
}

/* Grundinfo row - keep on one line */
.grundinfo-row {
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 100px;
}

.field-group input.underlined {
    width: 100%;
    min-width: auto;
}

.field-group .label-small {
    width: auto;
    margin-top: 2px;
}

.field-group-short {
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 120px;
}

.match-row {
    flex-wrap: nowrap;
    margin-bottom: 15px;
}

.label {
    white-space: nowrap;
}

.label.bold {
    font-weight: bold;
}

.label-small {
    font-size: 11px;
    color: #666;
    width: 100%;
    margin-top: -5px;
    margin-bottom: 5px;
}

/* Underlined inputs */
input.underlined {
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    padding: 2px 5px;
    font-family: inherit;
    font-size: inherit;
    min-width: 150px;
    flex: 1;
}

input.underlined:focus {
    outline: none;
    border-bottom-color: #5a2d82;
}

input.underlined.short {
    min-width: 80px;
    max-width: 120px;
    flex: 0 0 auto;
}

/* Progression/radio section */
.progression-row {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

/* Sections */
.section {
    margin: 25px 0;
}

.section h2 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section h2 .hint {
    font-weight: normal;
}

/* Analysis rows */
.analysis-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.analysis-row .label {
    margin-bottom: 2px;
}

.analysis-row textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    resize: none;
    min-height: 24px;
    padding: 2px 5px;
    overflow: hidden;
}

.analysis-row textarea:focus {
    outline: none;
    border-bottom-color: #5a2d82;
}

/* Footer info */
.footer-info {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.footer-info p {
    margin: 0;
}

.footer-info a {
    color: #5a2d82;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Actions */
.actions {
    margin-top: 30px;
    text-align: center;
}

.btn-primary {
    background-color: #5a2d82;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #4a2470;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
    }

    h1 {
        font-size: 20px;
        margin-left: 60px;
    }

    .logo {
        width: 50px;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .grundinfo-row {
        flex-wrap: wrap;
    }

    .field-group {
        width: 100%;
    }

    .match-row {
        flex-wrap: wrap;
    }

    .field-group-short {
        max-width: none;
        width: 100%;
    }

    input.underlined,
    input.underlined.short {
        width: 100%;
        max-width: none;
        min-width: auto;
        margin: 5px 0;
    }

    .progression-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .background-watermark {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 16px;
    }

    .section h2 {
        font-size: 13px;
    }

    .btn-primary {
        width: 100%;
    }
}
