/* ==========================================
   BUTTON SYSTEM - PRIMARY & SECONDARY
   Vollständige Umsetzung des Dev-Briefs
   ========================================== */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 184, 197, 0.25);
}

/* Primary - Active */
.btn--primary.btn--active {
    background: #2DB8C5;
    color: #fff;
    border-color: #2DB8C5;
}

.btn--primary.btn--active:hover {
    background: #249aa4;
    border-color: #249aa4;
}

/* Primary - Disabled - MUSS ALLE THEME-KLASSEN ÜBERSCHREIBEN */
.aquitas-application-form #step-1 .next-step.disabled,
.aquitas-application-form #step-2 .next-step.disabled,
.aquitas-application-form #step-3 .next-step.disabled,
.aquitas-application-form button.disabled,
.aquitas-application-form .submit-btn.disabled,
.btn--primary.btn--disabled {
    background: #e0e0e0 !important;
    background-color: #e0e0e0 !important;
    color: #999999 !important;
    border-color: #e0e0e0 !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important; /* erlaubt Klick-Capture für Validierung */
}

/* Secondary - Active (Outline schwarz) */
.btn--secondary.btn--active {
    background: transparent;
    color: #111;
    border-color: #111;
}

.btn--secondary.btn--active:hover {
    background: rgba(0,0,0,.04);
}

/* Secondary - Disabled */
.btn--secondary.btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Error Message */
.error {
    margin-top: 12px; /* Abstand zur Dropzone/Checkbox */
    background: #FDECEC;
    color: #8A1F1F;
    border: 1px solid #F3B4B4;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
}

.error__icon {
    line-height: 1;
    margin-top: 2px;
}

/* Spacing zwischen Buttons */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .button-group {
        gap: 8px;
        flex-direction: column;
    }
    
    .button-group button {
        width: 100%;
    }
}

