/*
 * Bewerbungsformular – Frontend-Styles
 * Minimal, themenfreundlich, ohne harte Farbpalette.
 */

.jpa-form-wrapper {
    margin: 2.5rem 0;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
}

.jpa-form-title {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
}

/* Honeypot: fuer Menschen und Assistive Tech unsichtbar. */
.jpa-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.jpa-notice {
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
}

.jpa-notice-success {
    background: #e8f5e9;
    border-left-color: #2e7d32;
    color: #1b4d1f;
}

.jpa-notice-error {
    background: #fdecea;
    border-left-color: #c62828;
    color: #611a15;
}

.jpa-form {
    display: block;
}

.jpa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin: 0 0 1rem 0;
}

@media (max-width: 640px) {
    .jpa-grid {
        grid-template-columns: 1fr;
    }
}

.jpa-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 1rem 0;
}

.jpa-field-wide {
    display: block;
}

.jpa-field label {
    font-weight: 600;
    font-size: 0.95rem;
}

.jpa-field input[type="text"],
.jpa-field input[type="email"],
.jpa-field input[type="url"],
.jpa-field input[type="number"],
.jpa-field textarea,
.jpa-field input[type="file"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.jpa-field textarea {
    resize: vertical;
    min-height: 160px;
}

.jpa-field input[readonly] {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
    cursor: not-allowed;
}

.jpa-field-consent {
    display: block;
    margin: 1rem 0;
}

.jpa-field-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
}

.jpa-field-consent input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.jpa-req {
    color: #c62828;
    margin-left: 0.15rem;
}

.jpa-hint {
    display: block;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 400;
    margin-top: 0.2rem;
}

.jpa-counter {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.55);
    margin-top: 0.25rem;
}

.jpa-counter-warn {
    color: #c62828;
    font-weight: 600;
}

.jpa-submit {
    margin: 1rem 0 0.5rem 0;
}

.jpa-submit-button {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border: 0;
    border-radius: 4px;
    background: #2271b1;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.jpa-submit-button:hover,
.jpa-submit-button:focus {
    background: #135e96;
}

.jpa-submit-button[disabled] {
    background: #9aa7b4;
    cursor: not-allowed;
}

.jpa-note {
    margin: 0.75rem 0 0 0;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.55);
}
