/* Veranstaltungsanmeldung – Frontend Styles */

.va-container {
    max-width: 1100px;
    margin: 0 auto;
    font-family: inherit;
}

/* Event info block */
.va-event-info {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 24px;
}
.va-event-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.va-event-meta {
    margin: 0 0 12px;
    font-size: 14px;
    opacity: .9;
}
.va-event-desc {
    font-size: 14px;
    opacity: .9;
    margin: 0;
    line-height: 1.6;
}

/* Notices */
.va-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.va-notice-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.va-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.va-notice-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.va-notice-closed {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    text-align: center;
    padding: 24px;
    font-size: 15px;
}

/* Form wrapper */
.va-form-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
@media (max-width: 767px) {
    .va-form-wrap { padding: 20px; }
}
.va-form-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    padding-bottom: 12px;
    border-bottom: 2px solid #2271b1;
}

/* Form layout */
.va-form-row {
    margin-bottom: 16px;
}
.va-form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 520px) {
    .va-form-row--half {
        grid-template-columns: 1fr;
    }
}

/* Fields */
.va-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.va-required {
    color: #dc2626;
}
.va-field input[type="text"],
.va-field input[type="email"],
.va-field input[type="tel"],
.va-field input[type="number"],
.va-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    color: #1d2327;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.va-field input:focus,
.va-field textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}
.va-field input.va-invalid,
.va-field textarea.va-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.va-field--small input {
    max-width: 100px;
}

/* Checkbox */
.va-field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}
.va-field--checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Submit button */
.va-submit-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
}
.va-submit-btn:hover {
    background: #135e96;
}
.va-submit-btn:active {
    transform: scale(.98);
}
.va-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Spots left */
.va-spots-left {
    margin: 12px 0 0;
    font-size: 13px;
    color: #6b7280;
}
.va-spots-left strong {
    color: #dc2626;
}

/* ================================================================
   Form blocks (Anmelder / Teilnehmer) – side by side on desktop
   ================================================================ */

@media (min-width: 768px) {
    .va-blocks-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
        margin-bottom: 8px;
    }
}

.va-block {
    margin-bottom: 24px;
}

.va-block-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.va-block--teilnehmer .va-block-title {
    border-bottom-color: #2271b1;
}

/* ================================================================
   Participant entries
   ================================================================ */

.va-participants-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.va-participant {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.va-participant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f0f6fc;
    border-bottom: 1px solid #e5e7eb;
}

.va-participant-label {
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
}

.va-btn-remove-participant {
    background: none;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    color: #dc2626;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 6px 2px;
    transition: background .15s;
}
.va-btn-remove-participant:hover {
    background: #fee2e2;
}

.va-participant-fields {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ================================================================
   Add participant button + hint
   ================================================================ */

.va-participants-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.va-btn-add-participant {
    background: #fff;
    border: 2px dashed #2271b1;
    border-radius: 6px;
    color: #2271b1;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    transition: background .15s, color .15s;
    font-family: inherit;
}
.va-btn-add-participant:hover:not(:disabled) {
    background: #f0f6fc;
}
.va-btn-add-participant:disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.va-max-hint {
    font-size: 13px;
    color: #6b7280;
}

/* ================================================================
   Condition messages
   ================================================================ */

.va-condition-msg {
    margin-top: 6px;
    padding: 9px 13px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 5px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}
.va-condition-msg.va-condition-block {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}
